store: sort filenames in place
authorBryan O'Sullivan <bryano@fb.com>
Mon, 25 Jun 2012 15:14:05 -0700
changeset 17054 125ff5654b72
parent 17053 0e4171fdb9d4
child 17055 8b7cd9a998f0
store: sort filenames in place
mercurial/store.py
--- a/mercurial/store.py	Fri Jun 29 01:51:48 2012 +0200
+++ b/mercurial/store.py	Mon Jun 25 15:14:05 2012 -0700
@@ -264,7 +264,8 @@
                         l.append((decodedir(n), n, st.st_size))
                     elif kind == stat.S_IFDIR and recurse:
                         visit.append(fp)
-        return sorted(l)
+        l.sort()
+        return l
 
     def datafiles(self):
         return self._walk('data', True)