Hi all,
I used StatCVS on a repository with 12 active authors, and I found it useful
to be able to see their names alongside their usernames.
The attached patch adds a -passwd <path> option to StatCVS, which allows you
to specify the location of a Unix-style passwd file containing username->real
name mappings. Users of cvs2cl will already be familiar with a similar
feature in that utility.
So, if you have a file that contains
sjr:x:blah:blah:James Ring:blah
jmd:x:blah:blah:Jon M. Doe:blah
abc:x:blah:blah:Anne B. Collins:blah
the -passwd option with this file will map the username sjr to "James Ring".
This patch doesn't actually change the HTML or graph output of StatCVS. I'll
send that patch in a follow-up e-mail.
This should apply cleanly to the latest CVS (which I think is still the same
as 0.2.2). Here's the diffstat:
Main.java | 13 ++++++
input/Builder.java | 71 +++++++++++++++++++++++++++++++++++++
model/Author.java | 20 ++++++++++
output/ConfigurationOptions.java | 21 ++++++++++
4 files changed, 123 insertions(+), 2 deletions(-)
Please try it out!
Regards,
James
--
James Ring
|