[MERGE] Support dpushing an empty branch.
Jelmer Vernooij
jelmer at vernstok.nl
Fri Apr 10 22:46:08 BST 2009
The attached patch fixes "bzr dpush" of empty branches, where it would
attempt to retrieve an inventory with revision NULL_REVISION from a
repository. This patch special cases NULL_REVISION.
Is there any reason why Repository.iter_inventories() explicitly refuses
to handle NULL_REVISION rather than just returning an empty Inventory() ?
It's hard to test this patch as the current test infrastructure doesn't
treat NULL_REVISION specially. bzr-svn has a test that demonstrates the
problem though
(bzrlib.plugins.svn.tests.test_blackbox.TestBranch.test_dpush_empty)
Cheers,
Jelmer
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dpush-nullrev-4285.patch
Type: text/x-patch
Size: 2960 bytes
Desc: not available
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20090410/5758e91e/attachment-0001.bin
More information about the bazaar
mailing list