Source

thg-qt-mq / colormap-halflife.diff

Full commit
# HG changeset patch
# Parent 70ad3685c6a94afbdb435f83d6cbd5831a1dc9da
diff --git a/tortoisehg/util/colormap.py b/tortoisehg/util/colormap.py
--- a/tortoisehg/util/colormap.py
+++ b/tortoisehg/util/colormap.py
@@ -94,7 +94,7 @@ class AnnotateColorSaturation(AnnotateCo
 
     def get_color(self, ctx, now):
         days = self._days(ctx, now)
-        saturation = 255/((days/50) + 1)
+        saturation = 255 / 2 ** (days / 50.)
         #saturation = 255/((days/self._scale) + 1)
         hue = self.hue(self.committer_angle(ctx.user()))
         color = tuple([self.saturate_v(saturation, h) for h in hue])