[PATCH 4 of 4] spartan: make different blocks of annotated lines have different colors

Anton Shestakov av6 at dwimlabs.net
Sat Jul 16 04:28:52 EDT 2016


# HG changeset patch
# User Anton Shestakov <av6 at dwimlabs.net>
# Date 1468652779 -28800
#      Sat Jul 16 15:06:19 2016 +0800
# Node ID d49cfb59ea1a539537e40b7853b17d5169df1410
# Parent  2a15c71eaea784e774a14a9291ca01fa813d0dfd
spartan: make different blocks of annotated lines have different colors

diff --git a/mercurial/templates/spartan/map b/mercurial/templates/spartan/map
--- a/mercurial/templates/spartan/map
+++ b/mercurial/templates/spartan/map
@@ -55,7 +55,7 @@ filelogentry = filelogentry.tmpl
 # all table rows have equal height.
 annotateline = '
   <tr class="parity{parity}{ifeq(node, originalnode, ' thisrev')}">
-    <td class="annotate">
+    <td class="annotate parity{blockparity}">
       {if(blockhead,
           '<a href="{url|urlescape}annotate/{node|short}/{file|urlescape}{sessionvars%urlparameter}#l{targetline}">
              {rev}


More information about the Mercurial-devel mailing list