quick.gif

space2.gif

space2.gif

space2.gif

space2.gif

space2.gif

space2.gif

space2.gif

   

space.gif

   

space.gif

  ../images/main/bullet_green_ball.gif CVS Quick Reference

CVS is a version control system aimed at keeping an history and managing multiple people working at the same time on a same source hierarchy. CVS keeps a single copy of the master sources, called the repository. Each person works on one's own copy of the repository, called the sandbox. CVS allows one to control the changes between its sandbox and the global repository.

   

space.gif

cvs [cvsopt] cmd [cmdopt] files...

   

space.gif

  • cvsopt . . . . options controlling the overall CVS program
  • cmd. . . . .particular action to perform on the repository
  • cmdopt. . . . . . .options controlling the specific command
  • files . . . . . . . files to act on, or specific arguments to cmd
   

space.gif

If you do not specify any files, CVS will normally recurse into subdirectories and apply the command to each CVS files encountered. Warning: the same option can mean different things depending on whether it is in the cvsopt or cvscmd group.

   

space.gif

When you first put a project under CVS, remember to remove all the generated files from the directory (e.g. all the .o files, the .exe files, the *.vcd, the *.fsdb; the .log,)

   

space.gif

Command

Description

cvs import dir < vendortag > < releasetag >

Invoked while in root directory of source to be put under cvs; dir should include path to directory if it's a subdirectory of another directory already under cvs.

cvs checkout dir

Include complete path to directory from CVSROOT, and run from directory where the top level directory already does or should appear.

cvs add file | dir

Not recursive, puts new file into repository, still requires cvs commit.

cvs rm file

After removing local copy, still requires cvs commit.

cvs release -d dir

Checks to see if local version up-to-date before deleting it.

cvs status [file*]

Current status of file

cvs log [file*]

Log of comments recorded for all revision of files

cvs diff [file*]

Whole directory's changes if no args

cvs diff -r revision [-r revision] file

Compare revisions

cvs diff -D date file

For most recent rev no later than date

cvs update -d

Merges changes from repository into your local directory.

cvs commit [file*]

Check in your changes - always do an update and recompile first to check for conflicts!

   

space.gif

   

space.gif

   

space.gif

   

space.gif

space2.gif

space2.gif

space2.gif

space2.gif

space2.gif

  

Copyright © 1998-2014

Deepak Kumar Tala - All rights reserved

Do you have any Comment? mail me at:deepak@asic-world.com