Show More
@@ -910,6 +910,7 class prefixdirmatcher(basematcher): | |||
|
910 | 910 | return self._matcher.visitchildrenset(dir[len(self._pathprefix):]) |
|
911 | 911 | if dir in self._pathdirs: |
|
912 | 912 | return 'this' |
|
913 | return set() | |
|
913 | 914 | |
|
914 | 915 | def isexact(self): |
|
915 | 916 | return self._matcher.isexact() |
@@ -97,6 +97,8 class PatternMatcherTests(unittest.TestC | |||
|
97 | 97 | self.assertEqual(m.visitchildrenset('.'), 'this') |
|
98 | 98 | self.assertEqual(m.visitchildrenset('dir/subdir/x'), set()) |
|
99 | 99 | self.assertEqual(m.visitchildrenset('folder'), set()) |
|
100 | # FIXME: These should probably be {'subdir'} and 'this', respectively, | |
|
101 | # or at least 'this' and 'this'. | |
|
100 | 102 | self.assertEqual(m.visitchildrenset('dir'), set()) |
|
101 | 103 | self.assertEqual(m.visitchildrenset('dir/subdir'), set()) |
|
102 | 104 |
General Comments 0
You need to be logged in to leave comments.
Login now