merge.mergestate: add a way to get the merge driver state
authorSiddharth Agarwal <sid0@fb.com>
Thu, 15 Oct 2015 00:57:56 -0700
changeset 26766 a83110faece1
parent 26765 45976219eb80
child 26767 69a121c378ef
merge.mergestate: add a way to get the merge driver state This will be useful to check what the status of the merge driver is.
mercurial/merge.py
--- a/mercurial/merge.py	Thu Oct 15 00:49:07 2015 -0700
+++ b/mercurial/merge.py	Thu Oct 15 00:57:56 2015 -0700
@@ -329,6 +329,9 @@
         self._state[dfile][0] = state
         self._dirty = True
 
+    def mdstate(self):
+        return self._mdstate
+
     def unresolved(self):
         """Obtain the paths of unresolved files."""