[PATCH 2 of 2] match: remove unused assignment of ctx

Yuya Nishihara yuya at tcha.org
Wed Mar 25 07:16:14 CDT 2015


# HG changeset patch
# User Yuya Nishihara <yuya at tcha.org>
# Date 1421465984 -32400
#      Sat Jan 17 12:39:44 2015 +0900
# Node ID 16b7fe3da7bad2a9ebffe55d8745fb75e4b1db12
# Parent  fc35f6b8a2365bcdb143b5d6dfbf3707517f96c5
match: remove unused assignment of ctx

ctx is consumed in __init__ to build match patterns and never used after that.

diff --git a/mercurial/match.py b/mercurial/match.py
--- a/mercurial/match.py
+++ b/mercurial/match.py
@@ -63,7 +63,6 @@ class match(object):
         self._cwd = cwd
         self._files = [] # exact files and roots of patterns
         self._anypats = bool(include or exclude)
-        self._ctx = ctx
         self._always = False
         self._pathrestricted = bool(include or exclude or patterns)
 


More information about the Mercurial-devel mailing list