1 |
pva 09/10/06 22:39:24 |
2 |
|
3 |
Added: qbzr-0.14.3-has_dir.patch |
4 |
Log: |
5 |
Fix TestLogGraphProvider tests. |
6 |
(Portage version: 2.1.6.13/cvs/Linux x86_64) |
7 |
|
8 |
Revision Changes Path |
9 |
1.1 dev-util/qbzr/files/qbzr-0.14.3-has_dir.patch |
10 |
|
11 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/qbzr/files/qbzr-0.14.3-has_dir.patch?rev=1.1&view=markup |
12 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/qbzr/files/qbzr-0.14.3-has_dir.patch?rev=1.1&content-type=text/plain |
13 |
|
14 |
Index: qbzr-0.14.3-has_dir.patch |
15 |
=================================================================== |
16 |
=== modified file 'lib/tests/test_loggraphprovider.py' |
17 |
--- lib/tests/test_loggraphprovider.py 2009-07-02 01:24:02 +0000 |
18 |
+++ lib/tests/test_loggraphprovider.py 2009-10-04 19:42:42 +0000 |
19 |
@@ -79,18 +79,15 @@ |
20 |
self.assertEqual(None, bi.index) |
21 |
|
22 |
self.assertEqual(['file1-id'], gp.fileids) |
23 |
- self.assertFalse(gp.has_dir) |
24 |
|
25 |
gp.open_branch(branch, tree=tree, file_ids = ['dir-id']) |
26 |
self.assertEqual(['file1-id', 'dir-id'], gp.fileids) |
27 |
- self.assertTrue(gp.has_dir) |
28 |
|
29 |
# Check that a new branch has not been added. |
30 |
self.assertLength(1, gp.branches) |
31 |
|
32 |
gp.open_branch(branch, tree=tree, file_ids = ['file3-id']) |
33 |
self.assertEqual(['file1-id', 'dir-id','file3-id'], gp.fileids) |
34 |
- self.assertTrue(gp.has_dir) |
35 |
|
36 |
# Check that a new branch has not been added. |
37 |
self.assertLength(1, gp.branches) |
38 |
@@ -162,15 +159,12 @@ |
39 |
|
40 |
gp.open_locations(['branch/file1']) |
41 |
self.assertEqual(['file1-id'], gp.fileids) |
42 |
- self.assertFalse(gp.has_dir) |
43 |
|
44 |
gp.open_locations(['branch/dir']) |
45 |
self.assertEqual(['file1-id', 'dir-id'], gp.fileids) |
46 |
- self.assertTrue(gp.has_dir) |
47 |
|
48 |
gp.open_locations(['branch/file3']) |
49 |
self.assertEqual(['file1-id', 'dir-id','file3-id'], gp.fileids) |
50 |
- self.assertTrue(gp.has_dir) |
51 |
|
52 |
def test_open_locations_files(self): |
53 |
tree = self.make_branch_and_tree_with_files_and_dir() |