Rev 3236: Review Repository test_statistics tests for use with a read-instance repository. in http://people.ubuntu.com/~robertc/baz2.0/shallow-branch

Robert Collins robertc at robertcollins.net
Tue Feb 19 04:40:46 GMT 2008


At http://people.ubuntu.com/~robertc/baz2.0/shallow-branch

------------------------------------------------------------
revno: 3236
revision-id:robertc at robertcollins.net-20080219044041-q6goelmps4yh77u9
parent: robertc at robertcollins.net-20080219040027-hy0djasndlb77wt7
committer: Robert Collins <robertc at robertcollins.net>
branch nick: repository_implementations.split_read_write
timestamp: Tue 2008-02-19 15:40:41 +1100
message:
  Review Repository test_statistics tests for use with a read-instance repository.
modified:
  bzrlib/tests/repository_implementations/test_statistics.py test_statistics.py-20070203082432-6738e8fl0mm7ikre-1
=== modified file 'bzrlib/tests/repository_implementations/test_statistics.py'
--- a/bzrlib/tests/repository_implementations/test_statistics.py	2007-02-03 10:56:04 +0000
+++ b/bzrlib/tests/repository_implementations/test_statistics.py	2008-02-19 04:40:41 +0000
@@ -80,6 +80,14 @@
             'revisions': 1
             },
             stats)
+        # and via a readonly instance
+        stats = self._make_test_read_instance(
+            tree.branch.repository).gather_stats()
+        self.check_stats_has_size(stats)
+        self.assertEqual({
+            'revisions': 1
+            },
+            stats)
 
     def test_gather_stats_empty_repo(self):
         """An empty repository still has size and revisions."""



More information about the bazaar-commits mailing list