Mercurial > public > mercurial-scm > hg-stable
diff mercurial/commands.py @ 22201:269688a398c4
cleanup: fix some list comprehension redefinitions of existing vars
In all the remaining cases the comprehension variable is used for the same
thing as a previous loop variable.
This will mute some pyflakes "list comprehension redefines" warnings.
author | Mads Kiilerich <madski@unity3d.com> |
---|---|
date | Fri, 15 Aug 2014 04:37:46 +0200 |
parents | fd172ba5c64b |
children | 8dda6f6ff564 |
line wrap: on
line diff
--- a/mercurial/commands.py Fri Aug 15 16:20:47 2014 +0200 +++ b/mercurial/commands.py Fri Aug 15 04:37:46 2014 +0200 @@ -5593,7 +5593,7 @@ ui.write(_('commit: %s\n') % t.strip()) # all ancestors of branch heads - all ancestors of parent = new csets - new = len(repo.changelog.findmissing([ctx.node() for ctx in parents], + new = len(repo.changelog.findmissing([pctx.node() for pctx in parents], bheads)) if new == 0: