Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/mercurial/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/oracle/9.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Mercurial次级回购和比特桶账户_Mercurial_Subrepos - Fatal编程技术网

Mercurial次级回购和比特桶账户

Mercurial次级回购和比特桶账户,mercurial,subrepos,Mercurial,Subrepos,我在bitbucket上建立了一个团队,有多个用户,我正在使用mercurial的keyring扩展。我需要建立一个subrepo,在.hgsub文件中,我需要提供subrepo的url 如果我使用https://bitbucket.org/team/subrepo然后用户需要在每次尝试拉取时进行身份验证 如果我使用https://userX.bitbucket.org/team/subrepo然后每个用户都需要使用userX的密码进行身份验证 如果我使用https://team.bitbuck

我在bitbucket上建立了一个团队,有多个用户,我正在使用mercurial的keyring扩展。我需要建立一个subrepo,在
.hgsub
文件中,我需要提供subrepo的url

如果我使用
https://bitbucket.org/team/subrepo
然后用户需要在每次尝试拉取时进行身份验证

如果我使用
https://userX.bitbucket.org/team/subrepo
然后每个用户都需要使用userX的密码进行身份验证

如果我使用
https://team.bitbucket.org/team/subrepo
然后每个用户都需要团队的密码


是否有一种方法可以设置它,以便可以使用keyring扩展保存身份验证,但每个用户仍有单独的凭据,而无需使用ssh?

是的,您可以将身份验证信息输入到配置文件中。这方面的文档如下所示

在每个用户配置文件的
auth
部分,您可以输入以下详细信息:

[auth]
bb.schemes = http https
bb.prefix = bitbucket.org/team
bb.username = userX
bb
部分只是一个标签,用于将设置分组在一起-您可以随心所欲地使用,如果您使用多个Mercurial服务器,您可以拥有多个设置

示例设置表示所有启动
http://bitbucket.org/team
https://bitbucket.org/team
应使用
userX
的用户名。之后,keyring扩展将处理密码