Mercurial > public > mercurial-scm > hg
diff 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 |
line wrap: on
line diff
--- a/mercurial/verify.py Thu Nov 10 16:35:10 2016 -0500 +++ b/mercurial/verify.py Thu Nov 10 16:35:54 2016 -0500 @@ -425,7 +425,7 @@ # cross-check if f in filenodes: - fns = [(lr, n) for n, lr in filenodes[f].iteritems()] + fns = [(v, k) for k, v in filenodes[f].iteritems()] for lr, node in sorted(fns): self.err(lr, _("manifest refers to unknown revision %s") % short(node), f)