cvs

See also rcs

Create a branch

Get the current version of the head branch

$ cvs co MODULENAME
$ cvs update -dP

Create the branch start tag

$ cvs tag <BRANCHNAME>-START

Set the branch tag

$ cvs tag -b <BRANCHNAME>

Checkout the new branch into a new directory

$ cvs co -r <BRANCHNAME> -d <NEWDIRECTORYNAME> MODULENAME

Merge a branch back

Set an end tag of the branch (in the branch directory)

$ cvs tag <BRANCHNAME>-END

Set a tag for the head branch to have a way to roll back before the merge (in the head directory)

$ cvs tag <BRANCHNAME>-BEFORE

Update the head branch with the differences of the branch

$ cvs update -d -j <BRANCHNAME>-START -j <BRANCHNAME>

Check if any patches went wrong

$ grep -lr '<<<<' *

Commit the new head branch

$ cvs ci

Release the branch directory

$ cvs release -d <NEWDIRECTORYNAME>

Merge modifications from head into a branch

  1. Tag the beginning of the major modifications in the head branch
  2. Tag the end of the major modifications
  3. Change to the branch directory
$ cvs -d -j <STARTTAG> -j <ENDTAG>

Find the comment for a certain line of source code

Find the revision number when the line was added

$ cvs annotate <FILE>

Get the log entry

$ cvs log -r<REVISION> <FILE>

wincvs

An interesting howto about how to use WinCVS with putty can be found here and there.

 
harry/cvs.txt · Last modified: 2004/12/16 14:44 (external edit)
Locations of visitors to this page

 
Recent changes RSS feed Creative Commons License Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki