[ANN] yasvn2hg 0.2

Daniel Holth dholth at fastmail.fm
Tue May 15 19:48:45 CDT 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Joel Rosdahl wrote:
>> I'm currently trying to use svn lib instead of the command line (I
>> have one big repo with more than 8000 changeset), I'll let you know
>> how it ends.
>
> Sounds nice, but maybe it would be better to work on Daniel Holth's
> changes to convert-repo instead? I would do that if I had any
> Subversion repository left to convert. :-)
Ditto. I would do that too if I had a SVN repository left to convert...

See http://dingoskidneys.com/cgi-bin/hgwebdir.cgi

Please feel free to copy my GPL'd SVN code, as I learned it by copying
from bzr-svn, tailor, and trac. The Subversion API is initially
daunting, but once you get the hang of it it's not that bad. The
biggest challenge is converting between SVN's view of the universe
(versioned directories) and Mercurial's (versioned files only). For
extra credit, abstract this out into a nice API that knows how to talk
to both /usr/bin/svn and the SVN api.

Or, if you would rather spend your time working on something that can
already convert at least 10 revisions per second, already uses both
the Subversion and the Mercurial APIs, already preserves copy-from
information for silky smooth merges across renames, can point at
branches, and is generally awesome, you should just adapt
convert-repo. It should need only *tiny* changes to be able to cope
with some of the stranger SVN cases (probably a try/catch around the
part that errors out would do the trick, where you could potentially
lose some of the copy-from information).

- - Daniel Holth
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGSlToVh4W2pVfoMsRAm+vAJoDciW6XwNtsvwK2/8lrqvAsKUE8wCePjcR
kC0Lb/4CwWqzDA7fjrUiers=
=gTmx
-----END PGP SIGNATURE-----



More information about the Mercurial mailing list