[PATCH] upgrade v6 branches without checkout files to metadir

David Allouche david at allouche.net
Sat Aug 12 00:15:06 BST 2006


After squashing the list_dir quoting bug, I hit a second roadblock.

The v6 branches I was trying to upgrade had no checkout-related files.
No inventory or pending-merges files. However, the metadir upgrade code
required those files to be present.

This patch makes the metadir upgrade a bit smarter. If either inventory
or pending-merges is missing from a v6 branch, it does not have working
tree functionality, so the conversion result should not have a working
tree. Since that may be a bit surprising, a note is displayed to the
effect that no working tree was converted.

Note that I _really_ do not want my converted branches to have working
trees, since I am upgrading via SFTP a branch that was created by
pushing via SFTP, and I do not want the conversion result to be
structurally different from a branch initially pushed in metadir format.

Please CC me in replies to this message.
-- 
                                                            -- ddaa
-------------- next part --------------
A non-text attachment was scrubbed...
Name: upgrade-no-workingtree.patch
Type: text/x-patch
Size: 4684 bytes
Desc: not available
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20060812/94763ac9/attachment.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 254 bytes
Desc: OpenPGP digital signature
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20060812/94763ac9/attachment.pgp 


More information about the bazaar mailing list