merge: add a files method to the mergestate class
authorBryan O'Sullivan <bryano@fb.com>
Mon, 03 Jun 2013 17:20:37 -0700
changeset 19285 feaf5749d7a4
parent 19283 8300adf9ca33
child 19286 78501209488a
merge: add a files method to the mergestate class This will be used in the upcoming shelve extension.
mercurial/merge.py
--- a/mercurial/merge.py	Sun Jun 02 18:09:06 2013 -0500
+++ b/mercurial/merge.py	Mon Jun 03 17:20:37 2013 -0700
@@ -61,6 +61,8 @@
         l.sort()
         for f in l:
             yield f
+    def files(self):
+        return self._state.keys()
     def mark(self, dfile, state):
         self._state[dfile][0] = state
         self._dirty = True