Mercurial > public > mercurial-scm > hg
diff mercurial/changegroup.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 | fa7d61f9c512 |
children | 0531dff73d0b |
line wrap: on
line diff
--- a/mercurial/changegroup.py Sun Feb 10 14:16:33 2019 -0800 +++ b/mercurial/changegroup.py Sun Feb 10 14:16:37 2019 -0800 @@ -1313,9 +1313,9 @@ assert version in supportedoutgoingversions(repo) if matcher is None: - matcher = matchmod.alwaysmatcher(repo.root, '') + matcher = matchmod.always(repo.root, '') if oldmatcher is None: - oldmatcher = matchmod.nevermatcher(repo.root, '') + oldmatcher = matchmod.never(repo.root, '') if version == '01' and not matcher.always(): raise error.ProgrammingError('version 01 changegroups do not support '