diff mercurial/templates/monoblue/changeset.tmpl @ 25616:e0073dcec588

hgweb: link to revision by node hash in gitweb & monoblue This allows going from /rev/tip to /rev/<tip hash> with ease.
author Anton Shestakov <av6@dwimlabs.net>
date Thu, 18 Jun 2015 16:14:10 +0800
parents 0cdcbc477cac
children 119202d4d7a4
line wrap: on
line diff
--- a/mercurial/templates/monoblue/changeset.tmpl	Tue Jun 16 23:14:45 2015 -0400
+++ b/mercurial/templates/monoblue/changeset.tmpl	Thu Jun 18 16:14:10 2015 +0800
@@ -48,7 +48,7 @@
         <dd>{date|rfc822date}</dd>
         {branch%changesetbranch}
         <dt>changeset {rev}</dt>
-        <dd>{node|short}</dd>
+        <dd><a href="{url|urlescape}rev/{node|short}{sessionvars%urlparameter}">{node|short}</a></dd>
         {ifeq(count(parent), '2', parent%changesetparentdiff, parent%changesetparent)}
         {child%changesetchild}
     </dl>