Mercurial > public > mercurial-scm > hg-stable
diff mercurial/filemerge.py @ 6762:f67d1468ac50
util: add sort helper
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Fri, 27 Jun 2008 18:28:45 -0500 |
parents | d3691d31fc9c |
children | 4c92d8971809 |
line wrap: on
line diff
--- a/mercurial/filemerge.py Fri Jun 27 14:53:30 2008 -0500 +++ b/mercurial/filemerge.py Fri Jun 27 18:28:45 2008 -0500 @@ -63,8 +63,7 @@ if t not in tools: tools[t] = int(_toolstr(ui, t, "priority", "0")) names = tools.keys() - tools = [(-p,t) for t,p in tools.items()] - tools.sort() + tools = util.sort([(-p,t) for t,p in tools.items()]) uimerge = ui.config("ui", "merge") if uimerge: if uimerge not in names: