Mercurial > hg
changeset 30388:8819b63732b9
filemerge: avoid shadowing a variable in a list comprehension
author | Augie Fackler <augie@google.com> |
---|---|
date | Thu, 10 Nov 2016 16:33:07 -0500 |
parents | ca74c076710e |
children | e124e83fd159 |
files | mercurial/filemerge.py |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/filemerge.py Thu Nov 10 16:32:51 2016 -0500 +++ b/mercurial/filemerge.py Thu Nov 10 16:33:07 2016 -0500 @@ -189,7 +189,8 @@ if _toolbool(ui, t, "disabled", False): disabled.add(t) names = tools.keys() - tools = sorted([(-p, t) for t, p in tools.items() if t not in disabled]) + tools = sorted([(-p, tool) for tool, p in tools.items() + if tool not in disabled]) uimerge = ui.config("ui", "merge") if uimerge: # external tools defined in uimerge won't be able to handle