obsmarkers: add a `parentnodes` method to retrieve parent information
authorPierre-Yves David <pierre-yves.david@fb.com>
Mon, 18 Aug 2014 17:14:27 -0700
changeset 22259 2e6f03a193f9
parent 22258 cf414981978a
child 22260 2229d757802d
obsmarkers: add a `parentnodes` method to retrieve parent information
mercurial/obsolete.py
--- a/mercurial/obsolete.py	Mon Aug 18 16:28:44 2014 -0700
+++ b/mercurial/obsolete.py	Mon Aug 18 17:14:27 2014 -0700
@@ -241,6 +241,10 @@
         """List of successor changesets node identifiers"""
         return self._data[1]
 
+    def parentnodes(self):
+        """Parents of the precursors (None if not recorded)"""
+        return self._data[5]
+
     def metadata(self):
         """Decoded metadata dictionary"""
         if self._decodedmeta is None: