diff --git a/mercurial/context.py b/mercurial/context.py --- a/mercurial/context.py +++ b/mercurial/context.py @@ -110,6 +110,9 @@ class basectx(object): 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 @@ class changectx(basectx): troubles.append('divergent') return troubles - def filenode(self, path): - return self._fileinfo(path)[0] - def flags(self, path): try: return self._fileinfo(path)[1]