Professional Documents
Culture Documents
Cvs Notes 1-41
Cvs Notes 1-41
***********************
**starting cvs:
Copy cvs software in home directory and install it in a subdirectory by using –prefix
option. [ set PATH to the bin directory of installed place .
export CVSEDITOR=vi
For adding a files and directories to cvs , cd and go to the top level directory of that
tree and run following command, and the corresponding tree structure will
automatically go to the repository . check it by cd and ls:
#pwd
When you want to work on any repository’s directory just go in a directory other
than repository itself and run following commna dthe tree structure will
automatically get copied in ur `pwd` directory :
#cvs update -p hellow.c [ with –p option it shows the current updated file’s
content on standard output ]
#vi hellow.c
**if we have an old checkout file and we want to work on that first run #cvs status
filename [ see it ] then run #cvs update filename [it will update repossitori’s
change in our file . ] then we will work on it and after completion when we will
commit it and get conflict then we will have to take steps given in previous point .
**if you want to find deiference between two versions , u can use :
#cvs update
Step3: now save the content of desired version by overwriting the local hellow.c as:
#cvs –Q diff -c
[ -j for join . it merges the change of older version 1.3 to 1.4 as patch. ]
[hellow.c is optional ]
ADDING FILES:
Copy or create a file in the current working directory [ where want to add ] and
run :
I may be wrong, but I believe there are other reasons that 'root' is not
allowed to use cvs. I believe that they involve locking and such.
“My opinion”……..so install and use cvs as a user……….
ADDING DIRECTORY:
#mkdir newdir
REMOVING FILE
To remove a file from any directory in workout , go to the directory containing that
file and then:
#rm filename
REMOVING DIRECTORY:
If you want to delete a directory newdir then first cd to that directory and delete all
files from there except system file CVS and then :
#cd ..
#cvs update -P [ actually it deletes all empty files. If u want to delete only
specific empty file then you can use its name at the end ]
RENAMING FILES:
#mv oldfilename newfilename [ does two jobs- vi of file creation and rm of file
remove ]
RENAMING DIRECTORIES:
#mkdir newdir
#cd olddir
#cvs remove file1 file2 [ file1 and file2 are contents of olddir ]
#cd ../newdir
#cd ..
#cvs commit
#cvs update -P
cvs -Q
diff -c
so that evry time we invoke cvs it will take global option automatically and
similarly parameter option with command .
thr is more information in cvs distribution than code . [ for practical extracte the tar
directory in a directory and ls ]
NEWS- this file contains the changes from one release to another in reverse
chronological order .
DEVEL-CVS-this file is cvs constitution and describes steps through which changes
are acceptable in cvs and how someone can become a member of developer
group .
HACKING-It helps someone to write atch for cvs and contains information about
coding .
/doc contaisn the caderqvist manual written in taxinfo mode so tht it can be
easily presented online and printed easily . its files work as input for info cvs .
**info-> /usr/sfw/bin/info /usr/sfw/man . if not working set PATH and MANPATH
[ for man ]. The documentation for info command is stored in the directory having
bin and man in texinfo mode . if info is not giving out \put we’ll have to add related
documents in this info directory . every souece code should have pdf in possibly
/doc directory .
After retrival the entry is deleted frm Attic directory but this whole cycle’s log is
stored by repository .
**who can use the repository : on page 72 of coriolis’s book . from once to 21 lines
onwards .
**