Mercurial > public > mercurial-scm > hg
diff mercurial/subrepo.py @ 41673:1db5ae4b0dda
cleanup: prefer matchmod.{always,never}() over accessing matchers directly
We have these factory methods so we should use them.
Differential Revision: https://phab.mercurial-scm.org/D5927
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Sun, 10 Feb 2019 14:16:37 -0800 |
parents | 16a49c778bde |
children | ddbebce94665 |
line wrap: on
line diff
--- a/mercurial/subrepo.py Sun Feb 10 14:16:33 2019 -0800 +++ b/mercurial/subrepo.py Sun Feb 10 14:16:37 2019 -0800 @@ -323,7 +323,7 @@ def matchfileset(self, expr, badfn=None): """Resolve the fileset expression for this repo""" - return matchmod.nevermatcher(self.wvfs.base, '', badfn=badfn) + return matchmod.never(self.wvfs.base, '', badfn=badfn) def printfiles(self, ui, m, fm, fmt, subrepos): """handle the files command for this subrepo"""