views:

37

answers:

2

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.

A: 

What is the output of hg convert? What do you mean by empty repository? If you do hg log in target repository, do you have any entries?

cezio
Empty repository means that it creates a folder called 'site1-hg' with a .hg folder in it, so it's a valid Hg repo, but if I open the repository browsers, there are no changesets, and the browser says 'Empty Repository' at the bottom. Update is disabled, because there's nothing to update.
marcel_g
A: 

We gave up on this one, and just separated the sub folders into separate Hg repos, and lost all of the version history.

marcel_g