Mercurial > public > mercurial-scm > hg
diff mercurial/verify.py @ 39938:fec944719324
narrow: move support for `hg verify` into core
Differential Revision: https://phab.mercurial-scm.org/D4824
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Fri, 28 Sep 2018 12:05:48 -0700 |
parents | 733db72f0f54 |
children | d2ff0af6e959 |
line wrap: on
line diff
--- a/mercurial/verify.py Fri Sep 28 13:55:17 2018 -0700 +++ b/mercurial/verify.py Fri Sep 28 12:05:48 2018 -0700 @@ -19,7 +19,6 @@ error, pycompat, revlog, - scmutil, util, ) @@ -35,12 +34,10 @@ return f class verifier(object): - # The match argument is always None in hg core, but e.g. the narrowhg - # extension will pass in a matcher here. - def __init__(self, repo, match=None): + def __init__(self, repo): self.repo = repo.unfiltered() self.ui = repo.ui - self.match = match or scmutil.matchall(repo) + self.match = repo.narrowmatch() self.badrevs = set() self.errors = 0 self.warnings = 0