Mercurial > public > mercurial-scm > hg-stable
diff mercurial/filemerge.py @ 10282:08a0f04b56bd
many, many trivial check-code fixups
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Mon, 25 Jan 2010 00:05:27 -0600 |
parents | 25e572394f5c |
children | 23e608f42f2c |
line wrap: on
line diff
--- a/mercurial/filemerge.py Mon Jan 25 00:05:22 2010 -0600 +++ b/mercurial/filemerge.py Mon Jan 25 00:05:27 2010 -0600 @@ -65,19 +65,19 @@ # then merge tools tools = {} - for k,v in ui.configitems("merge-tools"): + for k, v in ui.configitems("merge-tools"): t = k.split('.')[0] if t not in tools: tools[t] = int(_toolstr(ui, t, "priority", "0")) names = tools.keys() - tools = sorted([(-p,t) for t,p in tools.items()]) + tools = sorted([(-p, t) for t, p in tools.items()]) uimerge = ui.config("ui", "merge") if uimerge: if uimerge not in names: return (uimerge, uimerge) tools.insert(0, (None, uimerge)) # highest priority tools.append((None, "hgmerge")) # the old default, if found - for p,t in tools: + for p, t in tools: if check(t, None, symlink, binary): toolpath = _findtool(ui, t) return (t, '"' + toolpath + '"')