diff mercurial/store.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 e710f0f592b2
children 344751cd8cb8
line wrap: on
line diff
--- a/mercurial/store.py	Sun Apr 26 16:50:44 2009 -0500
+++ b/mercurial/store.py	Sun Apr 26 16:50:44 2009 -0500
@@ -172,7 +172,7 @@
                         l.append((n, n, st.st_size))
                     elif kind == stat.S_IFDIR and recurse:
                         visit.append(fp)
-        return util.sort(l)
+        return sorted(l)
 
     def datafiles(self):
         return self._walk('data', True)