Show extra changeset info for log/tip/heads/... --debug
--- a/mercurial/commands.py Wed Oct 18 10:46:51 2006 -0500
+++ b/mercurial/commands.py Wed Oct 18 11:55:32 2006 +0200
@@ -326,7 +326,8 @@
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 @@
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: