New locking idea (was Re: [PATCH 0 of 2] new log option --tolerant)

marco gaddoni marco.gaddoni at
Mon Dec 13 13:05:43 CST 2010

On Mon, Dec 13, 2010 at 07:01, Matt Mackall <mpm at> wrote:

> I'm not thrilled with this approach, but you've got me thinking about
> alternatives to fix this long-standing issue.
> ... snip ...

> This relies on atomicity of rmdir vs file creation, which is a pretty
> reasonable requirement as failing it would mean a filesystem could
> 'leak' files.
be careful here: directory rename on some obscure linux filesystem
is allowed to return EXDEV; this error is usually handled
by mv with a cp + rm of the directory.
i vaguely remember something like this with 9p (possibly used
in virtualization) and google found
suggest to check on samba & windows


> In addition to fixing Jason's problem, this will also let us safely do
> things like running strip on a repo that's being served by hgweb.
> --
> Mathematics is the supreme nostalgia of our time.
> _______________________________________________
> Mercurial-devel mailing list
> Mercurial-devel at

"Reality continues to ruin my life." - Calvin.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the Mercurial-devel mailing list