Rev 4057: Fix obvious typo to make selftest -s bzrlib.tests.test_pack_repository.TestSmartServerAutopack.test_autopack_or_streaming_rpc_is_used_when_using_hpss pass for brisbane-code in file:///net/bigmamac/Volumes/home/vila/src/bzr/experimental/bbc-fixes/
Vincent Ladeuil
v.ladeuil+lp at free.fr
Thu Feb 26 15:49:20 GMT 2009
At file:///net/bigmamac/Volumes/home/vila/src/bzr/experimental/bbc-fixes/
------------------------------------------------------------
revno: 4057
revision-id: v.ladeuil+lp at free.fr-20090226154917-l10tox3vjej38szn
parent: pqm at pqm.ubuntu.com-20090226073908-1fjp24b0llwqc0l7
committer: Vincent Ladeuil <v.ladeuil+lp at free.fr>
branch nick: bbc-fixes
timestamp: Thu 2009-02-26 16:49:17 +0100
message:
Fix obvious typo to make selftest -s bzrlib.tests.test_pack_repository.TestSmartServerAutopack.test_autopack_or_streaming_rpc_is_used_when_using_hpss pass for brisbane-code
-------------- next part --------------
=== modified file 'bzrlib/versionedfile.py'
--- a/bzrlib/versionedfile.py 2009-02-23 15:29:35 +0000
+++ b/bzrlib/versionedfile.py 2009-02-26 15:49:17 +0000
@@ -1534,19 +1534,19 @@
def fulltext_network_to_record(kind, bytes, line_end):
"""Convert a network fulltext record to record."""
meta_len, = struct.unpack('!L', bytes[line_end:line_end+4])
- record_meta = record_bytes[line_end+4:line_end+4+meta_len]
+ record_meta = bytes[line_end+4:line_end+4+meta_len]
key, parents = bencode.bdecode_as_tuple(record_meta)
if parents == 'nil':
parents = None
- fulltext = record_bytes[line_end+4+meta_len:]
- return FulltextContentFactory(key, parents, None, fulltext)
+ fulltext = bytes[line_end+4+meta_len:]
+ return [FulltextContentFactory(key, parents, None, fulltext)]
def _length_prefix(bytes):
return struct.pack('!L', len(bytes))
-def record_to_fulltext_bytes(self, record):
+def record_to_fulltext_bytes(record):
if record.parents is None:
parents = 'nil'
else:
More information about the bazaar-commits
mailing list