Rev 2992: Review feedback. in http://people.ubuntu.com/~robertc/baz2.0/reconcile
Robert Collins
robertc at robertcollins.net
Sun Nov 18 19:52:59 GMT 2007
At http://people.ubuntu.com/~robertc/baz2.0/reconcile
------------------------------------------------------------
revno: 2992
revision-id:robertc at robertcollins.net-20071118195241-ccqig8k2xfkmydeu
parent: robertc at robertcollins.net-20071115202838-rs039w6z5ozu4t3u
committer: Robert Collins <robertc at robertcollins.net>
branch nick: find_text_key_references
timestamp: Mon 2007-11-19 06:52:41 +1100
message:
Review feedback.
modified:
bzrlib/repository.py rev_storage.py-20051111201905-119e9401e46257e3
=== modified file 'bzrlib/repository.py'
--- a/bzrlib/repository.py 2007-11-14 04:24:24 +0000
+++ b/bzrlib/repository.py 2007-11-18 19:52:41 +0000
@@ -1075,7 +1075,6 @@
finally:
pb.finished()
-
def _find_text_key_references_from_xml_inventory_lines(self,
line_iterator):
"""Core routine for extracting references to texts from inventories.
@@ -1089,10 +1088,11 @@
not part of the line_iterator's output then False will be given -
even though it may actually refer to that key.
"""
- assert self._serializer.support_altered_by_hack, \
- ("_find_text_key_references_from_xml_inventory_lines only "
- "supported for branches which store inventory as unnested xml, "
- "not on %r" % self)
+ if not self._serializer.support_altered_by_hack:
+ raise AssertionError(
+ "_find_text_key_references_from_xml_inventory_lines only "
+ "supported for branches which store inventory as unnested xml"
+ ", not on %r" % self)
result = {}
# this code needs to read every new line in every inventory for the
@@ -1138,10 +1138,10 @@
unescape_revid_cache[revision_id] = unescaped
revision_id = unescaped
- # Note that unescaping always means that on a fulltext cached
- # inventory we deserialised every fileid, which for general 'pull'
- # is not great, but we don't really want to have some many
- # fulltexts that this matters anyway. RBC 20071114.
+ # Note that unconditionally unescaping means that we deserialise
+ # every fileid, which for general 'pull' is not great, but we don't
+ # really want to have some many fulltexts that this matters anyway.
+ # RBC 20071114.
try:
file_id = unescape_fileid_cache[file_id]
except KeyError:
More information about the bazaar-commits
mailing list