# HG changeset patch # User Anton Shestakov # Date 2018-06-28 02:50:53 # Node ID 5faaa31a608268db200f2a3ad5976314c3f91802 # Parent a8872a820242d733ba70f8fb162ce84cbcaf8d37 hgweb: add archive entries to graph page Changelog page has them, so it makes sense to add them to graph page too. diff --git a/mercurial/hgweb/webcommands.py b/mercurial/hgweb/webcommands.py --- a/mercurial/hgweb/webcommands.py +++ b/mercurial/hgweb/webcommands.py @@ -1370,6 +1370,7 @@ def graph(web): jsdata=templateutil.mappinggenerator(jsdata), nodes=templateutil.mappinggenerator(nodes), node=ctx.hex(), + archives=web.archivelist('tip'), changenav=changenav) def _getdoc(e): diff --git a/mercurial/templates/gitweb/graph.tmpl b/mercurial/templates/gitweb/graph.tmpl --- a/mercurial/templates/gitweb/graph.tmpl +++ b/mercurial/templates/gitweb/graph.tmpl @@ -21,7 +21,7 @@ graph | tags | bookmarks | branches | -files | +files{archives%archiveentry} | help
less diff --git a/mercurial/templates/monoblue/graph.tmpl b/mercurial/templates/monoblue/graph.tmpl --- a/mercurial/templates/monoblue/graph.tmpl +++ b/mercurial/templates/monoblue/graph.tmpl @@ -20,6 +20,7 @@
  • bookmarks
  • branches
  • files
  • + {archives%archiveentry}
  • help
  • diff --git a/mercurial/templates/paper/graph.tmpl b/mercurial/templates/paper/graph.tmpl --- a/mercurial/templates/paper/graph.tmpl +++ b/mercurial/templates/paper/graph.tmpl @@ -25,6 +25,9 @@
  • browse
  • +