##// END OF EJS Templates
cmdutil: minor refactoring of changeset_printer._show...
Adrian Buehlmann -
r9637:64425c5a default
parent child Browse files
Show More
@@ -653,8 +653,6 b' class changeset_printer(object):'
653 653
654 654 log = self.repo.changelog
655 655 date = util.datestr(ctx.date())
656 extra = ctx.extra()
657 branch = extra.get("branch")
658 656
659 657 hexfunc = self.ui.debugflag and hex or short
660 658
@@ -663,6 +661,7 b' class changeset_printer(object):'
663 661
664 662 self.ui.write(_("changeset: %d:%s\n") % (rev, hexfunc(changenode)))
665 663
664 branch = ctx.branch()
666 665 # don't show the default branch name
667 666 if branch != 'default':
668 667 branch = encoding.tolocal(branch)
@@ -691,6 +690,7 b' class changeset_printer(object):'
691 690 copies = ['%s (%s)' % c for c in copies]
692 691 self.ui.write(_("copies: %s\n") % ' '.join(copies))
693 692
693 extra = ctx.extra()
694 694 if extra and self.ui.debugflag:
695 695 for key, value in sorted(extra.items()):
696 696 self.ui.write(_("extra: %s=%s\n")
General Comments 0
You need to be logged in to leave comments. Login now