Unable to unlock a repository

Matt Mackall mpm at selenic.com
Wed Jul 29 14:01:29 CDT 2009


On Tue, 2009-07-28 at 11:19 +0200, Nautile Bleu wrote:
> I have a local repository shared on a SMB. When I try to push commits
> to it, I have the following errors:

> /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/mercurial-1.3-py2.6-macosx-10.5-i386.egg/mercurial/lock.py:71: DeprecationWarning: use lock.release instead of del lock
>   locker = self.testlock()

This is a warning intended for developers only, not an error. But it
does seem to have hidden a real (unrelated) error inside of testlock.

> 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. Be sure:

a) the directory is marked +w
b) the filesystem is not mounted R/O
c) you've turned off sharing
d) you've rebooted
e) you've scanned for filesystem corruption

-- 
http://selenic.com : development and support for Mercurial and Linux




More information about the Mercurial mailing list