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
Mercurial子存储库的多用户访问_Mercurial_Mercurial Subrepos - Fatal编程技术网

Mercurial子存储库的多用户访问

Mercurial子存储库的多用户访问,mercurial,mercurial-subrepos,Mercurial,Mercurial Subrepos,在mercurial中,组织ssh访问子存储库的正确方法是什么? 考虑以下情况: master |--.hgsub |--slave1 |--slave2 及.hgsub: slave1 = ssh://user@host://var/local/repos/slave1 slave1 = ssh://user@host://var/local/repos/slave2 问题是.hgsub是存储库的一部分,因此不可能(或者是?)在repo的ssh地址中存储各种用户名。我真的不想因为这个原因

在mercurial中,组织ssh访问子存储库的正确方法是什么? 考虑以下情况:

master
|--.hgsub
|--slave1
|--slave2 
及.hgsub:

slave1 = ssh://user@host://var/local/repos/slave1
slave1 = ssh://user@host://var/local/repos/slave2

问题是
.hgsub
是存储库的一部分,因此不可能(或者是?)在repo的ssh地址中存储各种用户名。我真的不想因为这个原因而使用“全局”用户访问存储库

您基本上有两种选择:

  • 如果子存储库与容器位于同一服务器中,请使用相对路径。这是最方便的解决方案
  • 否则,您可以让每个用户定义一个子路径规则。查找子路径单词

  • 非常感谢你!看来
    子路径
    规则是最好的方法。