Showing posts with label cvs. Show all posts
Showing posts with label cvs. Show all posts

CVS tagging

CVS commands related to tagging

# Tag the head
cvs rtag TAP_1_0_0_5 dev/tap

# tag at a given date/time
cvs rtag -D "2012-02-02 12:09" TAP_1_0_0_4 dev/tap


Warning: if the date for a change was taken from ChangeLog (output from cvs2cl.pl), then the timestamps reported may be different from the server time. If you are not careful, the tag could be applied to the wrong (previous) version of a file.

CVS Change Log

Here is the simplest way I have found to create log of changes from a CVS repository:

$ cd my_repo
$ cvs2cl.pl
[... lots of sysout...]
$ 

This creates a file named "ChangeLog" in the working directory. Not surprisingly, the file contains a list of changes sorted by date and userid, along with the files affected and the CVS log messages.

The perl script that does the work can be downloaded from http://www.red-bean.com/cvs2cl/cvs2cl.pl.

List of CVS changes since a given date

This lists all code changes that are dated after 2011/08/02 00:00:00, and filters out a lot of noise from the cvs log.

cvs log -SN -d ">2011/08/02 00:00:00" path/to/repo/ | egrep -v 'locks:|access list:|keyword substitution:|branch:|total revisions:|RCS file:|head:|description:|revision .+\.'