Rev 3232: Review Repository has_revisions 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 01:12:57 GMT 2008
At http://people.ubuntu.com/~robertc/baz2.0/shallow-branch
------------------------------------------------------------
revno: 3232
revision-id:robertc at robertcollins.net-20080219011253-rh21k7b3fm46ypd6
parent: robertc at robertcollins.net-20080219003545-4lhlf6uufg6g92hw
committer: Robert Collins <robertc at robertcollins.net>
branch nick: repository_implementations.split_read_write
timestamp: Tue 2008-02-19 12:12:53 +1100
message:
Review Repository has_revisions tests for use with a read-instance repository.
modified:
bzrlib/tests/repository_implementations/test_has_revisions.py test_has_revisions.p-20080111035443-xaupgdsx5fw1q54b-1
=== modified file 'bzrlib/tests/repository_implementations/test_has_revisions.py'
--- a/bzrlib/tests/repository_implementations/test_has_revisions.py 2008-01-11 03:54:51 +0000
+++ b/bzrlib/tests/repository_implementations/test_has_revisions.py 2008-02-19 01:12:53 +0000
@@ -23,7 +23,7 @@
class TestHasRevisions(TestCaseWithRepository):
def test_empty_list(self):
- repo = self.make_repository('.')
+ repo = self._make_test_read_instance(self.make_repository('.'))
self.assertEqual(set(), repo.has_revisions([]))
def test_superset(self):
@@ -34,6 +34,9 @@
rev3 = tree.commit('3')
self.assertEqual(set([rev1, rev3]),
repo.has_revisions([rev1, rev3, 'foobar:']))
+ read_instance = self._make_test_read_instance(repo)
+ self.assertEqual(set([rev1, rev3]),
+ read_instance.has_revisions([rev1, rev3, 'foobar:']))
def test_NULL(self):
# NULL_REVISION is always present. So for
More information about the bazaar-commits
mailing list