hard and soft links
Pierre-Yves David
pierre-yves.david at ens-lyon.org
Fri Dec 2 15:16:23 UTC 2016
On 11/24/2016 09:10 PM, Uwe Brauer wrote:
>
> > On Thu, Nov 24, 2016 at 12:56 PM, Uwe Brauer <oub at mat.ucm.es> wrote:
>
> > Which exact command is breaking the hard link? "hg commit" on its own
> > doesn't touch the working directory, so I doubt it's that. I just did
> > a small test with 2 repositories and a hardlinked file shared between
> > them, and I was able to edit and commit in either repository without
> > breaking the link.
>
> > However, when I reverted one of the repositories to an older revision
> > (via "hg update"), it *did* break the link. Is that the situation
> > that's causing you a problem?
>
> Correct, that is the case. The repo in question has 2 branches and I update
> continuously between them, moreover and pull and push with a bitbucket
> repo.
In Mercurial is not attempting to preserve any hardlink/inode and will
not attempt so in the future. Many of our operation are design to
replace old file with plain new one, this has interesting properly,
especially regarding atomicity of operation.
I wish you the best in your adventure to share this file betwen
repository. A symlink looks like a good lead, but this was explored in
details in another part of the thread.
Cheers,
--
Pierre-Yves David
More information about the Mercurial
mailing list