Mercurial > public > mercurial-scm > hg-stable
diff mercurial/hgweb/webutil.py @ 24564:5ec4bda3097a
hgweb: add phase to {changeset} template
It's pretty surprising phase wasn't part of this template call already.
We now expose {phase} to the {changeset} template and we expose this
data to JSON.
This brings JSON output in line with the output from `hg log -Tjson`.
The lone exception is hweb doesn't print the numeric rev. As has been
stated previously, I don't believe hgweb should be exposing these
unstable identifiers. (We can add them later if we really want them.)
There is still work to bring hgweb in parity with --verbose and
--debug output from the CLI.
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Tue, 31 Mar 2015 22:29:12 -0700 |
parents | 567ae5365754 |
children | bbf1ae6b6a44 |
line wrap: on
line diff
--- a/mercurial/hgweb/webutil.py Tue Mar 31 22:35:12 2015 -0700 +++ b/mercurial/hgweb/webutil.py Tue Mar 31 22:29:12 2015 -0700 @@ -324,6 +324,7 @@ desc=ctx.description(), extra=ctx.extra(), date=ctx.date(), + phase=ctx.phasestr(), files=files, diffsummary=lambda **x: diffsummary(diffstatsgen), diffstat=diffstats,