Archive

Archive for the ‘Uncategorized’ Category

All I needed to know about CVS

September 28, 2010 Leave a comment

I have just rediscovered some notes I made while I was carrying out a Release Management role last year, where I had to use CVS as our repository. I’m hoping that if ever I have to perform a similar role again, the SCM tool will be a more modern and capable one.

However, CVS is still quite widely used as a legacy application. Just in case my path meets CVS again, I made a note of the commands which, in practice, were the only ones I found I needed to know on a regular basis. I’m sharing them below in case anyone else finds CVS in use on a project and needs a crash course in the basics.

For basic file level operations I used the WinCVS tool most of the time, but sometimes it was easier to log onto the UNIX box and run commands from the command line.

To commit all changed files in the current directory (and any subdirectories):
cvs commit –m ‘log message

To tag a release, starting at the top of the directory structure will tag everything beneath. Can also just tag a folder or a file.
cvs tag tagname

If I accidentally tagged a newer version of a file, it is easier to delete the tag on that file and retag to the correct version.
To delete a tag on a file:
cvs tag -d tagname filename

Having deleted a tag, revert it to a previous version of the file (alternatively, rev can be a tag)
cvs tag –r rev tagname filename
e.g.
cvs tag –r 1.7 TEST-5-12 foo.txt

To correct a log message:
cvs admin -m revision:message files
e.g.
cvs admin –m 1.2:“Corrected message” fatfingers.txt

How to find out what’s changed between two tags (including HEAD):
cvs diff -N -c -r tag1 -r tag2 | grep "Index:" > changed_files.txt

Anything else I needed to do was a complete one-off, and I looked up as and when needed from an online manual.

More
A couple of links to online manuals:
Version 1.12.12.1
Version 1.11.22

Welcome

December 30, 2009 Leave a comment

Hello and Welcome.

I expect anyone reading this will be doing so long after I posted it.  This is my first attempt at maintaining a blog, and I’m starting quietly.

My motivation is partly to keep a record of things that interest me, as I’m terrible at keeping track of links to interesting articles etc, and every time a get a new PC at home or work I lose half of them.  Or I’m at home and what I’m looking for is on my work one (or vice versa).

Secondly I’m intending to use this as a chance to try things out online, when it doesn’t matter, formy future benefit.

I have no idea whether the content will be predominantly work-orientated or not, but it’s a personal blog, so I expect it will be a bit of a pot-pourri, especially at first.

Categories: Uncategorized