##// END OF EJS Templates
match: override visitdir() in nevermatcher to return False...
Martin von Zweigbergk -
r33583:44bc181b stable
parent child Browse files
Show More
@@ -0,0 +1,19 b''
1 from __future__ import absolute_import
2
3 import unittest
4
5 import silenttestrunner
6
7 from mercurial import (
8 match as matchmod,
9 )
10
11 class NeverMatcherTests(unittest.TestCase):
12
13 def testVisitdir(self):
14 m = matchmod.nevermatcher('', '')
15 self.assertFalse(m.visitdir('.'))
16 self.assertFalse(m.visitdir('dir'))
17
18 if __name__ == '__main__':
19 silenttestrunner.main(__name__)
@@ -363,6 +363,9 b' class nevermatcher(basematcher):'
363 def prefix(self):
363 def prefix(self):
364 return True
364 return True
365
365
366 def visitdir(self, dir):
367 return False
368
366 def __repr__(self):
369 def __repr__(self):
367 return '<nevermatcher>'
370 return '<nevermatcher>'
368
371
General Comments 0
You need to be logged in to leave comments. Login now