From patchwork Tue Jun 16 16:27:08 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [6, of, 6] hgweb: don't dereference symbolic revision in paper & coal style (issue2296) From: Anton Shestakov X-Patchwork-Id: 9675 Message-Id: To: mercurial-devel@selenic.com Date: Wed, 17 Jun 2015 00:27:08 +0800 # HG changeset patch # User Anton Shestakov # Date 1434442059 -28800 # Tue Jun 16 16:07:39 2015 +0800 # Node ID da513114764b3e6ffcecd0825cdb1aa1693785c9 # Parent 2a6bd3d56901c8529f37a1fe03a16aeba386202a hgweb: don't dereference symbolic revision in paper & coal style (issue2296) Let's make paper (and coal, since it borrows so much from paper) templates use symbolic revision in navigation links. The majority of links (log, filelog, annotate, etc) still use node hashes. Some pages don't have permanent links to current node hash (so it's not very easy to go from /rev/tip to /rev/), this will be addressed in future patches. diff --git a/mercurial/templates/coal/map b/mercurial/templates/coal/map --- a/mercurial/templates/coal/map +++ b/mercurial/templates/coal/map @@ -45,10 +45,10 @@ filenav = '{before%filenaventry}{after%f direntry = ' - + dir. {basename|escape}/ - + {emptydirs|escape} @@ -59,7 +59,7 @@ direntry = ' fileentry = ' - + file {basename|escape} @@ -230,7 +230,7 @@ indexarchiveentry = '{type|escape} + {type|escape} ' notfound = ../paper/notfound.tmpl error = ../paper/error.tmpl diff --git a/mercurial/templates/paper/changeset.tmpl b/mercurial/templates/paper/changeset.tmpl --- a/mercurial/templates/paper/changeset.tmpl +++ b/mercurial/templates/paper/changeset.tmpl @@ -9,16 +9,16 @@ mercurial