Wednesday, May 23, 2007

Update after code is checked out.

command: cvs update -d

Details
=====
-d
Create any directories that exist in the repository if they're missing from the working directory. Normally, update acts only on directories and files that were already enrolled in your working directory. This is useful for updating directories that were created in the repository since the initial checkout; but it has an unfortunate side effect. If you deliberately avoided certain directories in the repository when you created your working directory (either through use of a module name or by listing explicitly the files and directories you wanted on the command line), then updating with ‘-d’ will create those directories, which may not be what you want.

Wednesday, April 11, 2007

Commit a file into CVS

cvs commit -m 'test file fix description' foo.java

Tuesday, February 20, 2007

Log record and Diff between two revisions of a file.

To see log history:
-------------------
* cvs log foo.java

To see different versions of diff:
--------------------------------
* cvs diff -r1.0 -r1.1 foo.java
* cvs diff -u -w -r1.21.2.6 foo.java - This is more meaningful.
* cvs diff -c -w -r1.4 foo.java