Splitting Off from Repository

Peer Sommerlund peer.sommerlund at gmail.com
Mon Jul 23 04:06:20 CDT 2007


On 21/07/07, Steven Yi <stevenyi at gmail.com> wrote:
>
> Hi All,
>
> I am wondering if it is possible to take a subdirectory of an hg
> repository and split it off so that the history for files within that
> subdirectory can be maintained.  The case I have is that I started
> using Mercurial and converted an SVN repository I was using to hold
> multiple projects.  I did work with the Mercurial repo over time and
> later realized it'd be better to change my way of working to break off
> some of the directories into individual projects.
>
> Is this possible to do?
>
> Thanks,
> steven
>

You could also use the svndumpfilter that comes with Subversion to create
one SVN repository pr project, then do the export to HG.

It would probably be something like:
> svnadmin create project1Repo
> svnadmin create project2Repo
> svnadmin dump YourBigRepo > big.dump
> cat big.dump | svndumpfilter include path/to/project1 --drop-empty-revs |
svnadmin load project1Repo
> cat big.dump | svndumpfilter include path/to/project1 --drop-empty-revs |
svnadmin load project2Repo
:
etc.

Regards,
Peer
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://selenic.com/pipermail/mercurial/attachments/20070723/07048789/attachment.htm 


More information about the Mercurial mailing list