cvs commit commits your local copy of a file to the repository.
Edit a file
emacs file.cIf it is a new file you need to add it before using commit
cvs add file.cCommit it to the CVS repository
cvs commit file.cThen edit another file ...
cvs update file.c(or
cvs update
to update everything).
cd ~egse mkdir CVS cvs -d ~egse/CVS initmake sure everybody will run
setenv CVSROOT /home/egse/CVS
(You rarely need to do this) cd mkdir tmp cd tmp cvs import -m "Created em" icu icu start cd .. rmdir tmp chmod 775 ~egse/CVS/icu cd ~ cvs checkout icu cd icu
emacs newfile.c cvs add newfile.c
emacs newfile.c cvs commit newfile.c
cvs diff sc_driver.cwill compare the revision of sc_driver.c in the current directory with the revision you checked out of the repository. This will not tell you if someone else has
commit
ted the file (use
cvs status fileto check this). The lines marked ">" are lines in the locally modified revision and those marked "<" are lines in the last repository revision.
To ignore changes in whitespace, use
cvs diff -b
and to ignore changes in case, use
cvs diff -i
cvs release modulewhen finished editing for a while
cvs remove file
It is OK to delete your source tree (except Tartan Ada won't like its lib and proj directories disappearing).
If everything is up to date (i.e. you have used cvs commit
on everything, you can do
cd ~ rm -rf egseand get it all back with
cvs checkout egseBut is is much safer to do
cd .. cvs release -d icuwhich will remind you if you haven't finished
commit
ting
everything yet. The -d
option deleted the source code leaving
only the code in the repository. cvs checkout
must then be used to
get another working copy.
cd ~/icu cvs tag sent_this_to_america .So that then, later, when you want to go back to this state,
cvs checkout -r sent_this_to_america icu
cvs rtag -b -r sent_this_to_america sent_this_to_america_patches icu cvs checkout -r sent_this_to_america_patches icuand start editing.
To remove sticky tags do
cvs update -A
To retrieve an old version of a file without setting a sticky tag,
cvs update -p -r ver file > temp_filefor example,
cvs update -p -r 1.1 file1.adb > file1_tmp.adb
cvs -n ...for example
cvs -n update file.cWill pretend to update file.c and give all the messages but will not actually update it.
cvs rtag -b -r release10 acquirefix dpu/util cvs rtag -b -r release10 acquirefix white cvs rtag -b -r release10 acquirefix blue cvs rtag -b -r release10 acquirefix red cvs rtag -b -r release10 acquirefix include cvs checkout -r refimagefix dpu/util cd dpu mkdir development cd development/ cvs checkout -r refimagefix white cvs checkout -r refimagefix red cvs checkout -r refimagefix blue cvs checkout -r refimagefix include cd white/ cd src cd cc patch < patch cvs commit cwhite.c cd .. cd .. cd .. cvs tag release10b red cvs tag release10b white cvs tag release10b blue cvs tag release10b include cd .. cd .. cvs tag release10b dpu/development/ cd dpu/ cvs tag release10b development cd development/ cd .. cvs tag release10b util