changeset 19560:f256e1108053

basectx: move filenode from changectx
author Sean Farley <sean.michael.farley@gmail.com>
date Mon, 05 Aug 2013 18:28:40 -0500
parents 80ad9fe22e18
children 7806e63598b0
files mercurial/context.py
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/context.py	Mon Aug 05 18:28:23 2013 -0500
+++ b/mercurial/context.py	Mon Aug 05 18:28:40 2013 -0500
@@ -110,6 +110,9 @@
 
         return node, flag
 
+    def filenode(self, path):
+        return self._fileinfo(path)[0]
+
 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
@@ -331,9 +334,6 @@
             troubles.append('divergent')
         return troubles
 
-    def filenode(self, path):
-        return self._fileinfo(path)[0]
-
     def flags(self, path):
         try:
             return self._fileinfo(path)[1]