Rev 2948: (robertc) Fix pack-repository to support get_parents calls as the first call on a repository, and fix full-branch push/pull performance to not suck terribly. (Robert Collins) in http://people.ubuntu.com/~robertc/baz2.0/pack

Robert Collins robertc at robertcollins.net
Sun Oct 28 19:02:09 GMT 2007


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

------------------------------------------------------------
revno: 2948
revision-id:robertc at robertcollins.net-20071028190205-j7669ntq0jj7s5fl
parent: pqm at pqm.ubuntu.com-20071028093324-h4ymz42l31vwfbu1
committer: Robert Collins <robertc at robertcollins.net>
branch nick: pack
timestamp: Mon 2007-10-29 06:02:05 +1100
message:
  (robertc) Fix pack-repository to support get_parents calls as the first call on a repository, and fix full-branch push/pull performance to not suck terribly. (Robert Collins)
modified:
  bzrlib/repofmt/pack_repo.py    pack_repo.py-20070813041115-gjv5ma7ktfqwsjgn-1
=== modified file 'bzrlib/repofmt/pack_repo.py'
--- a/bzrlib/repofmt/pack_repo.py	2007-10-26 08:56:09 +0000
+++ b/bzrlib/repofmt/pack_repo.py	2007-10-28 19:02:05 +0000
@@ -620,6 +620,7 @@
         if revision_ids is not None and len(revision_ids) == 0:
             # silly fetch request.
             return None
+        revision_ids = frozenset(revision_ids)
         new_pack = NewPack(self._upload_transport, self._index_transport,
             self._pack_transport, upload_suffix=suffix)
         # buffer data - we won't be reading-back during the pack creation and
@@ -1440,6 +1441,7 @@
         This implementation accesses the combined revision index to provide
         answers.
         """
+        self._pack_collection.ensure_loaded()
         index = self._pack_collection.revision_index.combined_index
         search_keys = set()
         for revision_id in revision_ids:



More information about the bazaar-commits mailing list