# HG changeset patch # User Oleksandr Gavenko # Date 1450434628 -7200 # Node ID f001ff60c027fdd3c9930b845e5af58ebcdad03b # Parent 89380c21267007aacfc3d189ffdc0ea4d3f6dd92 Working with CVS branches. diff -r 89380c212670 -r f001ff60c027 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 +