Rev 2859: Merge pack push performance fix. in http://people.ubuntu.com/~robertc/baz2.0/repository
Robert Collins
robertc at robertcollins.net
Sun Oct 28 19:16:34 GMT 2007
At http://people.ubuntu.com/~robertc/baz2.0/repository
------------------------------------------------------------
revno: 2859
revision-id:robertc at robertcollins.net-20071028191630-5rwo6sy9dguob5r6
parent: robertc at robertcollins.net-20071028173245-0jboqn9k9if01wq1
parent: robertc at robertcollins.net-20071028190205-j7669ntq0jj7s5fl
committer: Robert Collins <robertc at robertcollins.net>
branch nick: repository
timestamp: Mon 2007-10-29 06:16:30 +1100
message:
Merge pack push performance fix.
modified:
bzrlib/repofmt/pack_repo.py pack_repo.py-20070813041115-gjv5ma7ktfqwsjgn-1
------------------------------------------------------------
revno: 2592.1.25.2.7.1.28.1.6.1.3.1.9.2.1.3.74.1.31.3.18.1.9.1.2.1.12.1.8.1.46.1.18.1.1.2.21.2.10.3.8.2.9.1.9.1.1
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