EPICS: CVS usage examples

From CLONWiki
Revision as of 21:05, 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

We will create temporary directory t1 and will check out CAEN_HV and bigsub sources into it.

 mkdir t1
 cd t1
 cvs co baseB/src/CAEN_HV baseB/src/bigsub

Tagging a new branch

We will tag them with new branch name R3-14-8-2 ( .:; symbols are not allowed in the tag names).

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

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."

Check out the branch

 cvs co -r R3-14-8-2

Update the branch

 cvs up -r R3-14-8-2

Merge branch with main trunk

Use -j option to update, which stands for join.

 cvs co baseB/src/bigsub
 cvs up -jR3-14-8-2