Rev 3850: Bring back the shortcut in http://bzr.arbash-meinel.com/branches/bzr/1.10-dev/builder_iter_entries

John Arbash Meinel john at arbash-meinel.com
Tue Nov 25 18:55:58 GMT 2008


At http://bzr.arbash-meinel.com/branches/bzr/1.10-dev/builder_iter_entries

------------------------------------------------------------
revno: 3850
revision-id: john at arbash-meinel.com-20081125185538-7lj7din373541s0r
parent: john at arbash-meinel.com-20081125182954-1d0u8uli0jphejy9
committer: John Arbash Meinel <john at arbash-meinel.com>
branch nick: builder_iter_entries
timestamp: Tue 2008-11-25 12:55:38 -0600
message:
  Bring back the shortcut
-------------- next part --------------
=== modified file 'bzrlib/btree_index.py'
--- a/bzrlib/btree_index.py	2008-11-25 18:29:54 +0000
+++ b/bzrlib/btree_index.py	2008-11-25 18:55:38 +0000
@@ -442,6 +442,8 @@
                 yield self, key, node[1]
         # Find things that are in backing indices that have not been handled
         # yet.
+        if not self._backing_indices:
+            return # We won't find anything there either
         # Remove all of the keys that we found locally
         keys.difference_update(local_keys)
         for backing in self._backing_indices:



More information about the bazaar-commits mailing list