Rev 3226: Inspect Repository check tests for places where a readonly copy can be a valid check. in http://people.ubuntu.com/~robertc/baz2.0/shallow-branch

Robert Collins robertc at robertcollins.net
Mon Feb 18 03:38:40 GMT 2008


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

------------------------------------------------------------
revno: 3226
revision-id:robertc at robertcollins.net-20080218033835-ukg71m7228deri5k
parent: robertc at robertcollins.net-20080218033518-opuvnwo2ng6mc2dy
committer: Robert Collins <robertc at robertcollins.net>
branch nick: repository_implementations.split_read_write
timestamp: Mon 2008-02-18 14:38:35 +1100
message:
  Inspect Repository check tests for places where a readonly copy can be a valid check.
modified:
  bzrlib/tests/repository_implementations/test_check.py test_check.py-20070824124512-38g4d135gcqxo4zb-1
=== modified file 'bzrlib/tests/repository_implementations/test_check.py'
--- a/bzrlib/tests/repository_implementations/test_check.py	2007-11-27 21:58:36 +0000
+++ b/bzrlib/tests/repository_implementations/test_check.py	2008-02-18 03:38:35 +0000
@@ -40,10 +40,8 @@
         tree.commit('1')
         self.build_tree(['bar'])
         tree.smart_add(['.'])
-        tree.commit('2')
-        # XXX: check requires a non-empty revision IDs list, but it ignores the
-        # contents of it!
-        check_object = tree.branch.repository.check(['ignored'])
+        rev_id = tree.commit('2')
+        check_object = tree.branch.repository.check([rev_id])
         check_object.report_results(verbose=False)
         log = self._get_log(keep_log_file=True)
         self.assertContainsRe(



More information about the bazaar-commits mailing list