[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Blame age color

From: Simon Large <simon.tortoisesvn_at_googlemail.com>
Date: 2007-05-23 22:41:39 CEST

On 23/05/07, Stefan Küng <tortoisesvn@gmail.com> wrote:
> Hans-Emil Skogh wrote:
> > Hi again!
> >
> > I was looking at the age coloring of lines in TortoiseBlame, and I don't
> > really get it. When I look at the code it seems to me as the color would
> > suppose to fade linearly from the new color to the old color depending
> > of the age of the line. But on the nightly that I'm running there is no
> > such fading present. The top new lines (50 revisions of 3000 or so) have
> > the new color and the rest have the old color.
> >
> > What gives? Am I reading the code wrong, is Scintilla somehow narrowing
> > the number of colors down, or is it plain simple magic going on?
>
> Well, if you have revisions between 1 and 3000, but most lines are e.g.,
> above 2500, then you won't see much difference: the lowest revision gets
> the most red, the highest revision gets the most blue. Revisions in
> between the lowest and the highest get a color between red and blue,
> according to their 'distance' between the lowest and highest revision.
> You can try this on the src/changelog.txt file in the TSVN repository:
> that file has many lines, with the oldest at the bottom and the newest
> ones at the top - when you scroll through that file in TortoiseBlame,
> you will see the fading colors quite clear.

You could change the behaviour by counting the number of different
revisions and dividing the colour scale evenly between them. That
would work better in clustered logs, but might not suit everyone.

A slightly more complicated variant is to look at the gaps between
revisions and take the log of this. Big gaps would still look big, but
without compressing everything else down to nothing.

Simon

-- 
       ___
  oo  // \\      "De Chelonian Mobile"
 (_,\/ \_/ \     TortoiseSVN
   \ \_/_\_/>    The coolest Interface to (Sub)Version Control
   /_/   \_\     http://tortoisesvn.net
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: dev-help@tortoisesvn.tigris.org
Received on Wed May 23 22:42:02 2007

This is an archived mail posted to the TortoiseSVN Dev mailing list.