Go to the first, previous, next, last section, table of contents.
http://www.loria.fr/~molli/cvs/cvs-FAQ/cvsfaq0.html
If the files are ascii:
cvs import -m"my message" module_name pippo pappo
If the module files are binary:
cvs import -kb -m"my message" module_name pippo pappo
The labels pippo
and pappo
are useless.
Create the directory. Move in the parent directory and
simply issue the command cvs add directory_name
.
Create the file. Issue the commands
cvs add filename
cvs commit filename
If you need to add a binary file (for example a `.gif' file) you have to do the following:
cvs add -kb <file>
cvs commit <file>
-kb
option
because it is a sticky options (it is sticked, i.e., attached to your
current version of <file>
in your current directory.
cvs admin -kb <file>
All files in `GDT/man_html/pictures/' are added in this way.
Do the following
cvs edit <file>
rm <file>
cvs remove <file>
cvs commit <file>
To rename /<old_dir>/<old_file>
in
/<new_dir>/<new_file>
do the following:
cp $CVSROOT/<odir>/<ofile>,v $CVSROOT/<ndir>/<nfile>,v
to create a duplicate entry in the repository.
old_file
(but allowing to retrieve it by tag or date) by doing: cd <working-dir>/<old_dir>
rm <old_file>
cvs remove <old_file>
cvs commit <old_file>
<new_file>
and remove all tags from it by doing cd <working-dir>/<new_dir>
cvs update <new_file>
cvs log <new_file>
# Save the list of Tags cvs tag -d <tag1> <new_file>
cvs tag -d <tag2> <new_file>
. . .
To make possible a remote connection to cvs you have to make the following
In the following the two operations are described:
Edit the file `/etc/services' and add
the line
cvspserver 2401/tcp
If you DO NOT not have an AFS file system, then:
cvspserver stream tcp nowait root /usr/bin/cvs cvs -b /usr/bin pserver
/etc/rc.d/init.d/inet restart
. If you HAVE an AFS distributed file system, then you have a further problem (root can not read user directories). Then you have to wrap the commands in an appropriate script by doing the following:
CVSROOT
directory.#!/usr/afsws/bin/pagsh
/usr/afsws/bin/klog -pr `cat /tmp/tmp00325` -pa `cat /tmp/tmp00326`
/usr/bin/cvs -b /usr/bin pserver
cvspserver stream tcp nowait root /root/cvswrapper
/etc/rc.d/init.d/inet restart
.
If your
cvs commit <file>
fails to do the job,
then you can force the commit by issuing the command:
cvs commit -f <file>
.
To obtain the version of the file
`GDT/incl/GDT/rm3_globals.h'
as was on, say, February 3rd 1999,
you have to retrive the whole
`GDT/incl/GDT/'
directory by executing:
cvs export -D 1999-02-02 GDT/incl/GDT
Go to the first, previous, next, last section, table of contents.