Join multiple subrepos into one and preserve history in Mercurial -
currently have project consisting of multiple repositories, e.g.:
+---project (main repo) +---core (subrepo) +---web (subrepo) \---tests (subrepo)
unfortunately code between subrepos quite coupled doesn't work nicely branches.
is there way consolidate subrepos 1 main repository preserving history?
i start using hg convert
filemap excludes .hgsub
, subrepos. next, use hg convert
on subrepos rename entries in filemap like: rename . core
once have new repos, can use hg pull -f
import changesets converted subrepos converted main repo 1 @ time. you'll need merge them new main repo (they form separate heads null revision recent common ancestor).
Comments
Post a Comment