comparison 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
comparison
equal deleted inserted replaced
22200:b27c3beaaf30 22201:269688a398c4
5591 else: 5591 else:
5592 # i18n: column positioning for "hg summary" 5592 # i18n: column positioning for "hg summary"
5593 ui.write(_('commit: %s\n') % t.strip()) 5593 ui.write(_('commit: %s\n') % t.strip())
5594 5594
5595 # all ancestors of branch heads - all ancestors of parent = new csets 5595 # all ancestors of branch heads - all ancestors of parent = new csets
5596 new = len(repo.changelog.findmissing([ctx.node() for ctx in parents], 5596 new = len(repo.changelog.findmissing([pctx.node() for pctx in parents],
5597 bheads)) 5597 bheads))
5598 5598
5599 if new == 0: 5599 if new == 0:
5600 # i18n: column positioning for "hg summary" 5600 # i18n: column positioning for "hg summary"
5601 ui.status(_('update: (current)\n')) 5601 ui.status(_('update: (current)\n'))