EPICS: CVS usage examples

From CLONWiki
Revision as of 19:08, 8 January 2007 by Nerses (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Checking out sources

 mkdir t1
 cd t1
 cvs co baseB/src/CAEN_HV baseB/src/bigsub (checkout CAEN_HV and bigsub sources)

Tagging a new branch

 cvs tag -b R3-14-8-2 (create tag)
 cvs up -r R3-14-8-2 (update to tagged version)
 cd baseB/src

Adding new files

Add, modify or replace your files in the corresponding directories. To find out which files should be added into cvs:

 clonpc3:bigsub> find -type f -maxdepth 1 -exec cvs st {} \; |grep Unknown
 File: a_out.h           Status: Unknown

This command finds the regular files in current directory and for each file found does cvs status and greps for Unknown status. Then we need add files into cvs

 cvs add a_out.h


Commiting changes

 cvs ci -m "This is bigsub record version for CAEN HV, it is not compatiable with standard bigsub record." 
  For example:
    cvs update -A
    touch a b c
    cvs add a b c ; cvs ci -m "added" a b c
    cvs tag -b branchtag
    cvs update -r branchtag
    touch d ; cvs add d
    rm a ; cvs rm a
    cvs ci -m "added d, removed a"
    cvs update -A
    cvs update -jbranchtag