Working with CVS branches.
authorOleksandr Gavenko <gavenkoa@gmail.com>
Fri, 18 Dec 2015 12:30:28 +0200
changeset 1829 f001ff60c027
parent 1828 89380c212670
child 1830 b4a5c76521df
Working with CVS branches.
cvs.rst
--- a/cvs.rst	Wed Dec 16 14:38:54 2015 +0200
+++ b/cvs.rst	Fri Dec 18 12:30:28 2015 +0200
@@ -94,17 +94,27 @@
   $ rm $file            # remove it from local sources
   $ cvs update $file    # get a new copy from the repository
 
-List of CVS branches.
-=====================
+Working with CVS branches.
+==========================
 
 There are no such command but this command allow extract such info::
 
   $ cd $CVS_PROJ
   $ cvs rlog -l -h -b $(cat CVS/Repository)
 
-Update to HEAD.
-===============
-::
+Switch branch::
+
+  $ cvs up -r $BRANCH
+
+Update to HEAD::
 
   $ cvs up -A
 
+Replace head::
+
+  $ cvs up -j$HEAD -j $NEWBRANCH
+
+Replace branch::
+
+  $ cvs up -j$OLD -j $NEW
+