Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I get a list of commit comments from CVS since last tagged version?

I have made a bunch of changes to a number of files in a project. Every commit (usually at the file level) was accompanied by a comment of what was changed.

Is there a way to get a list from CVS of these comments on changes since the last tagged version?

Bonus if I can do this via the eclipse CVS plugin.

UPDATE: I'd love to accept an answer here, but unfortunately none of the answers are what I am looking for. Frankly I don' think it is actually possible, which is a pity really as this could be a great way to create a change list between versions (Assuming all commits are made at a sensible granularity and contain meaningful comments).

like image 760
Ron Tuffin Avatar asked Oct 31 '08 06:10

Ron Tuffin


People also ask

How do I check my CVS commit history?

Whenever you commit a file you specify a log message. To look through the log messages which have been specified for every revision which has been committed, use the cvs log command (see section log--Print out log information for files).

How to remove tag in CVS?

By default CVS doesn't allow moving and deleting branch tags, as this should not be done without understanding the issues that this raises. To override this, specify the -B option on the command line.

How do I find my CVS branch?

The BRANCH-VERSION-1.2 branch of the module is checked out in the mymodule-1.2 directory on your system. Only tags marked as branches in the second column under the Existing Tags section can be checked out as a branch.


2 Answers

I think

cvs -q log -SN -rtag1:::tag2 

or

 cvs -q log -SN -dfromdate<todate  

will do what you want. This lists all the versions and comments for all changes made between the two tags or dates, only for files that have changed. In the tag case, the three colons exclude the comments for the first tag. See cvs -H log for more information.

like image 113
ag_choc Avatar answered Nov 20 '22 16:11

ag_choc


The options for the cvs log command are available here. Specifically, to get all the commits since a specific tag (lets call it VERSION_1_0)

cvs log -rVERSION_1_0:

If your goal is to have a command that works without having to know the name of the last tag I believe you will need to write a script that grabs the log for the current branch, parses through to find the tag, then issues the log command against that tag, but I migrated everything off of CVS quite a while ago, so my memory might be a bit rusty.

like image 44
Louis Gerbarg Avatar answered Nov 20 '22 17:11

Louis Gerbarg