# HG changeset patch # User Thomas Arendsen Hein # Date 1161165332 -7200 # Node ID 6e998a4575c68af51f046c7d6f27b9747ff90664 # Parent fcf14d87e0a437d00523a03d7fcb2c85ee97d125 Show extra changeset info for log/tip/heads/... --debug diff --git a/mercurial/commands.py b/mercurial/commands.py --- 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: