Show More
@@ -910,6 +910,7 b' class prefixdirmatcher(basematcher):' | |||||
910 | return self._matcher.visitchildrenset(dir[len(self._pathprefix):]) |
|
910 | return self._matcher.visitchildrenset(dir[len(self._pathprefix):]) | |
911 | if dir in self._pathdirs: |
|
911 | if dir in self._pathdirs: | |
912 | return 'this' |
|
912 | return 'this' | |
|
913 | return set() | |||
913 |
|
914 | |||
914 | def isexact(self): |
|
915 | def isexact(self): | |
915 | return self._matcher.isexact() |
|
916 | return self._matcher.isexact() |
@@ -97,6 +97,8 b' class PatternMatcherTests(unittest.TestC' | |||||
97 | self.assertEqual(m.visitchildrenset('.'), 'this') |
|
97 | self.assertEqual(m.visitchildrenset('.'), 'this') | |
98 | self.assertEqual(m.visitchildrenset('dir/subdir/x'), set()) |
|
98 | self.assertEqual(m.visitchildrenset('dir/subdir/x'), set()) | |
99 | self.assertEqual(m.visitchildrenset('folder'), set()) |
|
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 | self.assertEqual(m.visitchildrenset('dir'), set()) |
|
102 | self.assertEqual(m.visitchildrenset('dir'), set()) | |
101 | self.assertEqual(m.visitchildrenset('dir/subdir'), set()) |
|
103 | self.assertEqual(m.visitchildrenset('dir/subdir'), set()) | |
102 |
|
104 |
General Comments 0
You need to be logged in to leave comments.
Login now