Patchwork [6,of,7,V2,apply,on,date,fix] obsmarkers: add a `parentnodes` method to retrieve parents information

login
register
mail settings
Submitter Pierre-Yves David
Date Aug. 19, 2014, 5:53 p.m.
Message ID <e1a19ce167b43b86b9ae.1408470822@marginatus.alto.octopoid.net>
Download mbox | patch
Permalink /patch/5514/
State Superseded
Headers show

Comments

Pierre-Yves David - Aug. 19, 2014, 5:53 p.m.
# HG changeset patch
# User Pierre-Yves David <pierre-yves.david@fb.com>
# Date 1408407267 25200
#      Mon Aug 18 17:14:27 2014 -0700
# Node ID e1a19ce167b43b86b9ae5c5c25294c24a7334d2b
# Parent  d05b490f62be236c93859892715733a117c231ca
obsmarkers: add a `parentnodes` method to retrieve parents information

Patch

diff --git a/mercurial/obsolete.py b/mercurial/obsolete.py
--- a/mercurial/obsolete.py
+++ b/mercurial/obsolete.py
@@ -239,10 +239,14 @@  class marker(object):
 
     def succnodes(self):
         """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:
             self._decodedmeta = decodemeta(self._data[3])
         return self._decodedmeta