# HG changeset patch # User Pierre-Yves David # Date 1408407267 25200 # Node ID 2e6f03a193f9603dfa0b9cb841a2628745955f6f # Parent cf414981978a53d2d9a38bbb971bddd3c9a2ba14 obsmarkers: add a `parentnodes` method to retrieve parent information diff -r cf414981978a -r 2e6f03a193f9 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: