filectx: add a hex method
authorMatt Mackall <mpm@selenic.com>
Mon, 06 Jul 2009 14:52:44 -0500
changeset 9101 71d26ae62fbb
parent 9100 623f96ae3a26
child 9102 bbc78cb1bf15
child 9108 eef406165507
filectx: add a hex method
mercurial/context.py
--- a/mercurial/context.py	Thu Jul 09 22:06:30 2009 +0900
+++ b/mercurial/context.py	Mon Jul 06 14:52:44 2009 -0500
@@ -291,6 +291,7 @@
 
     def linkrev(self): return self._filelog.linkrev(self._filerev)
     def node(self): return self._changectx.node()
+    def hex(self): return hex(self.node())
     def user(self): return self._changectx.user()
     def date(self): return self._changectx.date()
     def files(self): return self._changectx.files()