[Pkg-bazaar-commits] ./bzr-gtk/unstable r260: Fix hue selection to use author in gannotate

Aaron Bentley abentley at panoramicfeedback.com
Fri Apr 10 07:49:06 UTC 2009


------------------------------------------------------------
revno: 260
committer: Aaron Bentley <abentley at panoramicfeedback.com>
branch nick: gtk
timestamp: Thu 2007-08-16 10:31:02 -0400
message:
  Fix hue selection to use author in gannotate
modified:
  annotate/colormap.py
-------------- next part --------------
=== modified file 'annotate/colormap.py'
--- a/annotate/colormap.py	2006-05-19 16:56:46 +0000
+++ b/annotate/colormap.py	2007-08-16 14:31:02 +0000
@@ -95,6 +95,7 @@
     def get_color(self, revision, now):
         days = self._days(revision, now)
         saturation = 255/((days/50) + 1)
-        hue = self.hue(self.committer_angle(revision.committer))
+        hue = self.hue(self.committer_angle(revision.properties.get('author',
+                                            revision.committer)))
         color = tuple([self.saturate_v(saturation, h) for h in hue])
         return "#%x%x%x" % color



More information about the Pkg-bazaar-commits mailing list