[ANN] yasvn2hg 0.2

Sebastien Lucas sebastien.lucas at gmail.com
Wed May 16 01:41:33 CDT 2007


On 5/16/07, Daniel Holth <dholth at fastmail.fm> wrote:
> -----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.

Yes I used your code.

> 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).

Strangely convert_repo is much more commented than yasvn2hg but I
still find yasvn2hg easier to understand. Anyway I'll try to provide
some patch for convert_repo if I managed to fix some code.

But I'll still miss the merge file ...... it'll need to be ported.

Sebastien.


More information about the Mercurial mailing list