diff hgext/convert/darcs.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 db3a68fd9387
children 1b60efdb8bc5
line wrap: on
line diff
--- a/hgext/convert/darcs.py	Sun Apr 26 16:50:44 2009 -0500
+++ b/hgext/convert/darcs.py	Sun Apr 26 16:50:44 2009 -0500
@@ -111,7 +111,7 @@
             else:
                 changes.append((elt.text.strip(), rev))
         self.lastrev = rev
-        return util.sort(changes), copies
+        return sorted(changes), copies
 
     def getfile(self, name, rev):
         if rev != self.lastrev: