mercurial/commands.py
changeset 3453 6e998a4575c6
parent 3448 6ca49c5fe268
child 3455 10b6fc51f672
--- a/mercurial/commands.py
+++ b/mercurial/commands.py
@@ -326,7 +326,8 @@ class changeset_printer(object):
 
         changes = log.read(changenode)
         date = util.datestr(changes[2])
-        branch = changes[5].get("branch")
+        extra = changes[5]
+        branch = extra.get("branch")
 
         hexfunc = self.ui.debugflag and hex or short
 
@@ -366,6 +367,13 @@ class changeset_printer(object):
             copies = ['%s (%s)' % c for c in copies]
             self.ui.note(_("copies:      %s\n") % ' '.join(copies))
 
+        if extra and self.ui.debugflag:
+            extraitems = extra.items()
+            extraitems.sort()
+            for key, value in extraitems:
+                self.ui.debug(_("extra:       %s=%s\n")
+                              % (key, value.encode('string_escape')))
+
         description = changes[4].strip()
         if description:
             if self.ui.verbose: