changeset 9101:71d26ae62fbb

filectx: add a hex method
author Matt Mackall <mpm@selenic.com>
date Mon, 06 Jul 2009 14:52:44 -0500
parents 623f96ae3a26
children bbc78cb1bf15 eef406165507
files mercurial/context.py
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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()