Mercurial > hg
comparison mercurial/match.py @ 24452:7797fadac0e8
match: remove unused assignment of ctx
ctx is consumed in __init__ to build match patterns and never used after that.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sat, 17 Jan 2015 12:39:44 +0900 |
parents | 55c449345b10 |
children | 36872036169b |
comparison
equal
deleted
inserted
replaced
24451:c3bbafef25d6 | 24452:7797fadac0e8 |
---|---|
70 | 70 |
71 self._root = root | 71 self._root = root |
72 self._cwd = cwd | 72 self._cwd = cwd |
73 self._files = [] # exact files and roots of patterns | 73 self._files = [] # exact files and roots of patterns |
74 self._anypats = bool(include or exclude) | 74 self._anypats = bool(include or exclude) |
75 self._ctx = ctx | |
76 self._always = False | 75 self._always = False |
77 self._pathrestricted = bool(include or exclude or patterns) | 76 self._pathrestricted = bool(include or exclude or patterns) |
78 | 77 |
79 matchfns = [] | 78 matchfns = [] |
80 if include: | 79 if include: |