##// 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 log = self.repo.changelog
654 log = self.repo.changelog
655 date = util.datestr(ctx.date())
655 date = util.datestr(ctx.date())
656 extra = ctx.extra()
657 branch = extra.get("branch")
658
656
659 hexfunc = self.ui.debugflag and hex or short
657 hexfunc = self.ui.debugflag and hex or short
660
658
@@ -663,6 +661,7 b' class changeset_printer(object):'
663
661
664 self.ui.write(_("changeset: %d:%s\n") % (rev, hexfunc(changenode)))
662 self.ui.write(_("changeset: %d:%s\n") % (rev, hexfunc(changenode)))
665
663
664 branch = ctx.branch()
666 # don't show the default branch name
665 # don't show the default branch name
667 if branch != 'default':
666 if branch != 'default':
668 branch = encoding.tolocal(branch)
667 branch = encoding.tolocal(branch)
@@ -691,6 +690,7 b' class changeset_printer(object):'
691 copies = ['%s (%s)' % c for c in copies]
690 copies = ['%s (%s)' % c for c in copies]
692 self.ui.write(_("copies: %s\n") % ' '.join(copies))
691 self.ui.write(_("copies: %s\n") % ' '.join(copies))
693
692
693 extra = ctx.extra()
694 if extra and self.ui.debugflag:
694 if extra and self.ui.debugflag:
695 for key, value in sorted(extra.items()):
695 for key, value in sorted(extra.items()):
696 self.ui.write(_("extra: %s=%s\n")
696 self.ui.write(_("extra: %s=%s\n")
General Comments 0
You need to be logged in to leave comments. Login now