Rev 2777: Use the revision index, not the inventory index, for missing and fetch operations. in http://people.ubuntu.com/~robertc/baz2.0/repository

Robert Collins robertc at robertcollins.net
Sun Sep 23 23:43:39 BST 2007


At http://people.ubuntu.com/~robertc/baz2.0/repository

------------------------------------------------------------
revno: 2777
revision-id: robertc at robertcollins.net-20070923224332-qy28l0g345rcyein
parent: robertc at robertcollins.net-20070923223357-z02p4dyenpvg4nn7
committer: Robert Collins <robertc at robertcollins.net>
branch nick: repository
timestamp: Mon 2007-09-24 08:43:32 +1000
message:
  Use the revision index, not the inventory index, for missing and fetch operations.
modified:
  bzrlib/repository.py           rev_storage.py-20051111201905-119e9401e46257e3
=== modified file 'bzrlib/repository.py'
--- a/bzrlib/repository.py	2007-09-23 20:46:34 +0000
+++ b/bzrlib/repository.py	2007-09-23 22:43:32 +0000
@@ -2393,13 +2393,13 @@
             assert source_ids[0] is None
             source_ids.pop(0)
         else:
-            source_ids = self.source._all_possible_ids()
+            source_ids = self.source.all_revision_ids()
         source_ids_set = set(source_ids)
         # source_ids is the worst possible case we may need to pull.
         # now we want to filter source_ids against what we actually
         # have in target, but don't try to check for existence where we know
         # we do not have a revision as that would be pointless.
-        target_ids = set(self.target._all_possible_ids())
+        target_ids = set(self.target.all_revision_ids())
         actually_present_revisions = target_ids.intersection(source_ids_set)
         required_revisions = source_ids_set.difference(actually_present_revisions)
         required_topo_revisions = [rev_id for rev_id in source_ids if rev_id in required_revisions]



More information about the bazaar-commits mailing list