##// END OF EJS Templates
i18n: add "i18n" comment to column positioning messages of "hg log"...
FUJIWARA Katsunori -
r17891:8f85151c stable
parent child Browse files
Show More
@@ -687,55 +687,71 b' class changeset_printer(object):'
687 687 parents = [(p, hexfunc(log.node(p)))
688 688 for p in self._meaningful_parentrevs(log, rev)]
689 689
690 # i18n: column positioning for "hg log"
690 691 self.ui.write(_("changeset: %d:%s\n") % (rev, hexfunc(changenode)),
691 692 label='log.changeset changeset.%s' % ctx.phasestr())
692 693
693 694 branch = ctx.branch()
694 695 # don't show the default branch name
695 696 if branch != 'default':
697 # i18n: column positioning for "hg log"
696 698 self.ui.write(_("branch: %s\n") % branch,
697 699 label='log.branch')
698 700 for bookmark in self.repo.nodebookmarks(changenode):
701 # i18n: column positioning for "hg log"
699 702 self.ui.write(_("bookmark: %s\n") % bookmark,
700 703 label='log.bookmark')
701 704 for tag in self.repo.nodetags(changenode):
705 # i18n: column positioning for "hg log"
702 706 self.ui.write(_("tag: %s\n") % tag,
703 707 label='log.tag')
704 708 if self.ui.debugflag and ctx.phase():
709 # i18n: column positioning for "hg log"
705 710 self.ui.write(_("phase: %s\n") % _(ctx.phasestr()),
706 711 label='log.phase')
707 712 for parent in parents:
713 # i18n: column positioning for "hg log"
708 714 self.ui.write(_("parent: %d:%s\n") % parent,
709 715 label='log.parent changeset.%s' % ctx.phasestr())
710 716
711 717 if self.ui.debugflag:
712 718 mnode = ctx.manifestnode()
719 # i18n: column positioning for "hg log"
713 720 self.ui.write(_("manifest: %d:%s\n") %
714 721 (self.repo.manifest.rev(mnode), hex(mnode)),
715 722 label='ui.debug log.manifest')
723 # i18n: column positioning for "hg log"
716 724 self.ui.write(_("user: %s\n") % ctx.user(),
717 725 label='log.user')
726 # i18n: column positioning for "hg log"
718 727 self.ui.write(_("date: %s\n") % date,
719 728 label='log.date')
720 729
721 730 if self.ui.debugflag:
722 731 files = self.repo.status(log.parents(changenode)[0], changenode)[:3]
723 for key, value in zip([_("files:"), _("files+:"), _("files-:")],
724 files):
732 for key, value in zip([# i18n: column positioning for "hg log"
733 _("files:"),
734 # i18n: column positioning for "hg log"
735 _("files+:"),
736 # i18n: column positioning for "hg log"
737 _("files-:")], files):
725 738 if value:
726 739 self.ui.write("%-12s %s\n" % (key, " ".join(value)),
727 740 label='ui.debug log.files')
728 741 elif ctx.files() and self.ui.verbose:
742 # i18n: column positioning for "hg log"
729 743 self.ui.write(_("files: %s\n") % " ".join(ctx.files()),
730 744 label='ui.note log.files')
731 745 if copies and self.ui.verbose:
732 746 copies = ['%s (%s)' % c for c in copies]
747 # i18n: column positioning for "hg log"
733 748 self.ui.write(_("copies: %s\n") % ' '.join(copies),
734 749 label='ui.note log.copies')
735 750
736 751 extra = ctx.extra()
737 752 if extra and self.ui.debugflag:
738 753 for key, value in sorted(extra.items()):
754 # i18n: column positioning for "hg log"
739 755 self.ui.write(_("extra: %s=%s\n")
740 756 % (key, value.encode('string_escape')),
741 757 label='ui.debug log.extra')
@@ -749,6 +765,7 b' class changeset_printer(object):'
749 765 label='ui.note log.description')
750 766 self.ui.write("\n\n")
751 767 else:
768 # i18n: column positioning for "hg log"
752 769 self.ui.write(_("summary: %s\n") %
753 770 description.splitlines()[0],
754 771 label='log.summary')
General Comments 0
You need to be logged in to leave comments. Login now