Mercurial似乎忽略了它的config.hgrc,为什么?
尽管mercurial忽略了我的Mercurial似乎忽略了它的config.hgrc,为什么?,mercurial,Mercurial,尽管mercurial忽略了我的.hgrc数据,我还是预先配置了一个登录/传递: [auth] becpg.prefix = https://becpg.fr/hg/becpg-community becpg.username = read-only becpg.password = read-only 尝试克隆它时,我得到以下信息: $ hg clone https://becpg.fr/hg/becpg-community http authorization required for h
.hgrc
数据,我还是预先配置了一个登录/传递:
[auth]
becpg.prefix = https://becpg.fr/hg/becpg-community
becpg.username = read-only
becpg.password = read-only
尝试克隆它时,我得到以下信息:
$ hg clone https://becpg.fr/hg/becpg-community
http authorization required for https://www.becpg.fr/hg/becpg-community
realm: beCPG repositories
user:
手动给他登录名和密码,这是可以接受的,没有任何问题
回顾mercurial流程,我发现是的,它在我家找到了我的.hgrc
,并在以下位置读取:
15751 open("/home/myusername/.hgrc", O_RDONLY) = 3
15751 fstat(3, {st_mode=S_IFREG|0600, st_size=112, ...}) = 0
15751 fstat(3, {st_mode=S_IFREG|0600, st_size=112, ...}) = 0
15751 lseek(3, 0, SEEK_CUR) = 0
15751 lseek(3, 0, SEEK_CUR) = 0
15751 fstat(3, {st_mode=S_IFREG|0600, st_size=112, ...}) = 0
15751 read(3, "[auth]\nbecpg.prefix = https://becpg.fr/hg/becpg-community\nbecpg.username = read-only\nbecpg.password = read-only\n", 4096) = 112
15751 read(3, "", 4096) = 0
15751 close(3) = 0
原因可能是什么
$ hg clone https://becpg.fr/hg/becpg-community
http authorization required for https://www.becpg.fr/hg/becpg-community
您尝试从becpg.fr
克隆,然后授权要求www.becpg.fr
我相信你被重新引导了方向。
试试这个:
[auth]
becpg.prefix = www.becpg.fr/hg/becpg-community
becpg.username = read-only
becpg.password = read-only
密码错了?@planetmaker谢谢,但不是。手动提供,可以毫无问题地接受。我把它插入了问题中。鹰眼。太好了!