comparison mercurial/subrepo.py @ 41676: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 91701785c2c5
comparison
equal deleted inserted replaced
41675:ddbebce94665 41676:0531dff73d0b
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.never(self.wvfs.base, '', badfn=badfn) 326 return matchmod.never(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
805 ctx = self._repo[rev] 805 ctx = self._repo[rev]
806 return cmdutil.files(ui, ctx, m, fm, fmt, subrepos) 806 return cmdutil.files(ui, ctx, m, fm, fmt, subrepos)
807 807
808 @annotatesubrepoerror 808 @annotatesubrepoerror
809 def matchfileset(self, expr, badfn=None): 809 def matchfileset(self, expr, badfn=None):
810 repo = self._repo
811 if self._ctx.rev() is None: 810 if self._ctx.rev() is None:
812 ctx = repo[None] 811 ctx = self._repo[None]
813 else: 812 else:
814 rev = self._state[1] 813 rev = self._state[1]
815 ctx = repo[rev] 814 ctx = self._repo[rev]
816 815
817 matchers = [ctx.matchfileset(expr, badfn=badfn)] 816 matchers = [ctx.matchfileset(expr, badfn=badfn)]
818 817
819 for subpath in ctx.substate: 818 for subpath in ctx.substate:
820 sub = ctx.sub(subpath) 819 sub = ctx.sub(subpath)