Re: [PATCH] remote-hg: fix hg sharedpath when git clone is moved
- From
Antoine Pelisse <apelisse@gmail.com>
- Date
- Nov 23, 2013, 12:46 UTC
- Message-ID
- <CALWbr2zkiBS3zvcu8skrtn5tK8XMyQy8Nv1r1h+zowkgpWKYKw@mail.gmail.com>
- In-Reply-To
- <1385210302-25518-1-git-send-email-apelisse@gmail.com>
On Sat, Nov 23, 2013 at 1:38 PM, Antoine Pelisse <apelisse@gmail.com> wrote:
Show 11 quoted lines
> remote-hg is using a mercurial shared clone to store all remotes objects > in one place. Unfortunately, the sharedpath is stored as an absolute > path by mercurial, creating a dependency on the location of the git > repository. Whenever the git repository is moved, the sharedpath must > be updated to reflect the new absolute path. > > Check mercurial sharedpath file when getting the local hg repository, > and update it manually with the new path if necessary. > > Signed-off-by: Antoine Pelisse <apelisse@gmail.com> > ---
By the way, this is the only link [1] I found about both relative path and updating the file. So it looks like there is no other way to update the path but to write the file manually.
[1]: http://bz.selenic.com/show_bug.cgi?id=2006