Rev 3977: Use a list not a tuple for chunks returned from FullTextContentFactory objects, because otherwise code tries to assign to tuples. in http://people.ubuntu.com/~robertc/baz2.0/fix-chunked
Robert Collins
robertc at robertcollins.net
Tue Feb 3 01:38:47 GMT 2009
At http://people.ubuntu.com/~robertc/baz2.0/fix-chunked
------------------------------------------------------------
revno: 3977
revision-id: robertc at robertcollins.net-20090203013845-ulfy3d891op4zqoe
parent: pqm at pqm.ubuntu.com-20090131231933-8o4phfvmuuizyyn6
committer: Robert Collins <robertc at robertcollins.net>
branch nick: fix-chunked
timestamp: Tue 2009-02-03 12:38:45 +1100
message:
Use a list not a tuple for chunks returned from FullTextContentFactory objects, because otherwise code tries to assign to tuples.
=== modified file 'bzrlib/versionedfile.py'
--- a/bzrlib/versionedfile.py 2009-01-22 01:03:44 +0000
+++ b/bzrlib/versionedfile.py 2009-02-03 01:38:45 +0000
@@ -148,7 +148,7 @@
if storage_kind == self.storage_kind:
return self._text
elif storage_kind == 'chunked':
- return (self._text,)
+ return [self._text]
raise errors.UnavailableRepresentation(self.key, storage_kind,
self.storage_kind)
More information about the bazaar-commits
mailing list