diff mercurial/templates/gitweb/changeset.tmpl @ 26666:e901df65b108

gitweb: don't drop current revision context on graph page In hgweb, some pages have a context of current revision; e.g. changelog and shortlog show changesets starting from this current revision. However, some gitweb templates were dropping current revision from some urls _to_ /graph page and _on_ that page. This patch fixes it.
author Anton Shestakov <av6@dwimlabs.net>
date Sat, 26 Sep 2015 18:16:49 +0800
parents 2239626369f5
children c208bc65318a
line wrap: on
line diff
--- a/mercurial/templates/gitweb/changeset.tmpl	Tue Oct 13 16:05:30 2015 -0700
+++ b/mercurial/templates/gitweb/changeset.tmpl	Sat Sep 26 18:16:49 2015 +0800
@@ -16,7 +16,7 @@
 <a href="{url|urlescape}summary{sessionvars%urlparameter}">summary</a> |
 <a href="{url|urlescape}shortlog/{symrev}{sessionvars%urlparameter}">shortlog</a> |
 <a href="{url|urlescape}log/{symrev}{sessionvars%urlparameter}">changelog</a> |
-<a href="{url|urlescape}graph{sessionvars%urlparameter}">graph</a> |
+<a href="{url|urlescape}graph/{symrev}{sessionvars%urlparameter}">graph</a> |
 <a href="{url|urlescape}tags{sessionvars%urlparameter}">tags</a> |
 <a href="{url|urlescape}bookmarks{sessionvars%urlparameter}">bookmarks</a> |
 <a href="{url|urlescape}branches{sessionvars%urlparameter}">branches</a> |