Mercurial > public > mercurial-scm > hg-stable
diff mercurial/manifest.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 | d051342f1ad1 |
children | 46293a0c7e9f |
line wrap: on
line diff
--- a/mercurial/manifest.py Sun Apr 26 16:50:44 2009 -0500 +++ b/mercurial/manifest.py Sun Apr 26 16:50:44 2009 -0500 @@ -130,7 +130,7 @@ # if we're using the listcache, make sure it is valid and # parented by the same node we're diffing against if not (changed and self.listcache and p1 and self.mapcache[0] == p1): - files = util.sort(map) + files = sorted(map) checkforbidden(files) # if this is changed to support newlines in filenames,