简体   繁体   中英

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

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM