From patchwork Thu Jun 16 13:58:19 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [4, of, 4, V6] hgweb: add links to diff and changeset views from annotate view table From: Denis Laxalde X-Patchwork-Id: 15530 Message-Id: To: mercurial-devel@mercurial-scm.org Date: Thu, 16 Jun 2016 15:58:19 +0200 # HG changeset patch # User Denis Laxalde # Date 1465894890 -7200 # Tue Jun 14 11:01:30 2016 +0200 # Node ID b4dc235a8f7e30495b91c7e07602e871a5c328b6 # Parent 385edba1c6803dc008fd71a6066a5a6afdc4255a hgweb: add links to diff and changeset views from annotate view table Links appear upon hover of the annotated revision, above the links to parents. diff --git a/mercurial/templates/gitweb/map b/mercurial/templates/gitweb/map --- a/mercurial/templates/gitweb/map +++ b/mercurial/templates/gitweb/map @@ -101,6 +101,10 @@ annotateline = ' '{author|user}@{rev}
+ diff + rev {parents%annotateparent}
', '')} diff --git a/mercurial/templates/monoblue/map b/mercurial/templates/monoblue/map --- a/mercurial/templates/monoblue/map +++ b/mercurial/templates/monoblue/map @@ -97,6 +97,10 @@ annotateline = ' '{author|user}@{rev}
+ diff + rev {parents%annotateparent}
', '')} diff --git a/mercurial/templates/paper/map b/mercurial/templates/paper/map --- a/mercurial/templates/paper/map +++ b/mercurial/templates/paper/map @@ -82,6 +82,10 @@ annotateline = ' '{author|user}@{rev}
+ diff + rev {parents%annotateparent}
', '')} diff --git a/mercurial/templates/spartan/map b/mercurial/templates/spartan/map --- a/mercurial/templates/spartan/map +++ b/mercurial/templates/spartan/map @@ -60,6 +60,10 @@ annotateline = ' '{author|user}@{rev}
+ diff + rev {parents%annotateparent}
', '')} diff --git a/tests/test-hgweb-symrev.t b/tests/test-hgweb-symrev.t --- a/tests/test-hgweb-symrev.t +++ b/tests/test-hgweb-symrev.t @@ -191,7 +191,11 @@ Set up the repo 43c799df6e75 9d8c40cba617 parent: 43c799df6e75 9d8c40cba617 parent: 9d8c40cba617 parent: 9d8c40cba617 parent: 9d8c40cba617 parent: test@0
+ diff + rev