[MERGE] Make {BzrDir,Repository}.find_branches a generator.
Robert Collins
robertc at robertcollins.net
Tue Apr 8 02:53:23 BST 2008
On Tue, 2008-04-08 at 11:39 +1000, Andrew Bennetts wrote:
> 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.
I'm hesitant about the use of generators when we likely have uncompleted
network IO underneath them. This plays badly with the smart server.
The command could be made much faster if it invoked an RPC method :P.
-Rob
--
GPG key available at: <http://www.robertcollins.net/keys.txt>.
-------------- 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/20080408/d53a1f08/attachment.pgp
More information about the bazaar
mailing list