changeset 17054:125ff5654b72

store: sort filenames in place
author Bryan O'Sullivan <bryano@fb.com>
date Mon, 25 Jun 2012 15:14:05 -0700
parents 0e4171fdb9d4
children 8b7cd9a998f0
files mercurial/store.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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)