Unable to unlock a repository

Hans Meine meine at informatik.uni-hamburg.de
Thu Jul 30 03:50:10 CDT 2009


On Wednesday 29 July 2009 21:01:29 Matt Mackall wrote:
> On Tue, 2009-07-28 at 11:19 +0200, Nautile Bleu wrote:
> > It seems to be an authentication error, but even if I change to repo
> > permissions to be the owner, I can't push. I also can't delete this
> > repo, as the lock symlinks cannot be deleted, even with sudo rm -f
> > lock.
>
> We can be pretty sure this weirdness is not Mercurial's fault: it never
> does anything with permissions.
>
> There's not much that should stop root from deleting a file.

Except for network mounts, where this is very common.  (For NFS on Linux, this 
is the default nowadays AFAIK.)  And there are Kerberos/AppArmor/SELinux/..., 
but the OP was talking about an SMB mount.

Still, deleting as user/the owner should work.

> a) the directory is marked +w
> b) the filesystem is not mounted R/O

These would also be my #1 guesses.

> d) you've rebooted [the server]
> e) you've scanned for filesystem corruption [on the server]

And e).

HTH,
  Hans


More information about the Mercurial mailing list