# HG changeset patch # User Anton Shestakov # Date 1436637061 -28800 # Node ID 902148444889d2f7a8aec43726893c45e64ce7b8 # Parent 084957666642c346f9669624171a514b3cdf2f05 spartan: don't drop current revision in log/graph links Just to be consistent with log and shortlog links, graph links should have a revision context too. And the same goes for the graph page, where it's log and shortlog links that should have context. diff -r 084957666642 -r 902148444889 mercurial/templates/spartan/changelog.tmpl --- a/mercurial/templates/spartan/changelog.tmpl Thu Jun 25 17:37:14 2015 -0500 +++ b/mercurial/templates/spartan/changelog.tmpl Sun Jul 12 01:51:01 2015 +0800 @@ -9,7 +9,7 @@
shortlog -graph +graph tags branches files diff -r 084957666642 -r 902148444889 mercurial/templates/spartan/changeset.tmpl --- a/mercurial/templates/spartan/changeset.tmpl Thu Jun 25 17:37:14 2015 -0500 +++ b/mercurial/templates/spartan/changeset.tmpl Sun Jul 12 01:51:01 2015 +0800 @@ -6,7 +6,7 @@
changelog shortlog -graph +graph tags branches files diff -r 084957666642 -r 902148444889 mercurial/templates/spartan/fileannotate.tmpl --- a/mercurial/templates/spartan/fileannotate.tmpl Thu Jun 25 17:37:14 2015 -0500 +++ b/mercurial/templates/spartan/fileannotate.tmpl Sun Jul 12 01:51:01 2015 +0800 @@ -6,7 +6,7 @@
changelog shortlog -graph +graph tags branches changeset diff -r 084957666642 -r 902148444889 mercurial/templates/spartan/filediff.tmpl --- a/mercurial/templates/spartan/filediff.tmpl Thu Jun 25 17:37:14 2015 -0500 +++ b/mercurial/templates/spartan/filediff.tmpl Sun Jul 12 01:51:01 2015 +0800 @@ -6,7 +6,7 @@
changelog shortlog -graph +graph tags branches changeset diff -r 084957666642 -r 902148444889 mercurial/templates/spartan/filerevision.tmpl --- a/mercurial/templates/spartan/filerevision.tmpl Thu Jun 25 17:37:14 2015 -0500 +++ b/mercurial/templates/spartan/filerevision.tmpl Sun Jul 12 01:51:01 2015 +0800 @@ -6,7 +6,7 @@
changelog shortlog -graph +graph tags branches changeset diff -r 084957666642 -r 902148444889 mercurial/templates/spartan/graph.tmpl --- a/mercurial/templates/spartan/graph.tmpl Thu Jun 25 17:37:14 2015 -0500 +++ b/mercurial/templates/spartan/graph.tmpl Sun Jul 12 01:51:01 2015 +0800 @@ -9,8 +9,8 @@
-changelog -shortlog +changelog +shortlog tags branches files diff -r 084957666642 -r 902148444889 mercurial/templates/spartan/manifest.tmpl --- a/mercurial/templates/spartan/manifest.tmpl Thu Jun 25 17:37:14 2015 -0500 +++ b/mercurial/templates/spartan/manifest.tmpl Sun Jul 12 01:51:01 2015 +0800 @@ -6,7 +6,7 @@
changelog shortlog -graph +graph tags branches changeset diff -r 084957666642 -r 902148444889 mercurial/templates/spartan/shortlog.tmpl --- a/mercurial/templates/spartan/shortlog.tmpl Thu Jun 25 17:37:14 2015 -0500 +++ b/mercurial/templates/spartan/shortlog.tmpl Sun Jul 12 01:51:01 2015 +0800 @@ -9,7 +9,7 @@
changelog -graph +graph tags branches files diff -r 084957666642 -r 902148444889 tests/test-hgweb-descend-empties.t --- a/tests/test-hgweb-descend-empties.t Thu Jun 25 17:37:14 2015 -0500 +++ b/tests/test-hgweb-descend-empties.t Sun Jul 12 01:51:01 2015 +0800 @@ -508,7 +508,7 @@
changelog shortlog - graph + graph tags branches changeset diff -r 084957666642 -r 902148444889 tests/test-hgweb-symrev.t --- a/tests/test-hgweb-symrev.t Thu Jun 25 17:37:14 2015 -0500 +++ b/tests/test-hgweb-symrev.t Sun Jul 12 01:51:01 2015 +0800 @@ -847,6 +847,7 @@ $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT 'shortlog?style=spartan' | egrep $REVLINKS changelog + graph files zip navigate: (0) tip @@ -857,6 +858,7 @@ $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT 'log?style=spartan' | egrep $REVLINKS shortlog + graph files zip navigate: (0) tip @@ -872,6 +874,8 @@ navigate: (0) tip $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT 'graph?style=spartan' | egrep $REVLINKS + changelog + shortlog files navigate: (0) tip navigate: (0) tip @@ -885,6 +889,7 @@ $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT 'file?style=spartan' | egrep $REVLINKS changelog shortlog + graph changeset zip

Mercurial / files for changeset 9d8c40cba617: /

@@ -912,6 +917,7 @@ $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT 'rev/xyzzy?style=spartan' | egrep $REVLINKS changelog shortlog + graph files raw zip @@ -922,6 +928,7 @@ $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT 'shortlog/xyzzy?style=spartan' | egrep $REVLINKS changelog + graph files zip navigate: (0) tip @@ -931,6 +938,7 @@ $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT 'log/xyzzy?style=spartan' | egrep $REVLINKS shortlog + graph files zip navigate: (0) tip @@ -943,6 +951,8 @@ navigate: (0) tip $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT 'graph/xyzzy?style=spartan' | egrep $REVLINKS + changelog + shortlog files navigate: (0) tip navigate: (0) tip @@ -950,6 +960,7 @@ $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT 'file/xyzzy?style=spartan' | egrep $REVLINKS changelog shortlog + graph changeset zip

Mercurial / files for changeset a7c1559b7bba: /

@@ -961,6 +972,7 @@ $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT 'file/xyzzy/foo?style=spartan' | egrep $REVLINKS changelog shortlog + graph changeset files revisions @@ -990,6 +1002,7 @@ $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT 'annotate/xyzzy/foo?style=spartan' | egrep $REVLINKS changelog shortlog + graph changeset files file @@ -1004,6 +1017,7 @@ $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT 'diff/xyzzy/foo?style=spartan' | egrep $REVLINKS changelog shortlog + graph changeset file revisions