changeset 19591:04fbc85f870a

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.
author Sean Farley <sean.michael.farley@gmail.com>
date Sun, 11 Aug 2013 22:53:23 -0500
parents 90994b176bc1
children 1cdb3b3df4df
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:51:53 2013 -0500
+++ b/mercurial/context.py	Sun Aug 11 22:53:23 2013 -0500
@@ -491,6 +491,8 @@
         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 @@
         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):