I have a large Hg repository (2+GB) that was converted from an svn repository. It has a number of websites in it, and we want to separate those out into separate Hg repos. The repositories are on a Windows 2008 Server and we're using the hg that comes with TortoiseHg.
We've been trying to use the convert method with a filemap to create a new repo from the converted repository.
The problem is that the command runs through all the changesets in the source repo, but the newly created repo is empty.
This is what the command line looks like:
hg convert -s hg --filemap "hgsplitstaticsites-site1.txt" staticsites-hg "C:\projects\marcelsprojects\hgversions\site1-hg"
The filemap looks like this:
include staticsites-hg/site1
rename staticsites-hg/site1 .
Any help would be greatly appreciated.
we've also tried running hg convert on the subfolder in the svn repository, but that actually throws an exception and exits.
We gave up on this one, and just separated the sub folders into separate Hg repos, and lost all of the version history.
I wrote a batch script to help with running the
hg convert
command. Can I clone part of a Mercurial repository?