How to find all commits(files&comments) by a person in cvs
Asked Answered
P

6

19

Looking to get a list of all the files (commit comments would be nice too) of a user in cvs.

Piotr answered 9/12, 2008 at 23:17 Comment(0)
S
12
cvs log -t -wJellyJoe
Summersault answered 9/12, 2008 at 23:28 Comment(0)
B
18

Use the following command to list all commits by a specific user:

cvs -q log -N -S -wuser dir/

-N Do not list tags.
-S Do not print name/header if no revisions selected.
-w[logins] Only list revisions checked in by specified logins.

Watchout! The order of the switches matters.

For more options and help use:

cvs -H log

(Listing of switches above taken from this command's output).

Barony answered 15/2, 2009 at 9:42 Comment(2)
I believe there is no space on the username it is 'cvs -q log -N -S -wuser dir/'Soggy
How can I check this in windows?Evangelist
S
12
cvs log -t -wJellyJoe
Summersault answered 9/12, 2008 at 23:28 Comment(0)
H
11
cvs history -u user -c -D 2009-01-20
cvs history -u user -l -c -D 2009-01-20

first line to view all changes by user since specified date second line lists only the last change, so you get each file only once, even if it has been changed several times.

Hearty answered 30/4, 2013 at 9:6 Comment(1)
Thanks, this one "cvs history -u user -l -c" worked great!Cosentino
T
5
cvs history -a -c  -D 2009-01-20

to review all commits by all users since 2009-01-20

Trochee answered 23/1, 2009 at 20:8 Comment(2)
He specifically asked about one person commitsVulgar
Thanks! Exactly what I was looking for! Even though it doesn't answer the thread question, it answers my concern ;) /thumbupTanto
S
3

Here's a quick oneliner that will give you a list of every file, followed by changes in that user and the first line of comment from that user.

cvs log | egrep -A 1 'Working file|username'

Output will look like:

Working file: bin/scriptname
head: 1.14
--
date: 2008/01/01 15:15:30;  author: username; state: Exp; lines +3 -2
First line of checkin comment will appear here.

This is a quick and dirty one liner, so YMMV.

Saponify answered 9/12, 2008 at 23:31 Comment(0)
S
1

You could also use external tools, such as ViewVC, which lets you input queries using web forms. The output is also formatted nicely in the web browser.

Stuck answered 17/12, 2008 at 14:26 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.