annotate mercurial/templates/coal/header.tmpl @ 41722:37b33c34bf4f

templatekw: add a {negrev} keyword Revision numbers are getting much maligned for two reasons: they are too long in large repos and users get confused by their local-only nature. It just occurred to me that negative revision numbers avoid both of those problems. Since negative revision numbers change whenever the repo changes, it's much more obvious that they are a local-only convenience. Additionally, for the recent commits that we usually care about the most, negative revision numbers are always near zero. This commit adds a negrev templatekw to more easily expose negative revision numbers. It's not easy to reliably produce this output with existing keywords due to hidden commits while at the same time ensuring good performance.
author Jordi Gutiérrez Hermoso <jordigh@octave.org>
date Fri, 15 Feb 2019 14:43:31 -0500
parents c258f4d2bfb2
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7725
6a888d491eaf coal/paper: switch to XHTML 1.1
Benoit Allard <benoit@aeteurope.nl>
parents: 6453
diff changeset
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
6a888d491eaf coal/paper: switch to XHTML 1.1
Benoit Allard <benoit@aeteurope.nl>
parents: 6453
diff changeset
2 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US">
6436
856ae126f48c templates: add coal web theme
Matt Mackall <mpm@selenic.com>
parents:
diff changeset
3 <head>
18526
9409aeaafdc1 hgweb: urlescape all urls, HTML escape repo/tag/branch/... names
Thomas Arendsen Hein <thomas@intevation.de>
parents: 14046
diff changeset
4 <link rel="icon" href="{staticurl|urlescape}hgicon.png" type="image/png" />
6436
856ae126f48c templates: add coal web theme
Matt Mackall <mpm@selenic.com>
parents:
diff changeset
5 <meta name="robots" content="index, nofollow" />
26284
c258f4d2bfb2 coal: reuse style-paper.css and use a separate css file for visual tweaks
Anton Shestakov <av6@dwimlabs.net>
parents: 18526
diff changeset
6 <link rel="stylesheet" href="{staticurl|urlescape}style-paper.css" type="text/css" />
c258f4d2bfb2 coal: reuse style-paper.css and use a separate css file for visual tweaks
Anton Shestakov <av6@dwimlabs.net>
parents: 18526
diff changeset
7 <link rel="stylesheet" href="{staticurl|urlescape}style-extra-coal.css" type="text/css" />
18526
9409aeaafdc1 hgweb: urlescape all urls, HTML escape repo/tag/branch/... names
Thomas Arendsen Hein <thomas@intevation.de>
parents: 14046
diff changeset
8 <script type="text/javascript" src="{staticurl|urlescape}mercurial.js"></script>