How to combine a number of small repositories into one?
Tom Hindle
tom_hindle at sil.org
Fri Dec 11 17:54:56 UTC 2020
oh ok - I guess you will need to hg convert each individual repo first then.
(as you need to move the files from "." to "dokuwiki/plugins/$OLDREPONAME")
On Fri, Dec 11, 2020 at 10:37 AM Chris Green <cl at isbd.net> wrote:
> On Fri, Dec 11, 2020 at 10:21:48AM -0700, Tom Hindle wrote:
> > > On Fri, Dec 11, 2020 at 10:17 AM Chris Green <[2]cl at isbd.net>
> wrote:
> > >
> > > 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.
> >
> > [1]https://stackoverflow.com/a/10450591/361714
> >
> Ah, maybe I wasn't quite clear, I want to retain the directory
> hierarchy but have only one repository. I.e. all the files stay in
> exactly the same place but instead of all those separate .hg
> directories there will be a single one:-
>
> /home/chris/dev/dokuwiki/.hg
>
> --
> Chris Green
> _______________________________________________
> Mercurial mailing list
> Mercurial at mercurial-scm.org
> https://www.mercurial-scm.org/mailman/listinfo/mercurial
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial/attachments/20201211/ecdc9568/attachment-0002.html>
More information about the Mercurial
mailing list