Changes between Initial Version and Version 1 of StatsType


Ignore:
Timestamp:
Oct 14, 2007, 5:31:36 AM (15 years ago)
Author:
Peter Johansson
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • StatsType

    v1 v1  
     1== Type of Statistics ==
     2
     3=== Classical ===
     4
     5The classical way of how svndigest calculates statistics is based on `svn blame` (aka praise). A good way to picture it is to issue `svn blame` for each file. The typical output is:
     6{{{
     7102 author1 some text
     8105 author2 some more text
     9105 author2 even some more text
     10}}}
     11In this case author1 has zero lines in revision range [1,101] and after that one line. Author2 has zero lines in revision range [1,104] and after that two lines. For each file svndigest parses this output and generates histogram on when and by who lines were modified. Of note, is that the curves generated with the classical statistics are non-decreasing. This is simply reflect that the statistics is cumulative answering the question: ''How many of the lines, present in the current code base, did '''author''' add before revision '''rev''' ?''
     12
     13=== Blame ===
     14
     15The implementation of this statistics can be followed in ticket:24.
     16
     17The blame statistics is also based on the blame output. However, rather than only issue `svn blame` for the lastest revision, `svn blame -r N` is issued for each revision ''N''. Svndigest calculates how many lines '''author''' own at the specific revision by simply counting the second column in the blame output. This statistics answers the question: ''How many lines, in the code base at revision '''rev''', were '''author''' responsible for?''
     18
     19=== Add ===
     20
     21The implementation of this statistics can be followed in ticket:82.
     22
     23The add statistics is based on `svn diff` output. For each commit done by '''author''', svndigest parses the difference against previous revision, and calculates how many lines were added. This statistics answers the question: ''How many lines had in total been added by '''author''' at revision '''rev'''?''
     24