Mercurial > public > mercurial-scm > hg
comparison mercurial/verify.py @ 30393:b667b78099eb
verify: avoid shadowing two variables with a list comprehension
The variable names are clearly worse now, but since we're really just
transposing key and value I'm not too worried about the clarity loss.
author | Augie Fackler <augie@google.com> |
---|---|
date | Thu, 10 Nov 2016 16:35:54 -0500 |
parents | 11b8b740d54a |
children | 5249b6470de9 |
comparison
equal
deleted
inserted
replaced
30392:155d7ea98085 | 30393:b667b78099eb |
---|---|
423 except Exception as inst: | 423 except Exception as inst: |
424 self.exc(lr, _("checking rename of %s") % short(n), inst, f) | 424 self.exc(lr, _("checking rename of %s") % short(n), inst, f) |
425 | 425 |
426 # cross-check | 426 # cross-check |
427 if f in filenodes: | 427 if f in filenodes: |
428 fns = [(lr, n) for n, lr in filenodes[f].iteritems()] | 428 fns = [(v, k) for k, v in filenodes[f].iteritems()] |
429 for lr, node in sorted(fns): | 429 for lr, node in sorted(fns): |
430 self.err(lr, _("manifest refers to unknown revision %s") % | 430 self.err(lr, _("manifest refers to unknown revision %s") % |
431 short(node), f) | 431 short(node), f) |
432 ui.progress(_('checking'), None) | 432 ui.progress(_('checking'), None) |
433 | 433 |