Does mercurial-server support subrepo?

839 Views Asked by At

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?

5

There are 5 best solutions below

1
On BEST ANSWER

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

0
On

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.

0
On

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
On
0
On

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.