开发者

Does mercurial-server support subrepo?

I installed mercurial-server on one of my machines, cloned my project there, it has 3 subrepos, and when I try to clone it back to another location I get an error:

开发者_运维问答

remote: mercurial-server: Cannot create repo under existing repo

abort: no suitable response from remote hg!

So I'm starting to think that mercurial-server doesn't handle subrepo.

Any clue?


The new version released in December 2010 does support sub repos.


Their changelog never mentions subrepos.
Nor does their documentation.

So it is quite possible they don"t support that feature yet, but I wouldn't know for sure.


I got an answer from the developers of mercurial-server saying that they don't support it yet.


This post says that disabling the "checkParents" code will enable support for subrepos.

EDIT

I've tried using it recently and it works just fine even without changing any default settings.


I found that you need to set up the locations for any subrepos inside the "mercurial.ini" settings file.

For a subrepo named "mysubrepo", you need to add the line

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

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜