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

login
register
mail settings
Submitter Anton Shestakov
Date July 16, 2016, 8:28 a.m.
Message ID <d49cfb59ea1a539537e4.1468657732@neuro>
Download mbox | patch
Permalink /patch/15907/
State Accepted
Headers show

Comments

Anton Shestakov - July 16, 2016, 8:28 a.m.
# HG changeset patch
# User Anton Shestakov <av6@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

Patch

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}