diff options
Diffstat (limited to 'dev-util/qbzr/files/qbzr-0.14.3-has_dir.patch')
-rw-r--r-- | dev-util/qbzr/files/qbzr-0.14.3-has_dir.patch | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/dev-util/qbzr/files/qbzr-0.14.3-has_dir.patch b/dev-util/qbzr/files/qbzr-0.14.3-has_dir.patch new file mode 100644 index 000000000000..80d965e8a4d8 --- /dev/null +++ b/dev-util/qbzr/files/qbzr-0.14.3-has_dir.patch @@ -0,0 +1,39 @@ +=== modified file 'lib/tests/test_loggraphprovider.py' +--- lib/tests/test_loggraphprovider.py 2009-07-02 01:24:02 +0000 ++++ lib/tests/test_loggraphprovider.py 2009-10-04 19:42:42 +0000 +@@ -79,18 +79,15 @@ + self.assertEqual(None, bi.index) + + self.assertEqual(['file1-id'], gp.fileids) +- self.assertFalse(gp.has_dir) + + gp.open_branch(branch, tree=tree, file_ids = ['dir-id']) + self.assertEqual(['file1-id', 'dir-id'], gp.fileids) +- self.assertTrue(gp.has_dir) + + # Check that a new branch has not been added. + self.assertLength(1, gp.branches) + + gp.open_branch(branch, tree=tree, file_ids = ['file3-id']) + self.assertEqual(['file1-id', 'dir-id','file3-id'], gp.fileids) +- self.assertTrue(gp.has_dir) + + # Check that a new branch has not been added. + self.assertLength(1, gp.branches) +@@ -162,15 +159,12 @@ + + gp.open_locations(['branch/file1']) + self.assertEqual(['file1-id'], gp.fileids) +- self.assertFalse(gp.has_dir) + + gp.open_locations(['branch/dir']) + self.assertEqual(['file1-id', 'dir-id'], gp.fileids) +- self.assertTrue(gp.has_dir) + + gp.open_locations(['branch/file3']) + self.assertEqual(['file1-id', 'dir-id','file3-id'], gp.fileids) +- self.assertTrue(gp.has_dir) + + def test_open_locations_files(self): + tree = self.make_branch_and_tree_with_files_and_dir() + |