mercurial/store.py
changeset 19177 1e104aaa4c44
parent 18435 8c019d2fd7c0
child 19903 ca875b271ac3
--- a/mercurial/store.py	Wed May 01 10:38:41 2013 -0700
+++ b/mercurial/store.py	Wed May 08 14:22:00 2013 -0700
@@ -322,13 +322,16 @@
     def datafiles(self):
         return self._walk('data', True)
 
+    def topfiles(self):
+        # yield manifest before changelog
+        return reversed(self._walk('', False))
+
     def walk(self):
         '''yields (unencoded, encoded, size)'''
         # yield data files first
         for x in self.datafiles():
             yield x
-        # yield manifest before changelog
-        for x in reversed(self._walk('', False)):
+        for x in self.topfiles():
             yield x
 
     def copylist(self):