Splitting a repository

Timo Sirainen tss at iki.fi
Sat May 19 14:29:05 UTC 2007


I just moved from CVS to Mercurial today, but soon I remembered one of
my old plans: Splitting the project (Dovecot) to 3 separate
repositories, so in the end I would have:

 - "lib" containing original repository's src/lib/ and its history
 - "auth" containing original repository's src/auth/ and some other
directories, and their history
 - The original repository with lib and auth code removed, but
containing all the history

So the "lib" and "auth" repositories really wouldn't need to have the
extra 10MB of history for files that don't exist.

If I had to do this now, I would a write a script that looked up
changesets containing changes to files in wanted directories, exported
the changesets, dropped out changes for files outside the wanted dirs,
and imported the changesets to the new repository.

Is there an easier way to do this? Or has someone already written a
similar script?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://lists.mercurial-scm.org/pipermail/mercurial/attachments/20070519/2b64b37e/attachment-0001.asc>


More information about the Mercurial mailing list