开发者

How do I use hg push in Mercurial

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

I have nearly everything working. However I can not push changes back to server.

$ hg push
http authorization required
realm: pandora
user: rich
password: 
pushing to https://pandora/dev/test
sea开发者_StackOverflow中文版rching 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 = *

Why doesn't this work?


Ok turns out this is a permission problem.

You need to ensure the location of the repository has gives the SERVER/User write permission. Once changed everything worked.


Try pushing to:

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

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜