Netbeans Mercurial 身份验证
我有一个奇怪的问题。我已经使用 hgweb.cgi 脚本设置了 Mercurial 服务器。该脚本在我的 Apache Web 服务器上的子文件夹中运行,我使用 Apache basicauth 来强制执行身份验证。
当我尝试在 Windows 上使用 hg.exe 命令行从服务器拉取时,它工作正常。推送、传入和传出命令也正在工作。在 Aptana 中,推拉也可以正常工作。
我的下一步是在 Netbeans 中设置 Mercurial。我无法让它工作,因为我无法进行身份验证。 Netbeans 不断询问我 un/pw 组合。附加的窗口不断弹出。无论我做什么,最后我都必须单击“取消”按钮,最终会出现错误:
Mercurial Pull
--------------
INFO Pulling From: http://user:****@server.nl:8080/hg/kate ...
ERROR Command failed:
Command: [hg, incoming, -v, --bundle, C:\wamp\www\Thorium\Kate_bundle0, --repository, C:\wamp\www\Thorium\Kate, http://user:****@server.nl:8080/hg/kate]
Output: [abort: http authorization required]
INFO: End of Mercurial Pull
链接到 错误消息
I have a strange problem. I have set up a Mercurial server using the hgweb.cgi script. The script runs in a subfolder on my Apache webserver, and I use Apache basicauth to enforce authentication.
When I try to pull from my server using hg.exe on Windows, command line, it works fine. Also the push, incoming and outgoing commands are working. In Aptana, pushing and pulling also works fine.
Next step for me was to set up Mercurial in Netbeans. I cannot get it to work because I cannot authenticate. Netbeans keeps asking me for the un/pw combination. The attached window keeps popping up. No matter what I do, in the end I have to click the 'Cancel' button and I end up with an error:
Mercurial Pull
--------------
INFO Pulling From: http://user:****@server.nl:8080/hg/kate ...
ERROR Command failed:
Command: [hg, incoming, -v, --bundle, C:\wamp\www\Thorium\Kate_bundle0, --repository, C:\wamp\www\Thorium\Kate, http://user:****@server.nl:8080/hg/kate]
Output: [abort: http authorization required]
INFO: End of Mercurial Pull
Link to the error message
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
经过几个小时的寻找解决方案......我终于让它发挥作用了。对于遇到此问题的其他所有人:TortoiseHG Mercurial 客户端的更新解决了我的问题!显然,Netbeans 7.0.1 和 TortoiseHG 2.1.2 不兼容。更新到 TortoiseHG 2.1.4 就成功了。
After hours of searching for the solutions... I finally got it to work. For everybody else who experiences this problem: an update of the TortoiseHG mercurial client fixed my problems! Apperently, Netbeans 7.0.1 and TortoiseHG 2.1.2 are not compatible. Updating to TortoiseHG 2.1.4 did the trick.