From: Antoine Pelisse Date: Sat, 23 Nov 2013 12:46:13 GMT Subject: Re: [PATCH] remote-hg: fix hg sharedpath when git clone is moved Message-ID: In-Reply-To: <1385210302-25518-1-git-send-email-apelisse@gmail.com> On Sat, Nov 23, 2013 at 1:38 PM, Antoine Pelisse wrote: > 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 > --- 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