Rev 2662: Ancient unused Repository.text_store attribute has been removed. (Robert Collins) in http://people.ubuntu.com/~robertc/baz2.0/integration

Robert Collins robertc at robertcollins.net
Tue Jul 31 02:41:12 BST 2007


At http://people.ubuntu.com/~robertc/baz2.0/integration

------------------------------------------------------------
revno: 2662
revision-id: robertc at robertcollins.net-20070731014105-c154n91270dmb4k9
parent: pqm at pqm.ubuntu.com-20070730235409-pfqxlkh2dcs95u70
committer: Robert Collins <robertc at robertcollins.net>
branch nick: integration
timestamp: Tue 2007-07-31 11:41:05 +1000
message:
  Ancient unused Repository.text_store attribute has been removed. (Robert Collins)
modified:
  NEWS                           NEWS-20050323055033-4e00b5db738777ff
  bzrlib/bzrdir.py               bzrdir.py-20060131065624-156dfea39c4387cb
  bzrlib/repository.py           rev_storage.py-20051111201905-119e9401e46257e3
=== modified file 'NEWS'
--- a/NEWS	2007-07-30 17:06:48 +0000
+++ b/NEWS	2007-07-31 01:41:05 +0000
@@ -113,6 +113,9 @@
 
     * KnitIndex.get_parents now returns tuples. (Robert Collins)
 
+    * Ancient unused ``Repository.text_store`` attribute has been removed.
+      (Robert Collins)
+
   INTERNALS:
 
     * merge now uses ``iter_changes`` to calculate changes, which makes room for

=== modified file 'bzrlib/bzrdir.py'
--- a/bzrlib/bzrdir.py	2007-07-15 10:44:12 +0000
+++ b/bzrlib/bzrdir.py	2007-07-31 01:41:05 +0000
@@ -1950,7 +1950,7 @@
                 ie.revision = previous_ie.revision
                 return
         if ie.has_text():
-            text = self.branch.repository.text_store.get(ie.text_id)
+            text = self.branch.repository.weave_store.get(ie.text_id)
             file_lines = text.readlines()
             assert sha_strings(file_lines) == ie.text_sha1
             assert sum(map(len, file_lines)) == ie.text_size

=== modified file 'bzrlib/repository.py'
--- a/bzrlib/repository.py	2007-07-25 00:52:21 +0000
+++ b/bzrlib/repository.py	2007-07-31 01:41:05 +0000
@@ -221,7 +221,6 @@
         self.bzrdir = a_bzrdir
         self.control_files = control_files
         self._revision_store = _revision_store
-        self.text_store = text_store
         # backwards compatibility
         self.weave_store = text_store
         # not right yet - should be more semantically clear ? 



More information about the bazaar-commits mailing list