【问题标题】:Does mercurial-server support subrepo?mercurial-server 是否支持 subrepo?
【发布时间】:2010-06-04 21:34:01
【问题描述】:

我在我的一台机器上安装了 mercurial-server,在那里克隆了我的项目,它有 3 个子存储库,当我尝试将它克隆回另一个位置时,我收到了一个错误:

远程:mercurial-server:不能 在现有 repo 下创建 repo

abort:没有合适的回应 远程hg!

所以我开始认为 mercurial-server 不处理 subrepo。

有什么线索吗?

【问题讨论】:

    标签: mercurial subrepos mercurial-server


    【解决方案1】:

    【讨论】:

      【解决方案2】:

      他们的changelog 从未提及subrepos
      their documentation也没有。

      所以他们很可能还不支持该功能,但我不确定。

      【讨论】:

        【解决方案3】:

        我从 mercurial-server 的开发者那里得到了答复,说他们还不支持它。

        【讨论】:

        • 最新版本的 mercurial-server 确实支持 subrepos。
        【解决方案4】:

        post 表示禁用“checkParents”代码将启用对子存储库的支持。

        编辑

        我最近尝试过使用它,即使不更改任何默认设置,它也能正常工作。

        【讨论】:

          【解决方案5】:

          我发现您需要在“mercurial.ini”设置文件中设置任何子存储库的位置。

          对于名为“mysubrepo”的子仓库,需要添加一行

          [subpaths]
          mysubrepo = ssh://hg@myserver/subrepolocation
          

          【讨论】:

            猜你喜欢
            • 1970-01-01
            • 2011-03-21
            • 1970-01-01
            • 2012-08-20
            • 1970-01-01
            • 1970-01-01
            • 1970-01-01
            • 1970-01-01
            • 1970-01-01
            相关资源
            最近更新 更多