So, here is the problem:
Let's say we have a very old installation of Kallithea with whole bunch of repositories, and, after 5 years of intensive development, it became bloated with legacy and experimental stuff, structural inconsistencies, etc. We have decided to update everything to modern versions, remove all legacy and unused stuff, and build a new directory structure of repositories on the server.
Basically, problem is:
DIRECTORY1 [ PROJ1 SUBPROJ1 ] //SUBPROJ1 is a subrepo for PROJ1, .hgsub approves.
DIRECTORY2 [ PROJ2 ] // SUBPROJ1 is a subrepo for PROJ2 as well!
is being reworked as
COMMON [ SUBPROJ1 ]
DIRECTORY1 [ PROJ1 ]
DIRECTORY2 [ PROJ2 ]
So, to make an update for projects PROJ1 and PROJ2 that supports new directory structure, we need to update .hgsub
for these projects [and all their branches as well ]. This would leave all previous revisions of them in a 'hanging' state - no way to clone them directly, there surely would be some issues on updating to them, etc.
Is there a general way to deal with such situations that fixes ALL previous revisions as well?