Wednesday, November 19, 2008

Last Blog Notification

All of my CVS, WINCVS and CVSNT related Blog has been moved to....

http://www.scmgalaxy.com/

Please refer and let me know with you feedback..

Tuesday, March 18, 2008

Links and Materials

http://www.gnulamp.com/cvsdiff.html

The diff Command

The diff command shows the difference between two revisions of a file. If you invoke this command without any options, CVS shows the difference between the current local working file and the earlier revision stored in the repository. The current local working file need not be saved in the repository using the commit command. For example, to show a difference between the new.txt file, which is saved in the repository yesterday, and the local working copy of the same file, the syntax is:
$ cvs diff –D yesterday new.txt new.txt

various options that you can use with the diff command to display differences according to your requirement:
Options of the diff Command
Option Description
-lines Displays lines of context.
-a Treats files as text to compare files line-by-line.
-b Ignores white spaces.
-B Ignores changes, such as insertion and deletion of blank lines.
-binary Reads and writes data in binary format.
-brief Displays information whether the files differ.
-c Uses the content output format.
-d Changes the algorithm to find minor differences.
-expand-tabs Expands tabs to tableserve the alignment of tabs in the input files.
-H Handles large files with numerous scattered changes.
-I Ignores changes in the case.
-I Ignore changes, such as insertion or deletion of lines.
-L Uses label instead of the context format and unified format headers.
-s Displays a report when the two files are same.
-u Uses the unified output format.
-w Ignores white spaces when comparing files.
-y Uses the side-by-side output format.

The checkout Command

The checkout command creates or updates the current working directory with copies of source files from the repository. You need to specify the module in the repository from which you require files. Depending on the file structure in that module, files will be copied to recursively created directories, which is similar to creating a mirror image of the module. The following syntax uses the checkout command:
$ cvs checkout new_module

By default, all files created have read-write attributes. To change the file attributes, you need to specify the –r command option. The top-level mirror directory is created in the directory where checkout command is invoked and has the same name as the mirrored module. Table B-1 lists the various options that you can use with the checkout command:

Options of the checkout Command
Option Description
-D Uses the most recent revision of a file.
-f Retrieves the most recent revision, if no matching revision is found.
-k Processes keywords according to kflag.
-l Locates a file in the current working directory.
-n Disables the checkout command.
-P Deletes empty directories from the repository.
-p Retrieves files for the standard output.
-R Checks out directory recursively.
-r Implements the revision tag.
-A Resets sticky tags, dates, and –k options.
-c Copies module files.
-d Creates a working directory.

The rtag Command

The rtag command specifies a tag name to a module in the repository. This command does not require a local working copy. This command should be used carefully because it directly affects the repository. A tag name created using rtag can be deleted using the –d command option. For example, to create a new tag, New_tag, in the repository module, my_project, for the revision dated no later than yesterday, the syntax is:
$ cvs rtag –D yesterday New_tag my_project

The rdiff Command

The rdiff command shows the difference between two releases of the same project in the repository. For example, use the following syntax to display the difference between two releases, release1 and release2:
$ cvs rdiff -R release1 release2
various options that you can use with the rdiff command:
Option Description
-f Retrieves the most recent version.
-c Uses the context diff format.
-s Generates a summary change report.
-t Displays a diff of the top two revisions.
-u Uses the unidiff format.

The edit Command

The edit command enables you to edit or modify a file. When you edit a file, the file is temporarily added to the list of file watchers. You can release the file from the list of file watchers using the unedit command. For example, to edit a watched file in the current local working directory, use the following syntax:
$ cvs edit –l watched_file.txt

To release a watched file from the list of file watchers, use the following syntax:
$ cvs unedit –l watched_file.txt