Rev 3801: Define index_builder_class in NewPack before it is used. in http://people.ubuntu.com/~robertc/baz2.0/repository
Robert Collins
robertc at robertcollins.net
Wed Dec 10 05:29:18 GMT 2008
At http://people.ubuntu.com/~robertc/baz2.0/repository
------------------------------------------------------------
revno: 3801
revision-id: robertc at robertcollins.net-20081210052856-rihwfka1pym2fod2
parent: john at arbash-meinel.com-20081207171419-u9bv8vntqimktxt0
committer: Robert Collins <robertc at robertcollins.net>
branch nick: repository
timestamp: Wed 2008-12-10 16:28:56 +1100
message:
Define index_builder_class in NewPack before it is used.
=== modified file 'bzrlib/repofmt/pack_repo.py'
--- a/bzrlib/repofmt/pack_repo.py 2008-12-07 16:46:56 +0000
+++ b/bzrlib/repofmt/pack_repo.py 2008-12-10 05:28:56 +0000
@@ -236,11 +236,11 @@
"""
# The relative locations of the packs are constrained, but all are
# passed in because the caller has them, so as to avoid object churn.
+ index_builder_class = pack_collection._index_builder_class
if pack_collection.chk_index is not None:
chk_index = index_builder_class(reference_lists=0)
else:
chk_index = None
- index_builder_class = pack_collection._index_builder_class
Pack.__init__(self,
# Revisions: parents list, no text compression.
index_builder_class(reference_lists=1),
More information about the bazaar-commits
mailing list