Mercurial > public > mercurial-scm > hg-stable
diff 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 |
line wrap: on
line diff
--- a/mercurial/cmdutil.py Fri Oct 03 22:03:31 2014 -0400 +++ b/mercurial/cmdutil.py Sat Oct 04 16:28:28 2014 -0400 @@ -916,7 +916,7 @@ # i18n: column positioning for "hg log" self.ui.write(_("tag: %s\n") % tag, label='log.tag') - if self.ui.debugflag and ctx.phase(): + if self.ui.debugflag: # i18n: column positioning for "hg log" self.ui.write(_("phase: %s\n") % _(ctx.phasestr()), label='log.phase')