Rev 3230: Review Repository find_text_key_references 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 00:34:42 GMT 2008


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

------------------------------------------------------------
revno: 3230
revision-id:robertc at robertcollins.net-20080219003438-kp7qwb8ykpxxr1ju
parent: robertc at robertcollins.net-20080219003138-g71escms9l7dhd7c
committer: Robert Collins <robertc at robertcollins.net>
branch nick: repository_implementations.split_read_write
timestamp: Tue 2008-02-19 11:34:38 +1100
message:
  Review Repository find_text_key_references tests for use with a read-instance repository.
modified:
  bzrlib/tests/repository_implementations/test_find_text_key_references.py test_find_text_key_r-20071114033605-v73bakal8x77qlfi-1
=== modified file 'bzrlib/tests/repository_implementations/test_find_text_key_references.py'
--- a/bzrlib/tests/repository_implementations/test_find_text_key_references.py	2007-11-14 04:24:24 +0000
+++ b/bzrlib/tests/repository_implementations/test_find_text_key_references.py	2008-02-19 00:34:38 +0000
@@ -28,3 +28,9 @@
         repo.lock_read()
         self.addCleanup(repo.unlock)
         self.assertEqual({}, repo.find_text_key_references())
+
+    def test_empty_read_instnace(self):
+        repo = self._make_test_read_instance(self.make_repository('.'))
+        repo.lock_read()
+        self.addCleanup(repo.unlock)
+        self.assertEqual({}, repo.find_text_key_references())



More information about the bazaar-commits mailing list