Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 1.9.1, 1.9.2, and 1.9.3

colormap: fix edge case to reassign annotation palette

Changeset 08858dd42eb1

Parent ceca9be64ece

by Yuya Nishihara

Changes to one file · Browse files at 08858dd42eb1 Showing diff from parent ceca9be64ece Diff from another changeset...

 
138
139
140
141
 
 
142
143
144
 
138
139
140
 
141
142
143
144
145
@@ -138,7 +138,8 @@
  palette = {}     def reassignifneeded(fctx): - if mindate is None or fctx.date()[0] <= mindate or maxsaturations <= 1: + # fctx is the latest fctx which is NOT included in the palette + if mindate is None or fctx.date()[0] < mindate or maxsaturations <= 1:   return palette, cm   return _makeannotatepalette(sortedfctxs, now, maxcolors, maxhues,   maxsaturations - 1, mindate)