diff mercurial/fileset.py @ 41687:0531dff73d0b

match: delete unused root and cwd arguments from {always,never,exact}() (API) Differential Revision: https://phab.mercurial-scm.org/D5930
author Martin von Zweigbergk <martinvonz@google.com>
date Sat, 09 Feb 2019 22:50:53 -0800
parents ddbebce94665
children 2372284d9457
line wrap: on
line diff
--- a/mercurial/fileset.py	Sun Feb 10 14:35:36 2019 -0800
+++ b/mercurial/fileset.py	Sat Feb 09 22:50:53 2019 -0800
@@ -538,8 +538,7 @@
 
     def never(self):
         """Create a matcher to select nothing"""
-        repo = self.ctx.repo()
-        return matchmod.never(repo.root, repo.getcwd(), badfn=self._badfn)
+        return matchmod.never(badfn=self._badfn)
 
 def match(ctx, expr, badfn=None):
     """Create a matcher for a single fileset expression"""