replace util.sort with sorted built-in
This is marginally faster for small and moderately-sized lists
[ original upstream message ]
--- a/hgkw/keyword.py Sun Apr 26 14:29:02 2009 +0200
+++ b/hgkw/keyword.py Sun Apr 26 16:50:44 2009 -0500
@@ -379,7 +379,7 @@
kwt = kwtools['templater']
status = _status(ui, repo, kwt, opts.get('untracked'), *pats, **opts)
modified, added, removed, deleted, unknown, ignored, clean = status
- files = util.sort(modified + added + clean + unknown)
+ files = sorted(modified + added + clean + unknown)
wctx = repo[None]
kwfiles = [f for f in files if kwt.iskwfile(f, wctx.flags)]
cwd = pats and repo.getcwd() or ''