mercurial/pure/parsers.py
changeset 47512 769037a279ec
parent 47509 80dc1d452993
child 47513 10e740292dff
--- a/mercurial/pure/parsers.py	Sat Jul 03 19:52:00 2021 +0200
+++ b/mercurial/pure/parsers.py	Sun Jul 04 03:29:20 2021 +0200
@@ -64,6 +64,21 @@
         else:
             raise IndexError(idx)
 
+    @property
+    def state(self):
+        """
+        States are:
+          n  normal
+          m  needs merging
+          r  marked for removal
+          a  marked for addition
+
+        XXX This "state" is a bit obscure and mostly a direct expression of the
+        dirstatev1 format. It would make sense to ultimately deprecate it in
+        favor of the more "semantic" attributes.
+        """
+        return self._state
+
     def v1_state(self):
         """return a "state" suitable for v1 serialization"""
         return self._state