Splitting a repository in two (by directory)
Tom Widmer
tom.widmer at gmail.com
Tue Jul 28 20:02:45 UTC 2009
Philip Pemberton wrote:
> At the moment, the repository looks like this:
>
> /hg/myapp
> /admin
> /adm_libs
> config.inc.php
> index.php
> /lib
> /smarty
> ... loads of files in here ...
> security.inc.php
> tests.inc.php
> /templates
> mainpage.tpl
> index.php
> install.php
>
> What I want are two repositories, "myapp-admin" and "myapp-core", with
> /hg/myapp/admin/* in "myapp-admin", and the rest in "myapp-core". So far
> So finally, on to the million-dollar question: is there a better way to
> do this?
hg convert's --filemap option should let you do what you want with only
a couple of commands (convert can do hg-hg 'conversions' as well as
conversions from other VCSes).
Tom
More information about the Mercurial
mailing list