comparison 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
comparison
equal deleted inserted replaced
41672:c302218a2528 41673:1db5ae4b0dda
321 """return file flags""" 321 """return file flags"""
322 return '' 322 return ''
323 323
324 def matchfileset(self, expr, badfn=None): 324 def matchfileset(self, expr, badfn=None):
325 """Resolve the fileset expression for this repo""" 325 """Resolve the fileset expression for this repo"""
326 return matchmod.nevermatcher(self.wvfs.base, '', badfn=badfn) 326 return matchmod.never(self.wvfs.base, '', badfn=badfn)
327 327
328 def printfiles(self, ui, m, fm, fmt, subrepos): 328 def printfiles(self, ui, m, fm, fmt, subrepos):
329 """handle the files command for this subrepo""" 329 """handle the files command for this subrepo"""
330 return 1 330 return 1
331 331