gitstats: Made the 'belongs to' metric recursive
commit1b7827e8716d753c4e1a213a4d07b6adf1937a90
authorSverre Rabbelier <sverre@rabbelier.nl>
Sat, 28 Jun 2008 23:40:31 +0000 (29 01:40 +0200)
committerSverre Rabbelier <sverre@rabbelier.nl>
Sat, 28 Jun 2008 23:40:31 +0000 (29 01:40 +0200)
treeb470720987a7cb313e28c97abed2056432de97d3
parent0d18b0bc569360ec2b56d02bce9231d445295d90
gitstats: Made the 'belongs to' metric recursive

Note: next time, try the recursive approach first, it works
like a charm! The big townside here is that it comes at the
cost of having to manually walk the entire tree, this is
very expensive, especially on windows this will be
impossibly slow for large repositories. (This is mainly due
to the high amount of calls to 'git log --pretty=format:%P'
which requires a fork each time. An optimization would be
to first get all the parents, and then query a hashtable.
src/git_stats/branch.py