Optimization in the 'belongs to' metric
commit4f49d7caaed06f96f4e8b576c8aa5b2fddb70c86
authorSverre Rabbelier <sverre@rabbelier.nl>
Sun, 6 Jul 2008 22:43:41 +0000 (7 00:43 +0200)
committerSverre Rabbelier <sverre@rabbelier.nl>
Sun, 6 Jul 2008 22:43:41 +0000 (7 00:43 +0200)
tree06bdb15803bdbd298c4439cda95a9a185dd8c7f4
parent51c592a3304d845475fbcb63aa0d8c8645a3e556
Optimization in the 'belongs to' metric

Retreive the parentage information in 'one big go' instead
of on a 'per branch' basis. This is now possible since we
do not need the individual rev-lists anymore since the
previous commit. This has two advantages, the rev-lists
mechanism cuts down the amount of parentage-information we
need to parse by not listing doubles (for example, we
always get the parentage information of the first commit
multiple times when there are multiple branches that branch
off from it). A second advantage is that this saves us a
lot of calls to the git binary (1 call, instead of one for
each branch).
src/git_stats/branch.py