Advertisement
devinteske

svn quant

Jan 15th, 2016
464
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.76 KB | None | 0 0
  1. # Topic: FreeBSD
  2. # Subject: List someone's commits and submitted-by's
  3.  
  4. time svn log | awk -v verbose=1 -v user=dteske -v sb="[[:space:]]devin|teske" 'BEGIN{ sep = sprintf("%72s", ""); gsub(/ /, "-", sep) } $0 == sep { t++; getline change; found = (change ~ "^r[[:digit:]]+ \\| " user " \\| "); if (found) { n++; if (verbose) print n, change } next } found { next } tolower($0) ~ "^[[:space:]]*submitted[[:space:]]+by[[:space:]]*:.*(" sb ")" { found++; n++; if (verbose) print n, change; next } END { print n, "/", t }'
  5.  
  6. # Please note that these are not meaningful statistics to be used for qualifying someone's contributions. Only individuals that have worked personally with a contributor are in a position to make qualitative statements. Only of pure quantitative value.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement