Convert from SVN
Patrick Mézard
pmezard at gmail.com
Fri Feb 26 13:40:12 CST 2010
Le 26/02/10 18:05, Alpar Juttner a écrit :
> Dear All,
>
> I would like to convert an SVN repository to mercurial. It follows the
> standard SVN directory structure. However, once in its life the project
> changed its name, thus the the root directory was renamed with
>
> $ svn mv
>
> Is it possible the convert the full history with some tricky usage of
> filemap/slicemap/branchmap?
Say you project is at http://foobar.com/svn/projects/allprojects/project and the both source and renamed project are under allprojects/ you can try:
hg --config convert.svn.trunk=project/trunk --config convert.svn.trunk=project/branches --config convert.svn.tags=project/tags convert http://foobar.com/svn/projects/allprojects
The convert argument is the root URL under which convert won't look for renames
--
Patrick Mézard
More information about the Mercurial
mailing list