Mercurial > hg
changeset 30389:e124e83fd159
hbisect: avoid shadowing a variable in a list comprehension
author | Augie Fackler <augie@google.com> |
---|---|
date | Thu, 10 Nov 2016 16:33:23 -0500 |
parents | 8819b63732b9 |
children | bff77a693531 |
files | mercurial/hbisect.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/hbisect.py Thu Nov 10 16:33:07 2016 -0500 +++ b/mercurial/hbisect.py Thu Nov 10 16:33:23 2016 -0500 @@ -98,7 +98,7 @@ tot = len(candidates) unskipped = [c for c in candidates if (c not in skip) and (c != badrev)] if tot == 1 or not unskipped: - return ([changelog.node(rev) for rev in candidates], 0, good) + return ([changelog.node(c) for c in candidates], 0, good) perfect = tot // 2 # find the best node to test