changeset 19543:18f4951222f4

basectx: move hex from changectx
author Sean Farley <sean.michael.farley@gmail.com>
date Fri, 02 Aug 2013 16:49:01 -0500
parents bd95621a2d56
children 74924fa3236d
files mercurial/context.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/context.py	Fri Aug 02 16:48:19 2013 -0500
+++ b/mercurial/context.py	Fri Aug 02 16:49:01 2013 -0500
@@ -42,6 +42,8 @@
         return self._rev
     def node(self):
         return self._node
+    def hex(self):
+        return hex(self._node)
 
 class changectx(basectx):
     """A changecontext object makes access to data related to a particular
@@ -212,8 +214,6 @@
     def manifestnode(self):
         return self._changeset[0]
 
-    def hex(self):
-        return hex(self._node)
     def user(self):
         return self._changeset[1]
     def date(self):