mercurial/commands.py
changeset 15631 e5fd140a4e69
parent 15623 fc8c7a5ccc4a
child 15644 43bb9c5ab963
--- a/mercurial/commands.py	Fri Dec 09 17:58:12 2011 +0100
+++ b/mercurial/commands.py	Fri Dec 09 14:14:30 2011 +0200
@@ -248,9 +248,11 @@
     if not pats:
         raise util.Abort(_('at least one filename or pattern is required'))
 
+    hexfn = ui.debugflag and hex or short
+
     opmap = [('user', ' ', lambda x: ui.shortuser(x[0].user())),
              ('number', ' ', lambda x: str(x[0].rev())),
-             ('changeset', ' ', lambda x: short(x[0].node())),
+             ('changeset', ' ', lambda x: hexfn(x[0].node())),
              ('date', ' ', getdate),
              ('file', ' ', lambda x: x[0].path()),
              ('line_number', ':', lambda x: str(x[1])),