changeset 22259:2e6f03a193f9

obsmarkers: add a `parentnodes` method to retrieve parent information
author Pierre-Yves David <pierre-yves.david@fb.com>
date Mon, 18 Aug 2014 17:14:27 -0700
parents cf414981978a
children 2229d757802d
files mercurial/obsolete.py
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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: