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

Martin von Zweigbergk martinvonz at google.com
Wed Mar 25 11:31:42 CDT 2015


This looks good to me. I've pushed the series to the clowncopter.

On Wed, Mar 25, 2015 at 5:18 AM Yuya Nishihara <yuya at tcha.org> wrote:

> # 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)
>
> _______________________________________________
> Mercurial-devel mailing list
> Mercurial-devel at selenic.com
> http://selenic.com/mailman/listinfo/mercurial-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://selenic.com/pipermail/mercurial-devel/attachments/20150325/642e7029/attachment.html>


More information about the Mercurial-devel mailing list