| |
Network: CVS(last edit: 2000-11-22)
Connecting:
If you are connecting via ssh: make sure you specify the CVS_RSH variable
user@host:~/workdir#export CVS_RSH=ssh
Getting the files:
user@host:~/workdir#cvs -d :ext:[user]@[host]:[cvsroot dir] checkout [dir relative to cvsroot]
The '-d' option lets you specify a custom cvsroot dir. ':ext:' tells cvs to use an external
host. The 'checkout' command makes a working dircetory of the source files of the dir you
specified.
For the lazy ones:
you can simplify this by executing the following:
user@host:~/workdir#export CVSROOT=:ext:[user]@[host]:[cvsroot dir]
user@host:~/workdir#cvs checkout [dir relative to cvsroot]
hint: put this in your shell initialization file (e.g. .bashrc .zshrc)
Finding the differences:
Goto your working dir (this is where the source files are..)
Type in:
user@host:~/workdir#cvs diff
cvs server: Diffing .
Index: [filename]
===================================================================
RCS file: [repository][filename],v
retrieving revision 1.1
diff -r1.1 [filename]
26a27,28
> #added!
> printf " $username" >>.htgroup
Index: menu
===================================================================
RCS file: [repository][filename],v
retrieving revision 1.2
diff -r1.2 [filename]
20c20,23
< printf "\nDISCLAIMER:"
Updating the changes you've made
You're done editing the source for the moment and want to put youre source into cvs.
Goto your working dir (this is where the source files are..)
Type in:
user@host:~/workdir#cvs commit [filename(s)]
If you don't specify a filename all files are checked and if necesary uploaded.
The best (and easyest) way is to commit each file individualy:
user@host:~/workdir#cvs commit [filename]
You will be placed into an editor so you can type some logging info on the files you are
about to commit:
user@host:~/workdir#cvs commit menu
CVS: ----------------------------------------------------------------------
CVS: Enter Log. Lines beginning with `CVS:' are removed automatically
CVS:
CVS: Committing in .
CVS:
CVS: Modified Files:
CVS: menu
CVS: ----------------------------------------------------------------------
Just type some log info here
This is just 'vi' so when you're done hit ESC, :wq and ENTER. Now you're file is updated
in cvs.
Adding a new directory to the tree
Let say you want to dir ~/work/mysource to go into the CVS tree as /john/work/mysource.
You can do this by typing:
user@host:~/workdir#cd ~/work/mysource
user@host:~/work/mysource#cvs import john/work/mysource company initial
The 'company' is the vendor, 'initial' is a release tag.
After this you'll have to remove the mysource dir and get the source from cvs with
user@host:~/work#cvs checkout john/work/mysources
Click here to go back to the index.
|