svn2bzr released
Jelmer Vernooij
jelmer at samba.org
Thu Oct 20 11:28:34 BST 2005
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi Gustavo,
Gustavo Niemeyer wrote:
> While there's still room for speed improvement, I've fixed that
> problem, and svn2bzr is now a *lot* faster. Operations are being
> cached on a kind-of-action basis (all adds which are in sequence
> are done as a single operation, and so on).
>
> Notice that in your samba dump, the second revision will add ~1800
> files in the branch, and revision 3 will create three different
> branches, meaning more ~5400 files. If you're splitting out
> branches by using the trunk scheme (or using --prefix/--exclude),
> that's no big deal, but if you're using a single branch to get the
> whole repository (tags, branches, etc), this is a little heavier.
>
> The following few revisions also do massive add/removes, so there's
> indeed a reason why the first few revisions are slower. Anyway,
> the first 10 commits take now just a few minutes.
>
> The new version is already at
>
> http://bazaar.canonical.com/svn2bzr
Thanks! This version is significantly faster. I now got the first
couple of thousand commits converted, before running out of disk space
(we have a lot of tags). I'll try again in a few hours after cleaning
up my hard disk.
Attached are two patches I had to apply:
- svn2bzr-api.diff - API changes (one of them we discussed on IRC
yesterday)
- svn2bzr-order.diff - The order in which changes are executed can
matter. For example, I ran into trouble when a file that was deleted
was in the same revision used in the 'copyfrom-path' of another file
(see Samba's r281)
It would also be useful to be able to do do incremental conversions.
For example, one could run something like 'svnadmin dump -rHEAD-1:HEAD
| svn2bzr.py /path/to/bzr-repos' from SVN's post-commit hook to keep a
bzr synchronized).
Cheers,
Jelmer
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
iD8DBQFDV3FSPa9Uoh7vUnYRAjHsAJ0RZ+3LH+7XJKEAXlnk2tTaXzVsbwCeOf3f
DLmPqCdyh3i2c3wDa0RYzCs=
=uafJ
-----END PGP SIGNATURE-----
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: svn2bzr-api.diff
Url: https://lists.ubuntu.com/archives/bazaar/attachments/20051020/0fa6005c/attachment.diff
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: svn2bzr-order.diff
Url: https://lists.ubuntu.com/archives/bazaar/attachments/20051020/0fa6005c/attachment-0001.diff
More information about the bazaar
mailing list