# HG changeset patch # User Matt Mackall # Date 1315524593 18000 # Node ID ad6eb7d7dbcafac0614e884222d182187fbfec6e # Parent e4c65158b5e735a8fc62e05e3b8da7643fd700e8 hgweb: properly check for bookmarks when drawing graph diff -r e4c65158b5e7 -r ad6eb7d7dbca mercurial/templates/paper/graph.tmpl --- a/mercurial/templates/paper/graph.tmpl Thu Sep 08 19:30:25 2011 +0100 +++ b/mercurial/templates/paper/graph.tmpl Thu Sep 08 18:29:53 2011 -0500 @@ -95,7 +95,7 @@ item = item.replace(/_DATE/, cur[5]); var tagspan = ''; - if (cur[7].length || (cur[6][0] != 'default' || cur[6][1])) \{ + if (cur[7].length || cur[8].length || (cur[6][0] != 'default' || cur[6][1])) \{ tagspan = ''; if (cur[6][1]) \{ tagspan += ''; diff -r e4c65158b5e7 -r ad6eb7d7dbca tests/test-hgweb-empty.t --- a/tests/test-hgweb-empty.t Thu Sep 08 19:30:25 2011 +0100 +++ b/tests/test-hgweb-empty.t Thu Sep 08 18:29:53 2011 -0500 @@ -281,7 +281,7 @@ item = item.replace(/_DATE/, cur[5]); var tagspan = ''; - if (cur[7].length || (cur[6][0] != 'default' || cur[6][1])) { + if (cur[7].length || cur[8].length || (cur[6][0] != 'default' || cur[6][1])) { tagspan = ''; if (cur[6][1]) { tagspan += '';