Convert from SVN
Dirkjan Ochtman
dirkjan at ochtman.nl
Fri Feb 26 12:11:00 CST 2010
On Fri, Feb 26, 2010 at 18:05, Alpar Juttner
<ajuttner.list at googlemail.com> wrote:
> 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?
One solution you might consider is preprocessing by using
svndumpfilter and/or svndumptool. You just dump the SVN repository,
then edit the dump file, create a new repository, then load the dump
file. Since the format for dump files is fairly straightforward,
scripting this shouldn't be too hard, and might be easier than doing
it on the hg side of the conversion. On the other hand, it might be
easy to get two hg repositories and rebase the latter onto the former.
Cheers,
Dirkjan
More information about the Mercurial
mailing list