# HG changeset patch # User Sean Farley # Date 2013-08-12 03:53:23 # Node ID 04fbc85f870a102862b1106296e4589c2c1cee3d # Parent 90994b176bc1887e7069e6e5d48458aa1252da74 basefilectx: move hex from filectx We also change the function call to use the hex method of its change context so that it mirrors other such method calls. diff --git a/mercurial/context.py b/mercurial/context.py --- a/mercurial/context.py +++ b/mercurial/context.py @@ -491,6 +491,8 @@ class basefilectx(object): return self._filelog.linkrev(self._filerev) def node(self): return self._changectx.node() + def hex(self): + return self._changectx.hex() class filectx(basefilectx): """A filecontext object makes access to data related to a particular @@ -547,8 +549,6 @@ class filectx(basefilectx): return filectx(self._repo, self._path, fileid=fileid, filelog=self._filelog) - def hex(self): - return hex(self.node()) def user(self): return self._changectx.user() def date(self):