Over the last few days, I’ve done another attempt to generate a Bazaar-NG version of Samba4 using tailor. I had to fix a couple of small bugs but got it working eventually. It took me about 8 hours for 5924 revisions using the following tailor configuration:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 | #!/usr/bin/env tailor """ [DEFAULT] verbose = Yes [samba4] source = svn:samba4 target = bzrng:samba4 refill-changelogs = Yes state-file = samba4.state root-directory = ~/bzr/bzr.samba4 before-commit = samba_remap_authors [svn:samba4] repository = svn://svnanon.samba.org/samba module = /branches/SAMBA_4_0 use-propset = Yes [bzrng:samba4] repository = ~/bzr/samba4 """ def samba_remap_authors(context, changeset): authors_map = { u'metze': u'Stefan Metzmacher', u'tridge': u'Andrew Tridgell', u'abartlet': u'Andrew Bartlett', u'tpot': u'Tim Potter', u'jerry': u'Gerald (Jerry) Carter', u'vlendec': u'Volker Lendecke', u'crh': u'Chris Hertel', u'jra': u'Jeremy Allison', u'jelmer': u'Jelmer Vernooij', u'vance': u'Vance Lankhaar', u'derell': u'Derell Lipman', u'gd': u'Guenther Deschner', u'lmuelle': u'Lars Mueller', u'herb': u'Herb Lewis', u'jht': u'John Terpstra', u'jmcd': u'Jim McDonough', u'stevef': u'Steve French', u'jpeach': u'James Peach', u'mimir': u'Rafal Szczesniak', u'ab': u'Alexander Bokovoy', u'deryck': u'Deryck Hodge', u'lha': u'Love H\uffffrnquist \uffffstrand', u'idra': u'Simo Sorce', u'rsharpe': u'Richard Sharpe' } author = changeset.author if authors_map.has_key(author): changeset.author = "%s <%s@samba.org>" % (authors_map[author],author) return True |
This branch is now up on samba.org. You’ll need the bzr “newformat” branch in order to check it out.
I’m a bit disappointed by the speed of “bzr branch” (takes around 3 hours when run locally, pulling in those ~6000 revisions).
Branching from a remote branch still gives me an error (this branch is up at http://samba.org/~jelmer/bzr.samba4/ and is the same I pull from locally):
1 2 3 | bzr: ERROR: 'RemoteBranch' object has no attribute 'weave_store' at /usr/lib/python2.4/site-packages/bzrlib/fetch.py line 92, in __init__() see ~/.bzr.log for debug information |