Discussion:
CVS: find changeset for a file
sandeepk1611
2011-02-16 22:26:25 UTC
Permalink
Hi,

I am doing some research with CVS logs. I used the cvs rlog command to get
the revision information for the CVS files in a module. I was wondering
whether there is some way I can also know, for each revision, how many other
files were modified along with the current file.

For example,

Currently a sample rlog -N command output looks like this,

file1
head: 1.33
branch:
locks: strict
access list:
keyword substitution: o
total revisions: 35; selected revisions: 2
description:
----------------------------
revision 1.30
date:date1; author: author1; state: Exp; lines: +2 -2;
text1
----------------------------
revision 1.29
date: date2; author: author2; state: Exp; lines: +1 -1;
text2
....

I was wondering if for each revision, I can also get information,

Changeset: ###(some number)

If I cannot get it directly by rlog command, is there any other command by
which I can get this information?

Any help will be be very useful.

Thanks,
Sandeep
--
View this message in context: http://old.nabble.com/CVS%3A-find-changeset-for-a-file-tp30939494p30939494.html
Sent from the Gnu - Cvs - Info mailing list archive at Nabble.com.
Todd Denniston
2011-02-16 22:55:22 UTC
Permalink
Post by sandeepk1611
Hi,
I am doing some research with CVS logs. I used the cvs rlog command to get
the revision information for the CVS files in a module. I was wondering
whether there is some way I can also know, for each revision, how many other
files were modified along with the current file.
For example,
Currently a sample rlog -N command output looks like this,
I was wondering if for each revision, I can also get information,
Changeset: ###(some number)
If I cannot get it directly by rlog command, is there any other command by
which I can get this information?
Any help will be be very useful.
Thanks,
Sandeep
Easy. Same answer as I gave you last time when you wanted to search for substrings. :)

By default cvs2cl lists its information by "change set", where "change set" is defined as a bunch of
files checked in at near (and near is controllable) the same time with EXACTLY the same checkin comment.

Also if you want to use rlog instead of having a checkout, I believe you can pipe the rlog output
into cvs2cl and tell cvs2cl the log is on stdin.

cvs2cl --help #for all the options

http://www.red-bean.com/cvs2cl/

of course if you want "real" change set numbers you could always use one of those cvs2svn tools and
then pour through it's output and see if it thinks you had any change sets of more than one file. :^}

Good luck.
--
Todd Denniston
Crane Division, Naval Surface Warfare Center (NSWC Crane)
Harnessing the Power of Technology for the Warfighter
Sandeep Krishnan
2011-02-16 23:07:12 UTC
Permalink
Thanks Todd,

For the previous data that I wanted, i used some scripting and extracted
it directly from the rlog output. I will try cvs2cl as you have
suggested and see if I can get the information I need.

Thanks very much for the prompt reply.

Sandeep
Post by Todd Denniston
Easy. Same answer as I gave you last time when you wanted to search for substrings. :)
By default cvs2cl lists its information by "change set", where "change set" is defined as a bunch of
files checked in at near (and near is controllable) the same time with EXACTLY the same checkin comment.
Also if you want to use rlog instead of having a checkout, I believe you can pipe the rlog output
into cvs2cl and tell cvs2cl the log is on stdin.
cvs2cl --help #for all the options
http://www.red-bean.com/cvs2cl/
of course if you want "real" change set numbers you could always use one of those cvs2svn tools and
then pour through it's output and see if it thinks you had any change sets of more than one file. :^}
Good luck.
Loading...