# HG changeset patch # User Sean Farley # Date 2013-08-05 23:28:40 # Node ID f256e1108053a3c99ed6d1401be1d59abc0138f1 # Parent 80ad9fe22e18b6a67968d8edef7542a2ae4ee993 basectx: move filenode from changectx 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]