Does mercurial-server subrepo support?

I installed a 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 place, I get an error message:

remote: mercurial-server: Can not create a repo in an existing repo

abort: no suitable answer from remote hg!

So, I'm starting to think that mercurial-server is not processing subrepo.

Any clue?

+4
source share
5 answers

I received a response from mercurial-server developers saying that they do not yet support it.

+1
source

The new version, released in December 2010 , supports secondary repositories.

+5
source

Their changelog never mentions subrepos .
Also their documentation .

So it’s quite possible that they do not yet support this feature, but I don’t know for sure.

+1
source

This post says disabling the "checkParents" code will support subppos support.

EDIT

I tried using it recently and it works great even without changing the default settings.

+1
source

I found that you need to configure locations for any subsequences inside the settings file "mercurial.ini".

For subrepo named mysubrepo you need to add a line

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

Source: https://habr.com/ru/post/1311916/


All Articles