How to combine several small repositories into separate subdirectories of a single repository?

Chris Green cl at isbd.net
Tue Apr 28 15:38:44 UTC 2020


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 ?

-- 
Chris Green


More information about the Mercurial mailing list