mercurial/cmdutil.py
changeset 9656 2ae3758526d8
parent 9655 6d7d3f849062
parent 9637 64425c5a9257
child 9662 f3d60543924f
child 9666 71e081b88f3e
--- a/mercurial/cmdutil.py	Tue Oct 27 17:01:32 2009 -0500
+++ b/mercurial/cmdutil.py	Tue Oct 27 17:14:19 2009 -0500
@@ -653,8 +653,6 @@
 
         log = self.repo.changelog
         date = util.datestr(ctx.date())
-        extra = ctx.extra()
-        branch = extra.get("branch")
 
         hexfunc = self.ui.debugflag and hex or short
 
@@ -663,6 +661,7 @@
 
         self.ui.write(_("changeset:   %d:%s\n") % (rev, hexfunc(changenode)))
 
+        branch = ctx.branch()
         # don't show the default branch name
         if branch != 'default':
             branch = encoding.tolocal(branch)
@@ -691,6 +690,7 @@
             copies = ['%s (%s)' % c for c in copies]
             self.ui.write(_("copies:      %s\n") % ' '.join(copies))
 
+        extra = ctx.extra()
         if extra and self.ui.debugflag:
             for key, value in sorted(extra.items()):
                 self.ui.write(_("extra:       %s=%s\n")