Merge lp:~cjwatson/lp-dev-utils/loc-delta into lp:lp-dev-utils
| Status: | Merged |
|---|---|
| Approved by: | Jelmer Vernooij on 2012-05-17 |
| Approved revision: | 109 |
| Merged at revision: | 115 |
| Proposed branch: | lp:~cjwatson/lp-dev-utils/loc-delta |
| Merge into: | lp:lp-dev-utils |
| Diff against target: |
145 lines (+141/-0) 1 file modified
loc-contributions (+141/-0) |
| To merge this branch: | bzr merge lp:~cjwatson/lp-dev-utils/loc-delta |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Jelmer Vernooij (community) | 2012-05-17 | Approve on 2012-05-17 | |
|
Review via email:
|
|||
Description of the Change
Add a loc-delta script to report on LoC contributions by a single developer.
Since the advent of https:/
The slightly odd business with spotting PQM commits is to avoid a single developer being credited or debited with all parts of a multi-level commit, such as merges into devel via db-devel. Looking at only the leaf commits didn't work too well, as that includes developers merging from devel, and what matters is the delta at the point when they actually land the change.
Here's an egotistical demonstration transcript:
<cjwatson@sarantium ~/src/canonical
-1305
<cjwatson@sarantium ~/src/canonical
Revision 15032: 4 files changed, 531 deletions(-) (delta: -531)
Revision 15035: 19 files changed, 83 insertions(+), 95 deletions(-) (delta: -12)
Revision 15036: 2 files changed, 56 insertions(+), 57 deletions(-) (delta: -1)
Revision 15040: 11 files changed, 280 insertions(+), 378 deletions(-) (delta: -98)
Revision 15068: 2 files changed, 45 insertions(+), 3 deletions(-) (delta: 42)
Revision 15072: 3 files changed, 48 insertions(+), 46 deletions(-) (delta: 2)
Revision 15073: 6 files changed, 36 insertions(+), 141 deletions(-) (delta: -105)
Revision 15080: 2 files changed, 232 deletions(-) (delta: -232)
Revision 15103: 7 files changed, 54 insertions(+), 147 deletions(-) (delta: -93)
Revision 15108: 72 files changed, 30 insertions(+), 156 deletions(-) (delta: -126)
Revision 15137: 2 files changed, 53 insertions(+), 9 deletions(-) (delta: 44)
Revision 15145: 3 files changed, 1 insertion(+), 3 deletions(-) (delta: -2)
Revision 15159: 3 files changed, 1 insertion(+), 116 deletions(-) (delta: -115)
Revision 15169: 1 file changed, 18 deletions(-) (delta: -18)
Revision 15176: 2 files changed, 3 insertions(+), 71 deletions(-) (delta: -68)
Revision 7675.1298.88: 1 file changed, 8 insertions(+) (delta: 8)
Total LoC delta for <email address hidden>: -1305
- 108. By Colin Watson on 2012-05-17
-
return value from main()
- 109. By Colin Watson on 2012-05-17
-
better name
| Colin Watson (cjwatson) wrote : | # |
Good idea! I've pushed a change that does this. Belatedly, I see you
already had as well; I guess you can pick one.
I'm not in ~canonical-
you're happy?
- 110. By Colin Watson on 2012-05-17
-
loc-contributions: Default to current user's e-mail address. Suggested by Jelmer Vernooij.
| Jelmer Vernooij (jelmer) wrote : | # |
I'll take yours, they seem to do pretty much the same thing.

Looks good and works well.
A nice addition might be to have AUTHOR default to the current users email address.