Mercurial > public > mercurial-scm > hg
comparison mercurial/cmdutil.py @ 22765:55dcc7fb731c
log: do not hide the public phase in debug mode (BC)
When 51fc43253a52 introduced phases to the `hg log --debug` output, it
also disabled outputting public phase. At the same time, it always
shows phases in the default template, `hg log --debug -T default`.
Those two should produce the same output, but they don't.
I think it makes a lot more sense to always show all phases. There's
already loss of backwards compatibility in this case when using a
newer hg on an old hg repo, since draft commits will show up in the
output of `hg log --debug`.
Finally, I just don't think that any sort of information should be
hidden with --debug. This flag should be about showing as much
information as possible.
author | Jordi Guti?rrez Hermoso <jordigh@octave.org> |
---|---|
date | Sat, 04 Oct 2014 16:28:28 -0400 |
parents | 1e2f54a149e8 |
children | 65ccc733d58e |
comparison
equal
deleted
inserted
replaced
22764:1e2f54a149e8 | 22765:55dcc7fb731c |
---|---|
914 label='log.bookmark') | 914 label='log.bookmark') |
915 for tag in self.repo.nodetags(changenode): | 915 for tag in self.repo.nodetags(changenode): |
916 # i18n: column positioning for "hg log" | 916 # i18n: column positioning for "hg log" |
917 self.ui.write(_("tag: %s\n") % tag, | 917 self.ui.write(_("tag: %s\n") % tag, |
918 label='log.tag') | 918 label='log.tag') |
919 if self.ui.debugflag and ctx.phase(): | 919 if self.ui.debugflag: |
920 # i18n: column positioning for "hg log" | 920 # i18n: column positioning for "hg log" |
921 self.ui.write(_("phase: %s\n") % _(ctx.phasestr()), | 921 self.ui.write(_("phase: %s\n") % _(ctx.phasestr()), |
922 label='log.phase') | 922 label='log.phase') |
923 for parent in parents: | 923 for parent in parents: |
924 label = 'log.parent changeset.%s' % self.repo[parent[0]].phasestr() | 924 label = 'log.parent changeset.%s' % self.repo[parent[0]].phasestr() |