[PATCH] hgweb: show full date in rfc822 format in tooltips at shortlog page

Alexander Plavin me at aplavin.ru
Sun Jun 30 03:15:12 CDT 2013


Same thing at the repo graph page requires modifying all the template
sets (i.e. not only paper), otherwise they will not work correctly.
So, not sure if it is wanted.

2013/6/30 Alexander Plavin <me at aplavin.ru>:
> # HG changeset patch
> # User Alexander Plavin <me at aplavin.ru>
> # Date 1372578501 -14400
> #      Sun Jun 30 11:48:21 2013 +0400
> # Node ID 069c6b10ca2e8ff411b602ef339e9e37d88099b4
> # Parent  84dc9669bd7173124d307f9fcac0632380de9ba6
> hgweb: show full date in rfc822 format in tooltips at shortlog page
>
> The absolute date is not shown anywhere else in the log view,
> only the relative one.
>
> diff -r 84dc9669bd71 -r 069c6b10ca2e mercurial/templates/static/mercurial.js
> --- a/mercurial/templates/static/mercurial.js   Mon Jun 24 14:02:01 2013 -0400
> +++ b/mercurial/templates/static/mercurial.js   Sun Jun 30 11:48:21 2013 +0400
> @@ -258,6 +258,7 @@
>                                         // We want both: date + (age)
>                                         node.textContent += ' ('+agevalue+')';
>                                 } else {
> +                                       node.title = node.textContent;
>                                         node.textContent = agevalue;
>                                 }
>                         }


More information about the Mercurial-devel mailing list