[PATCH 05 of 18] phases: add a phase method to context

pierre-yves.david at logilab.fr pierre-yves.david at logilab.fr
Mon Oct 10 07:28:01 CDT 2011


# HG changeset patch
# User Pierre-Yves David <pierre-yves.david at ens-lyon.org>
# Date 1318163028 -7200
# Node ID 5bcc03cf015f47f835e437100d56d9650a33e2c3
# Parent  b26e7c7e3ebbcab5f6a7f4bf376b66056b0bb506
phases: add a phase method to context

diff --git a/mercurial/context.py b/mercurial/context.py
--- a/mercurial/context.py
+++ b/mercurial/context.py
@@ -115,10 +115,12 @@ class changectx(object):
         return self._changeset[5]
     def tags(self):
         return self._repo.nodetags(self._node)
     def bookmarks(self):
         return self._repo.nodebookmarks(self._node)
+    def phase(self):
+        return self._repo.nodephase(self._node)
     def hidden(self):
         return self._rev in self._repo.changelog.hiddenrevs
 
     def parents(self):
         """return contexts for each parent changeset"""


More information about the Mercurial-devel mailing list