comparison mercurial/subrepo.py @ 41675:ddbebce94665

match: delete unused root and cwd arguments to constructors (API) Most matchers no longer need the root and cwd arguments. patternmatcher and includematcher still need the root argument for subincludes. Differential Revision: https://phab.mercurial-scm.org/D5929
author Martin von Zweigbergk <martinvonz@google.com>
date Sun, 10 Feb 2019 14:35:36 -0800
parents 1db5ae4b0dda
children 0531dff73d0b
comparison
equal deleted inserted replaced
41674:e178b131906a 41675:ddbebce94665
819 for subpath in ctx.substate: 819 for subpath in ctx.substate:
820 sub = ctx.sub(subpath) 820 sub = ctx.sub(subpath)
821 821
822 try: 822 try:
823 sm = sub.matchfileset(expr, badfn=badfn) 823 sm = sub.matchfileset(expr, badfn=badfn)
824 pm = matchmod.prefixdirmatcher(repo.root, repo.getcwd(), 824 pm = matchmod.prefixdirmatcher(subpath, sm, badfn=badfn)
825 subpath, sm, badfn=badfn)
826 matchers.append(pm) 825 matchers.append(pm)
827 except error.LookupError: 826 except error.LookupError:
828 self.ui.status(_("skipping missing subrepository: %s\n") 827 self.ui.status(_("skipping missing subrepository: %s\n")
829 % self.wvfs.reljoin(reporelpath(self), subpath)) 828 % self.wvfs.reljoin(reporelpath(self), subpath))
830 if len(matchers) == 1: 829 if len(matchers) == 1: