Mercurial > hg
changeset 22777:bbb2f8b0459e
match: remove unnecessary setting of self._always
The 'always' class calls its parent constructor with an empty list of
patterns, which will result in a matcher that always matches. The
parent constructor will set self._always to True in such cases, so
there is no need to set it again.
author | Martin von Zweigbergk <martinvonz@gmail.com> |
---|---|
date | Tue, 30 Sep 2014 15:58:08 -0700 |
parents | 564ae7d2ec9b |
children | 80f2b63dd83a |
files | mercurial/match.py |
diffstat | 1 files changed, 0 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/match.py Fri Oct 03 00:43:22 2014 +0900 +++ b/mercurial/match.py Tue Sep 30 15:58:08 2014 -0700 @@ -156,7 +156,6 @@ class always(match): def __init__(self, root, cwd): match.__init__(self, root, cwd, []) - self._always = True class narrowmatcher(match): """Adapt a matcher to work on a subdirectory only.