Imported Launchpad into a shared repository
David Allouche
david at allouche.net
Wed Mar 8 15:53:58 GMT 2006
Thanks to LocalTransport.list_dir fix I just posted, plus Robert's knit
performance patch (the actually needed bit is a trivial one-liner in
repository.py), both applied on top of the latest bzr.dev, I was able to
put a Launchpad branch into a bzr repository.
For people willing to experiment, the recipe is:
Apply the two attached patches to bzr.dev r1574. Robert tells me the
important (for that problem) bit in the knit-performance-1 patch is the
hunk in repository.py that reads:
- done.add(result)
+ done.add(revision_id)
Create an empty directory that will be used as the repository root.
cd into that directory.
Run "PYTHONPATH=path/to/bzr/checkout python.
from bzrlib import bzrdir
d = bzrdir.BzrDirMetaFormat1().initialize('.')
r = d.create_repository(shared=True)
bzr clone launchpad launchpad-metadir
cd launchpad-metadir
bzr upgrade --format=metadir
bzr clone . ../repo/launchpad
--
-- ddaa
-------------- next part --------------
A non-text attachment was scrubbed...
Name: local-listdir.patch
Type: text/x-patch
Size: 2875 bytes
Desc: not available
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20060308/ed0d1071/attachment.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: knit-performance-1.patch
Type: text/x-patch
Size: 71837 bytes
Desc: not available
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20060308/ed0d1071/attachment-0001.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20060308/ed0d1071/attachment.pgp
More information about the bazaar
mailing list