mercurial - 为 Mercurial 指定每个存储库代理

标签 mercurial proxy

我在为 Mercurial 指定每个存储库代理时遇到问题。

如果我在命令行上指定代理,一切正常:

hg pull --config http_proxy.host=proxyhost:3128

如果我在 ~/.hgrc 中指定代理,则一切正常。 ~/.hgrc 的内容:
[http_proxy]
host=proxyhost:3128

但是,如果我将该部分放入本地存储库的 .hg/hgrc 中,代理将不起作用:
user@NOTE:~/Project$ cat .hg/hgrc 
[http_proxy]
host=proxyhost:3128

[paths]
default=http://repohost/Project/
user@NOTE:~/Project$ hg pull --debug
using http://repohost/Project/
sending between command
abort: error: Name or service not known

怎么了?

最佳答案

对我来说听起来像是一个错误。我也可以看到它是如何发生的,尽管命令行 --config 让我有点困惑选项有效,而存储库级配置无效。但别太多。

关于mercurial - 为 Mercurial 指定每个存储库代理,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4161581/

相关文章:

python - Mercurial安装centos 6.4 Python报错

java - Git 或 Mercurial 在 Java 项目中的使用

java - 如何为 SOCKS 代理设置 nonProxyHosts?

.net - WebRequest.GetSystemWebProxy() 不包含 uri

java - 通过代理服务器连接到 Azure 存储帐户 Microsoft Azure Storage SDK for Java

node.js - Node 代理 - 从基本的 http 服务器代理 SSL localhost 目标

visual-studio-2010 - 塑料单片机。这是正确的解决方案吗?

version-control - Mercurial 源代码控制 - Forking 的优缺点

mercurial - kdiff3 不显示 uft8

github - 从 Github-pages 'http' 托管站点发出 'https' 请求