Wednesday, December 10, 2008

CVS

Check Out Tagged Version of Project-Name
cvs co -r tag_name Project-Name

Creating the Branch

http://kb.wisc.edu/middleware/page.php?id=4087#creating
  1. Tag the root of the branch, so you can get back.
    sandbox$ cvs tag NEW_FEATURE_ADD_ROOT
  2. Actually create the branch, at the point that you just marked.
    sandbox$ cvs tag -b -r NEW_FEATURE_ADD_ROOT \
    NEW_FEATURE_ADD_BRANCH
  3. Actually move your working directory in to the branch.
    sandbox$ cvs up -r NEW_FEATURE_ADD_BRANCH

You are now in the new branch, do what you want.

cvs rtag -r branch_name new_tag_name

Correcting Accidental Checking

http://kb.wisc.edu/middleware/page.php?id=4087#creating


View CVS status
cvs st -v

Tag a Branch

cvs rtag -r branch_name new_tag_name module_name

Creating a Tag

    1. In order to name the current end of the main trunk of a module, use the command
    2. cvs rtag Tagname my_module
    3. In order to name the current end of a branch of a module, use the command
    4. cvs rtag -r Branchname Tagname my_module
    5. Otherwise, to name the code that your working directory was checked out from (without the changes you made to your working directory since the last commit), use the command
    6. cvs tag Tagname

Create branch using rtag

  1. To create a branch from the main trunk of my_module at the revision that was last committed, use the command
  2. cvs rtag -b Branchname my_module
  3. To create a branch from a tagged revision of my_module, use the command
  4. cvs rtag -r Tagname -b Branchname my_module
  5. Both commands immediately create a branch in the repository without requiring a cvs commit to enact. You do not need to be in a checked-out working directory to do this.
More details : http://www.bioinf.uni-freiburg.de/~mmann/HowTo/cvs_branches.html

1 comment:

Unknown said...

View CVS status
---------------
cvs st -v