[MERGE] Make {BzrDir,Repository}.find_branches a generator.

Andrew Bennetts andrew at canonical.com
Tue Apr 8 02:39:39 BST 2008


This patch simply changes BzrDir.find_branches and Repository.find_branches to
be generators, rather than functions that return lists.  This allows the callers
to get incremental results.

I did this because I use “bzr merged-branches” (from
https://launchpad.net/bzr-removable).  This patch makes that command feel much
faster, because it starts giving output much much sooner.

-Andrew.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: find_branches-generator-3345.patch
Type: text/x-diff
Size: 8497 bytes
Desc: not available
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20080408/f09ae5c2/attachment.bin 


More information about the bazaar mailing list