changeset 19556:732ee7fff35a

basectx: move parents from changectx
author Sean Farley <sean.michael.farley@gmail.com>
date Mon, 05 Aug 2013 18:19:38 -0500
parents 613b70fedc4e
children 9f57ebf0cce8
files mercurial/context.py
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/context.py	Mon Aug 05 18:19:19 2013 -0500
+++ b/mercurial/context.py	Mon Aug 05 18:19:38 2013 -0500
@@ -80,6 +80,10 @@
     def mutable(self):
         return self.phase() > phases.public
 
+    def parents(self):
+        """return contexts for each parent changeset"""
+        return self._parents
+
 class changectx(basectx):
     """A changecontext object makes access to data related to a particular
     changeset convenient. It represents a read-only context already presnt in
@@ -241,10 +245,6 @@
     def hidden(self):
         return self._rev in repoview.filterrevs(self._repo, 'visible')
 
-    def parents(self):
-        """return contexts for each parent changeset"""
-        return self._parents
-
     def p1(self):
         return self._parents[0]