Rev 2468: Extend the test a bit to make sure the include_unchanged value is correct. in http://bzr.arbash-meinel.com/branches/bzr/0.16-dev/mixed_names_111127

John Arbash Meinel john at arbash-meinel.com
Mon Apr 30 17:22:53 BST 2007


At http://bzr.arbash-meinel.com/branches/bzr/0.16-dev/mixed_names_111127

------------------------------------------------------------
revno: 2468
revision-id: john at arbash-meinel.com-20070430162242-3gds64wynnny2t57
parent: john at arbash-meinel.com-20070430160855-z8zh7eb7r629ch6g
committer: John Arbash Meinel <john at arbash-meinel.com>
branch nick: mixed_names_111127
timestamp: Mon 2007-04-30 11:22:42 -0500
message:
  Extend the test a bit to make sure the include_unchanged value is correct.
  still (broken)
modified:
  bzrlib/tests/intertree_implementations/test_compare.py test_compare.py-20060724101752-09ysswo1a92uqyoz-2
-------------- next part --------------
=== modified file 'bzrlib/tests/intertree_implementations/test_compare.py'
--- a/bzrlib/tests/intertree_implementations/test_compare.py	2007-04-30 16:08:55 +0000
+++ b/bzrlib/tests/intertree_implementations/test_compare.py	2007-04-30 16:22:42 +0000
@@ -893,6 +893,17 @@
 
         self.assertEqual([], self.do_iter_changes(tree1, tree2,
                                                   want_unversioned=True))
+        expected = sorted([
+            self.unchanged(tree2, tree2.get_root_id()),
+            self.unchanged(tree2, 'a-id'),
+            self.unchanged(tree2, 'b-id'),
+            self.unchanged(tree2, 'a-c-id'),
+            self.unchanged(tree2, 'd-id'),
+            ])
+        self.assertEqual(expected,
+                         self.do_iter_changes(tree1, tree2,
+                                              want_unversioned=True,
+                                              include_unchanged=True))
 
 
     def test_unversioned_subtree_only_emits_root(self):



More information about the bazaar-commits mailing list