【问题标题】:How do I use hg push in Mercurial如何在 Mercurial 中使用 hg push
【发布时间】:2011-04-08 05:50:16
【问题描述】:

我花了一些时间将我的 SVN 存储库转换为 Mercurial。我在 Win 2008 R2 的 IIS7 下设置了 Mercurial。

我几乎可以正常工作。但是我无法将更改推送回服务器。

$ 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

我的 hgweb.cgi 看起来像这样:

[web]
baseurl = /hg
allow_push = *

[trusted]
users = *

谁能告诉我为什么这不起作用?

干杯 丰富

【问题讨论】:

  • 看起来可能是 IIS 权限错误。
  • 知道什么样的权限吗?

标签: windows mercurial commit hgweb


【解决方案1】:

好吧,原来这是一个权限问题。

您需要确保存储库的位置已授予 SERVER/User 写入权限。更改后一切正常。

【讨论】:

    【解决方案2】:

    尝试推送到:

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

    【讨论】:

    • 这给了我“中止:HTTP 错误 404:未找到”
    猜你喜欢
    • 1970-01-01
    • 2016-09-23
    • 2011-01-15
    • 1970-01-01
    • 1970-01-01
    • 2010-11-14
    • 1970-01-01
    • 2013-07-26
    • 2023-04-10
    相关资源
    最近更新 更多