Optimizations to the 'belongs to' metric
commit556fe5b883c97ad5ea8143d987d3799673e17001
authorSverre Rabbelier <sverre@rabbelier.nl>
Sun, 6 Jul 2008 21:19:43 +0000 (6 23:19 +0200)
committerSverre Rabbelier <sverre@rabbelier.nl>
Sun, 6 Jul 2008 21:30:21 +0000 (6 23:30 +0200)
tree21cd8eb4841b6b915f83b714c43713615791fa38
parent8d154d6cd4eb97ae180221e34fd4ac0c4c1df96a
Optimizations to the 'belongs to' metric

On the git.git repository there are a lot of 'strange' tree
structures, in which the same commits are often refered to
by multiple different other commits. As a result, if we do
not take measures against this, a lot of the same history
is checked multiple times. Especially in the git.git repo
this means the algorithm takes an insanely long amount of
time to finish. This commit introduces a 'memory' that
stores which commits have already been checked, and as such
should not be checked again.
To help debugging the information printed when the '-d'
flag is specified has been increased, the '-d' flag now
doubles as a '--verbose' flag. Not only debug information
is printed, but also information on which branch is
currently being examined.
src/git_stats/branch.py