I am having problems setting up a project in Mercurial with subrepos.
Purpose:
I want to configure the structure as follows:
-- Build_Repo (this repo will be used to track dependencies) -- Subrepo_A (this is the main source) -- Modules (Part of Subrepo_A) -- Subrepo_B
So, there are three repositories: Build, A and B. B is nested inside A, A is nested in the root assembly repository. The build repository will be used to track dependencies, subrepo A will be used to track the main source files, and subrepo B (and others) will be used to track the development of the module / plugin.
Problem / Question
I have no problem setting up the original repo and the nested Subrepo_A by simply adding the path and source of Subrepo_A to the .hgsub file and passing it to the build repository. However, when after I add the path / source subrepo_B to the repo.hgsub assembly and then try to execute, I get an error message:
abort: path 'Subrepo_A / Modules / Sebrepo_B' is inside the nested repo 'Subrepo_A'
Mercurial is not like a nested repo inside an already nested repo. Is this true, or am I missing something? Any best ideas on how to manage assemblies / dependencies?
version-control mercurial dependencies mercurial-subrepos
Craig smitham
source share