[MERGE] Skip unnecessary work in BzrBranch._basic_push.

Andrew Bennetts andrew at canonical.com
Fri Sep 12 08:44:16 BST 2008


This skips a bunch of unnecessary work in BzrBranch._basic_push for the
relatively common case of pushing 0 new revisions.  It also avoids doing
unnecessary work if there are no tags in the source branch.

This cuts the number of HPSS round trips to a constant 8 for that case.
Previously on bzr.dev it took about 3x as many (or worse, if you had lots of
pack files!).

This improvement really deserves to be enforced with some of those effort tests
I've been promising, but in the meantime here it is with no automated tests.

-Andrew.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: faster-empty-push-3704.patch
Type: text/x-diff
Size: 3850 bytes
Desc: not available
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20080912/27fd4d2e/attachment.bin 


More information about the bazaar mailing list