##// END OF EJS Templates
context: simplify call to icase matcher in 'match()'...
Pierre-Yves David -
r31464:0e7a6279 default
parent child Browse files
Show More
@@ -1525,15 +1525,13 b' class workingctx(committablectx):'
1525
1525
1526 # Only a case insensitive filesystem needs magic to translate user input
1526 # Only a case insensitive filesystem needs magic to translate user input
1527 # to actual case in the filesystem.
1527 # to actual case in the filesystem.
1528 matcherfunc = matchmod.match
1528 if not util.fscasesensitive(r.root):
1529 if not util.fscasesensitive(r.root):
1529 return matchmod.icasefsmatcher(r.root, r.getcwd(), pats,
1530 matcherfunc = matchmod.icasefsmatcher
1530 include, exclude, default, r.auditor,
1531 return matcherfunc(r.root, r.getcwd(), pats,
1531 self, listsubrepos=listsubrepos,
1532 include, exclude, default,
1532 badfn=badfn)
1533 auditor=r.auditor, ctx=self,
1533 return matchmod.match(r.root, r.getcwd(), pats,
1534 listsubrepos=listsubrepos, badfn=badfn)
1534 include, exclude, default,
1535 auditor=r.auditor, ctx=self,
1536 listsubrepos=listsubrepos, badfn=badfn)
1537
1535
1538 def _filtersuspectsymlink(self, files):
1536 def _filtersuspectsymlink(self, files):
1539 if not files or self._repo.dirstate._checklink:
1537 if not files or self._repo.dirstate._checklink:
General Comments 0
You need to be logged in to leave comments. Login now