How to combine a number of small repositories into one?

Chris Green cl at isbd.net
Fri Dec 11 16:56:35 UTC 2020


I have a number of very small mercurial repositories living in various
subdirectories of a single parent directory (most are two levels down).

How can I merge all of them into a single mercurial repository while
keeping all the history etc.?

The repositories to be merged are:-
    /home/chris/dev/dokuwiki/plugins/textalign/.hg
    /home/chris/dev/dokuwiki/plugins/xv/.hg
    /home/chris/dev/dokuwiki/plugins/blog/.hg
    /home/chris/dev/dokuwiki/plugins/dbrd/.hg
    /home/chris/dev/dokuwiki/plugins/rst/.hg
    /home/chris/dev/dokuwiki/plugins/showmail/.hg
    /home/chris/dev/dokuwiki/plugins/db2.wkg/.hg
    /home/chris/dev/dokuwiki/plugins/servlog/.hg
    /home/chris/dev/dokuwiki/plugins/tagentry/.hg
    /home/chris/dev/dokuwiki/plugins/indexmenu/.hg
    /home/chris/dev/dokuwiki/plugins/trip/.hg
    /home/chris/dev/dokuwiki/plugins/include/.hg
    /home/chris/dev/dokuwiki/plugins/database2/.hg
    /home/chris/dev/dokuwiki/plugins/rsthdr/.hg
    /home/chris/dev/dokuwiki/tpl/roundbox/.hg

I want them to be combined in one repository at /home/chris/dev/dokuwiki.

These are all local files, nothing remote, I'm running mercurial
version 5.3.1 on xubuntu.

-- 
Chris Green


More information about the Mercurial mailing list