Rev 2953: Use a list comprehension not a generator. in http://people.ubuntu.com/~robertc/baz2.0/fetch
Robert Collins
robertc at robertcollins.net
Tue Oct 30 19:42:34 GMT 2007
At http://people.ubuntu.com/~robertc/baz2.0/fetch
------------------------------------------------------------
revno: 2953
revision-id:robertc at robertcollins.net-20071030194231-07hv0tjz76xzfoom
parent: robertc at robertcollins.net-20071030183733-cygr23zc5sycopbg
committer: Robert Collins <robertc at robertcollins.net>
branch nick: fetch
timestamp: Wed 2007-10-31 06:42:31 +1100
message:
Use a list comprehension not a generator.
modified:
bzrlib/repository.py rev_storage.py-20051111201905-119e9401e46257e3
=== modified file 'bzrlib/repository.py'
--- a/bzrlib/repository.py 2007-10-30 18:37:33 +0000
+++ b/bzrlib/repository.py 2007-10-30 19:42:31 +0000
@@ -2391,7 +2391,7 @@
except StopIteration:
break
next_revs.difference_update(null_set)
- target_keys = ((key,) for key in next_revs)
+ target_keys = [(key,) for key in next_revs]
have_revs = frozenset(node[1][0] for node in
target_index.iter_entries(target_keys))
missing_revs.update(next_revs - have_revs)
More information about the bazaar-commits
mailing list