Permission error of 'hg push'

Takenaka Kazuhiro takenaka.kazuhiro at oss.ntt.co.jp
Thu Jul 5 02:26:59 CDT 2007


Hi All.

I am trying to use mercurial-0.9.4 via http and I got a
permission error when I perform 'hg push'

Details are as follows.

I installed mercurial-0.9.4 into /var/hg of my server(CentOS 4.4)
and I created a new repository named 'NewRep'.

# mkdir /var/www/cgi-hg/NewRep
# cd /var/www/cgi-hg/NewRep
# hg init

I made a new file named 'SomeFile.txt' and registered it to NewRep.

# echo XXX > SomeFile.txt
# hg status
? SomeFile.txt
# hg add SomeFile.txt
A SomeFile.txt
# hg commit -m 'Add a file'
No username found, using 'root at pe860' instead

And I configured and deployed the following files
so as to make NewRep published via http.

/etc/httpd/conf.d/hg.conf
/var/www/cgi-hg/hgwebdir.cgi
/var/www/cgi-hg/hgweb.config
/var/www/cgi-hg/NewRep/.hg/hgrc

(I attached these files to this mail)

Then I started httpd.

# service httpd start

After finished the server setups, I became a usual user and
checked out NewRep.

$ hg clone http://172.20.152.50/hg/NewRep/
destination directory: NewRep
requesting all changes
adding changesets
adding manifests
adding file changes
added 1 changesets with 1 changes to 1 files
1 files updated, 0 files merged, 0 files removed, 0 files unresolved

I modified SomeFile.txt and save the change locally.

$ cd NewRep
$ echo YYY > SomeFile.txt
$ hg status
M SomeFile.txt
$ hg commit -m 'Make a change'
No username found, using 'hadev at pe860' instead

The error occured on the next step.
I tried to send the change to the server.

$ 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 ?

I appreciate any advices and any infomation.

Sincerely.
-- 
Takenaka Kazuhiro <takenaka.kazuhiro at oss.ntt.co.jp>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: hg.conf
Url: http://selenic.com/pipermail/mercurial/attachments/20070705/e96523d4/attachment.txt 
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: hgwebdir.cgi
Url: http://selenic.com/pipermail/mercurial/attachments/20070705/e96523d4/attachment-0001.txt 
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: hgweb.config
Url: http://selenic.com/pipermail/mercurial/attachments/20070705/e96523d4/attachment-0002.txt 
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: hgrc
Url: http://selenic.com/pipermail/mercurial/attachments/20070705/e96523d4/attachment-0003.txt 


More information about the Mercurial mailing list