Reputation: 1611
What we have for now:
What we want to have:
Question: is it possible to have (4), (5) without merging all repositories into one?
Upvotes: 0
Views: 82
Reputation: 3577
This looks like it can be solved using sub-repositories.
I suggest to setup all your different repositories as sub-repositories of a main repo, which could include your shared libraries (as a sub-repository or directly in the main repo) and the revision file containing your current revision number. Your current repos can remain intact with this method.
Main repo
|-.hg
|
|-Shared libraries
|
|-Desktop Client
|--.hg
|
|-Server
|--.hg
|
...
|
|-.hgsubstate
|-revision.xml
|
At every change in the default branch of any sub-repo, you will have to also commit a change in the main repo to point to the new head of its sub-repo.
Upvotes: 1