--- 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