"hg push" errors with "could not lock repository"

Martín Marqués martin at marquesminen.com.ar
Thu Apr 10 20:46:45 UTC 2008


On Thu, 10 Apr 2008 11:54:50 -0400, Ethan Mallove <ethan.mallove at sun.com>
wrote:
> Hello,
> 
> What "lock" is "hg push" referring to below?
> 
>   $ hg push
>   pushing to /foo/bar
>   abort: could not lock repository /foo/bar:
>   Permission denied
> 
> Is there an "hg cleanup" command (like "svn cleanup") that
> removes locks?
> 
> All files in the "hg" area are group-writable, and
> directories are everyone-executable. If I 777 everything,
> things seem to work, but this is obviously the wrong way to
> go.

If, as I see there, you have both clones on the same machine (Linux or some
UNIX as I see), you obviously have permission issues between different
users.

What happens if you do this with the user that's trying to push:

$ touch /foo/bar/.lock






More information about the Mercurial mailing list