[PATCH 07 of 35 V2] context: move hex from changectx

Sean Farley sean.michael.farley at gmail.com
Wed Aug 7 18:51:21 CDT 2013


# HG changeset patch
# User Sean Farley <sean.michael.farley at gmail.com>
# Date 1375480141 18000
#      Fri Aug 02 16:49:01 2013 -0500
# Node ID 0af430229146f6bb0107f2a11be636270be89e70
# Parent  54235afc4c8e3435030310429d4ba38fcc7c66f1
context: move hex from changectx

diff --git a/mercurial/context.py b/mercurial/context.py
--- a/mercurial/context.py
+++ b/mercurial/context.py
@@ -40,10 +40,12 @@
 
     def rev(self):
         return self._rev
     def node(self):
         return self._node
+    def hex(self):
+        return hex(self._node)
 
 class changectx(context):
     """A changecontext object makes access to data related to a particular
     changeset convenient. It represents a read-only context already presnt in
     the repo."""
@@ -210,12 +212,10 @@
     def manifest(self):
         return self._manifest
     def manifestnode(self):
         return self._changeset[0]
 
-    def hex(self):
-        return hex(self._node)
     def user(self):
         return self._changeset[1]
     def date(self):
         return self._changeset[2]
     def files(self):


More information about the Mercurial-devel mailing list