How to use hg push in Mercurial

I spent some time converting my SVN repository to Mercurial. I configured Mercurial under IIS7 on Win 2008 R2.

Almost everything works for me. However, I cannot revert the changes to the server.

$ hg push
http authorization required
realm: pandora
user: rich
password: 
pushing to https://pandora/dev/test
searching for changes
abort: HTTP Error 500: .hg\store\00changelog.i: Access is denied

My hgweb.cgi looks like this:

[web]
baseurl = /hg
allow_push = *

[trusted]
users = *

Can someone tell me why this is not working?

Cheers Rich

+3
source share
2 answers

Ok, it turns out that this is a resolution problem.

You need to make sure that the repository location gives write permission to SERVER / User. After the change, everything worked.

+5
source

Try to click

https://<username>:<password>@pandora/dev/test
0
source

Source: https://habr.com/ru/post/1763233/


All Articles