Mercurial > public > mercurial-scm > hg-stable
diff hgext/rebase.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 | 62d7287fe6b0 |
children | 344751cd8cb8 |
line wrap: on
line diff
--- a/hgext/rebase.py Sun Apr 26 16:50:44 2009 -0500 +++ b/hgext/rebase.py Sun Apr 26 16:50:44 2009 -0500 @@ -109,7 +109,7 @@ targetancestors = list(repo.changelog.ancestors(target)) targetancestors.append(target) - for rev in util.sort(state): + for rev in sorted(state): if state[rev] == -1: storestatus(repo, originalwd, target, state, collapsef, keepf, keepbranchesf, external)