Permission error of 'hg push'

Alexis S. L. Carvalho alexis at cecm.usp.br
Thu Jul 5 03:17:21 CDT 2007


Thus spake Takenaka Kazuhiro:
> $ hg push
> pushing to http://172.20.152.50/hg/NewRep/
> searching for changes
> Permission denied: .hg/store/lock
> 
> How shall I take care of it ?

The files in the repository are owned by root (or whatever user created
them).  The user running the cgi script, which is probably the same user
running apache (e.g. www-data), doesn't have permission to change files
in the repository (create the lock file in this case).

You just have to allow the user running the cgi script to change files
in the repo.

Alexis


More information about the Mercurial mailing list