Mercurial > public > mercurial-scm > hg-stable
diff mercurial/hook.py @ 8209:a1a5a57efe90
replace util.sort with sorted built-in
This is marginally faster for small and moderately-sized lists
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Sun, 26 Apr 2009 16:50:44 -0500 |
parents | cce63ef1045b |
children | 46293a0c7e9f |
line wrap: on
line diff
--- a/mercurial/hook.py Sun Apr 26 16:50:44 2009 -0500 +++ b/mercurial/hook.py Sun Apr 26 16:50:44 2009 -0500 @@ -104,7 +104,7 @@ os.dup2(sys.__stderr__.fileno(), sys.__stdout__.fileno()) try: - for hname, cmd in util.sort(ui.configitems('hooks')): + for hname, cmd in ui.configitems('hooks'): if hname.split('.')[0] != name or not cmd: continue if callable(cmd):