svnversion-controlmercurialrepositoryversion-control-migration

Converting a Mercurial (hg) repository to Subversion (svn)


I need to convert an existing Mercurial repository to Subversion, I tried with the following command:

hg convert --dest-type svn mercurialpath subversionpath

That I took from the following topics:

Converting mercurial repository to svn repository

Migrating from Mercurial to Subversion

The problem is that after launching this command the conversion starts and ends apparently successfully but I only get a "working copy" directory in the PWD and in the subversionpath a folder with semi-empty files and directory as "db", "lock", etc... I don't have an idea of how I can solve this problem. Thanks


Solution

  • and in the subversionpath a folder with semi-empty files and directory as "db", "lock", etc.

    That sounds like a description of the Subversion repository. You won't see your source files in there in any readable format. Each revision is kept in a file in the directory structure under the dev/revs folder but in a binary diff format.