# HG changeset patch # User Anton Shestakov # Date 1434615250 -28800 # Node ID e0073dcec5883b45b7b4b8f2b5ea71bcac1852ac # Parent dc707fb35550a455c5c6cc4ac263adc0b5e7b697 hgweb: link to revision by node hash in gitweb & monoblue This allows going from /rev/tip to /rev/ with ease. diff -r dc707fb35550 -r e0073dcec588 mercurial/templates/gitweb/changeset.tmpl --- a/mercurial/templates/gitweb/changeset.tmpl Tue Jun 16 23:14:45 2015 -0400 +++ b/mercurial/templates/gitweb/changeset.tmpl Thu Jun 18 16:14:10 2015 +0800 @@ -35,7 +35,10 @@ author{author|obfuscate} {date|rfc822date} {branch%changesetbranch} -changeset {rev}{node|short} + + changeset {rev} + {node|short} + {ifeq(count(parent), '2', parent%changesetparentdiff, parent%changesetparent)} {child%changesetchild} diff -r dc707fb35550 -r e0073dcec588 mercurial/templates/monoblue/changeset.tmpl --- 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 @@
{date|rfc822date}
{branch%changesetbranch}
changeset {rev}
-
{node|short}
+
{node|short}
{ifeq(count(parent), '2', parent%changesetparentdiff, parent%changesetparent)} {child%changesetchild} diff -r dc707fb35550 -r e0073dcec588 tests/test-hgweb-symrev.t --- a/tests/test-hgweb-symrev.t Tue Jun 16 23:14:45 2015 -0400 +++ b/tests/test-hgweb-symrev.t Thu Jun 18 16:14:10 2015 +0800 @@ -474,6 +474,7 @@ files | raw | zip | second xyzzy + a7c1559b7bba 43c799df6e75 9d8c40cba617 foo @@ -691,6 +692,7 @@
  • raw
  • zip
  • second xyzzy

    +
    a7c1559b7bba
    43c799df6e75
    9d8c40cba617
    foo