Mercurial > hg
changeset 21114:a63958bcf63a
context: remove redundant handling of match.bad return value
The 'bad' function is for reporting - it never returns anything.
author | Mads Kiilerich <madski@unity3d.com> |
---|---|
date | Thu, 03 Oct 2013 18:01:21 +0200 |
parents | 00cae8a2b04e |
children | 1b6e37f44250 |
files | mercurial/context.py |
diffstat | 1 files changed, 1 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/context.py Thu Oct 03 18:01:21 2013 +0200 +++ b/mercurial/context.py Thu Oct 03 18:01:21 2013 +0200 @@ -433,8 +433,7 @@ if fn in self._dirs: # specified pattern is a directory continue - if match.bad(fn, _('no such file in rev %s') % self) and match(fn): - yield fn + match.bad(fn, _('no such file in rev %s') % self) class basefilectx(object): """A filecontext object represents the common logic for its children: