How to combine several small repositories into separate subdirectories of a single repository?
Malcolm Matalka
mmatalka at gmail.com
Tue Apr 28 16:27:32 UTC 2020
Chris Green <cl at isbd.net> writes:
> I have a number of separate small projects maintained using mercurial,
> since they all relate to Dokuwiki and could probably, in the long
> term, share some code it would see sensible to combine them into a
> single repository.
>
> So, given a set of separate projects each with its own .hg as follows:-
>
> ./dokuwiki/plugins/servlog/.hg
> ./dokuwiki/plugins/tagentry/.hg
> ./dokuwiki/plugins/trip/.hg
> ./dokuwiki/plugins/showmail/.hg
> ./dokuwiki/tpl/roundbox/.hg
> ./dokuwiki/tpl/dokucms/.hg
>
> How do I combine them into a single mercurial repository with its data
> stored in ./dokuwiki/.hg ?
You can pick one of those repos or make a new one, and then just do hg
pull -f path/to/other/repo
Then you can merge any branches into the main branches in there.
More information about the Mercurial
mailing list