mercurial/fileset.py
changeset 41676 0531dff73d0b
parent 41675 ddbebce94665
child 43076 2372284d9457
equal deleted inserted replaced
41675:ddbebce94665 41676:0531dff73d0b
   536                 return predfn(fctx)
   536                 return predfn(fctx)
   537         return self.predicate(fctxpredfn, predrepr=predrepr, cache=cache)
   537         return self.predicate(fctxpredfn, predrepr=predrepr, cache=cache)
   538 
   538 
   539     def never(self):
   539     def never(self):
   540         """Create a matcher to select nothing"""
   540         """Create a matcher to select nothing"""
   541         repo = self.ctx.repo()
   541         return matchmod.never(badfn=self._badfn)
   542         return matchmod.never(repo.root, repo.getcwd(), badfn=self._badfn)
       
   543 
   542 
   544 def match(ctx, expr, badfn=None):
   543 def match(ctx, expr, badfn=None):
   545     """Create a matcher for a single fileset expression"""
   544     """Create a matcher for a single fileset expression"""
   546     tree = filesetlang.parse(expr)
   545     tree = filesetlang.parse(expr)
   547     tree = filesetlang.analyze(tree)
   546     tree = filesetlang.analyze(tree)