changeset 19598:e8ef893a3150

basefilectx: move phase from filectx
author Sean Farley <sean.michael.farley@gmail.com>
date Sun, 11 Aug 2013 22:54:48 -0500
parents 837bc86370f0
children 66d83efac20a
files mercurial/context.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/context.py	Sun Aug 11 22:54:39 2013 -0500
+++ b/mercurial/context.py	Sun Aug 11 22:54:48 2013 -0500
@@ -505,6 +505,8 @@
         return self._changectx.branch()
     def extra(self):
         return self._changectx.extra()
+    def phase(self):
+        return self._changectx.phase()
 
 class filectx(basefilectx):
     """A filecontext object makes access to data related to a particular
@@ -561,8 +563,6 @@
         return filectx(self._repo, self._path, fileid=fileid,
                        filelog=self._filelog)
 
-    def phase(self):
-        return self._changectx.phase()
     def phasestr(self):
         return self._changectx.phasestr()
     def manifest(self):