[英]How do I use hg push in Mercurial
I've spent some time converting my SVN repository to Mercurial. 我花了一些时间将我的SVN存储库转换为Mercurial。 I've setup Mercurial under IIS7 on Win 2008 R2. 我在Win 2008 R2上的IIS7下设置了Mercurial。
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
searching for changes
abort: HTTP Error 500: .hg\store\00changelog.i: Access is denied
My hgweb.cgi looks like this: 我的hgweb.cgi看起来像这样:
[web]
baseurl = /hg
allow_push = *
[trusted]
users = *
Can anyone tell me why this doesn't work? 谁能告诉我为什么这不起作用?
Cheers Rich 干杯里奇
Ok turns out this is a permission problem. 好的结果证明这是一个权限问题。
You need to ensure the location of the repository has gives the SERVER/User write permission. 您需要确保存储库的位置具有SERVER / User写入权限。 Once changed everything worked. 一旦改变一切正常。
尝试推送到:
https://<username>:<password>@pandora/dev/test
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.