mammoth.ctie.monash.edu.au to access the archive. The CVS archive is located at mammoth.
CVS_RSH is set to ssh :tcsh, add the following line to your .cshrc: setenv CVS_RSH ssh bash, add the following line to your .bashrc: export CVS_RSH=ssh
supreme and your username on the CVS server mammoth is yasar. Procedure is as follows:
supreme.
project_foo and cd to this directory.
cvs -d yasar@mammoth.ctie.monash.edu.au:/home/cvs/project_foo co module_bar. This command will create the directory module_bar in the current working directory. From now on you do not have to issue this command since it is remembered inside the module_bar (if the above doesn't work read about CVS_RSH). environment variable.
module_bar.
module_bar:
supreme .
cd module_bar.
cvs update -d command will fetch the latest versions of all the files from the repository into this directory.
cvs update to detect whether someone else worked on the files simultaneously while you were editing the stuff.
cvs commit will upload your changes to the CVS repository.
wincvs
CVSIGNORE can contain many patterns of filenames that cvs will ignore.
e.g. export CVSIGNORE="*_n.cc *.o" CVS_RSH The remote shell to execute cvs commands with. ssh is the only accepted setting on mammoth for now.CVSROOT The default repository to use when "-d :ext:user@mammoth.ctie.monash.edu.au:/home/cvs/projectfoo" is not given on the command line and you are not in a working directory. Same format as the -d flag..cvsignore Each line contains a filename. These files are ignored by cvs. This file is only effective for the directory in which it resides in.
projname on mammoth granting access to [user1 user2 ... usern]. Note that the specified users must already exist on the system.
/usr/local/sbin/mkcvsproj as root
mkcvsproj projname [username ...]
AND add all the members of the ctie group to the projname group
username list should specify student accounts to have access to this repository
/root/bin/distribute....
/usr/local/sbin/rmcvsproj will delete a repository
projname
/root/bin/distribute....
cd /home/user/modname
cvs -d username@mammoth.ctie.monash.edu.au:/home/cvs/projname import -m "The initial log message for the project" modname ctie start -kb keyword later).
cd /home/user/temp
/home/user/temp/modname. This directory will contain the checkout version of the module. Inside this directory is a subdirectory called CVS. this allows you to ignore specifying the -d username@mammoth... parameter in future calls to CVS as long as this is the current working directory. If everything is looking OK you can go back to the cd /home/user/modname directory and add the binary files.
cd /home/user/modname
projname:cvs -d username@mammoth.ctie.monash.edu.au:/home/cvs/projname import -m "The initial log message for the project" modname ctie start cd ..
cvs -d username@mammoth:/home/cvs/projname co modname
cvs add textfilename1 textfilename2 ....
cvs add -kb binaryfilename1 binaryfilename2 ...
cvs -H <command> Display options for command
cvs co -d <dir> <module path> checks out the files under module path and places them into dir (you may wish to include the -P switch as well. Every large project should be checked out with -P switch. It means "prune": -P switch does not check out empty directories.)
cvs co -D <yyyymmddhhmmss> <module path> checks out the files from that date and time.
cvs add -m "LOGTEXT" filename to add filename to the repository."-m LOGTEXT" option is omitted, vi or a text editor specified by the EDITOR environment variable will be started automatically to allow a description to be added.
cvs ci -m "LOGTEXT" filename to commit the changes made to filename ."-m LOGTEXT" option is omitted, vi or a text editor specified by the EDITOR environment variable will be started automatically to allow a description to be added.
cvs diff -r <revision no.> <file>
cvs update to get other people's changes.
cvs update -d will update the working directory with new directories that may have been added by others
cvs tag -b <branch_name>
cvs co -d <new dir> -r <branch_name> <module path>
This will check out a copy at the branch point so you can start working in that branch. Any commits you do in <new dir> will increment the branch's revision. Others can continue working on the trunk. cvs -q update -r <branch_name> will modify the current directory to be part of the branch.
cvs rtag <branch_name> <module_name>. This does not require a working directory at all and will create a branch out of the latest sources in the repository.
cvs update -d -j <branch_name> This merges all changes on that branch onto the trunk. Conflicts will have to be resolved before committing the merges back onto the trunk.
cvs tag <tag_name> in the branches copy. This is required if you want to continue working from the same branch after the merge. This way you can merge the changes from this point to the trunk. You need two -j options with the previous command to effect such a merge the first -j is the <tag_name> with the second been the <branch_name>.
cvs -Q update -p -r <revision no> <file> > <new filename>
cvs update -A <file>
Revert back to the latest (HEAD revision) after applying the above command(removes the sticky tag).
cvs rdiff -u -D 20011030 -D 20020130 <module> > diffoutput.txt
Creates the patch file diffoutput.txt. This can be applied with patch -p1 < diffoutput.txt in the directory with version as at 20011030 and will bring it up to the version on this date 20020130.
cvs diff -r <Tag> Execute this from the working directory to create a patch against a branch or tag name. Useful to compare current changes from a previous reference point in development.
cvs tag <tagname>
| Attachment: | Action: | Size: | Date: | Who: | Comment: |
|---|---|---|---|---|---|
| | action | 5040 | 29 Jul 2003 - 08:14 | BrettPentland | Removed code that adds CTIE staff to project |
| | action | 2969 | 31 Mar 2002 - 06:55 | AhmetSekercioglu |
| Topic CVS . { Edit | Attach | Ref-By | Printable | Diffs | r1.28 | > | r1.27 | > | r1.26 | More } |
|
Revision r1.28 - 27 Jan 2006 - 04:19 GMT - AhmetSekercioglu Parents: WebHome |
Copyright © 1999-2003 by the contributing authors.
All material on this collaboration platform is the property of the contributing authors. Ideas, requests, problems regarding TWiki? Send feedback. |