store: sort the results of fncachestore.datafiles() stable
authorBryan O'Sullivan <bryano@fb.com>
Wed, 15 Aug 2012 16:30:32 -0700
branchstable
changeset 17373 4cbb1137941d
parent 17360 935831597e16
child 17374 0cec762790ed
store: sort the results of fncachestore.datafiles()
mercurial/store.py
--- a/mercurial/store.py	Wed Aug 15 12:04:50 2012 +0200
+++ b/mercurial/store.py	Wed Aug 15 16:30:32 2012 -0700
@@ -398,7 +398,7 @@
     def datafiles(self):
         rewrite = False
         existing = []
-        for f in self.fncache:
+        for f in sorted(self.fncache):
             ef = self.encode(f)
             try:
                 yield f, ef, self.getsize(ef)