--- 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]