# HG changeset patch # User Bryan O'Sullivan # Date 2012-06-25 22:14:05 # Node ID 125ff5654b72009b251706d7ee93051853f066b6 # Parent 0e4171fdb9d4267aa1145b840529d75673ea553d store: sort filenames in place diff --git a/mercurial/store.py b/mercurial/store.py --- a/mercurial/store.py +++ b/mercurial/store.py @@ -264,7 +264,8 @@ class basicstore(object): 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)