"Users" CVS Repository
A "Users" directory in SLAC's CVS Repository, enables you to create package(s), manage them with CMT, and easily use other packages, while also using CVS for backup, version control, portability to other machines, and sharing with others.
You can use MRvcmt to checkout existing packages from the repository, add new packages, update packages you've already checked out but which have been updated by others, and commit packages. Or, if you prefer, you can use line commands to accomplish these tasks.
To view the current contents of the Users directory, click on: web cvs.
First, some rules:
- Import into your userid, or into a recognizable group name for collaborations.
All code must be in your subdirectory(ies).
- Do not import large data files (> a few MB).
Those that you do should be for test programs.
- Do not tag at the top (user) level;
tag only your code.
- Modify other peoples code only with their assent.
"We reserve the right to remove offending files and directories." --Toby Burnett
Assumptions
It is assumed that you have installed all required software on your machine.
Import code
Import your code (presumably, but not necessarily, in the form of a package) as usual, but prepend users/<yourid> to the package name.
For example:
First, cd into the directory where your cmt and src folders for the package you want to import to CVS are located:
|
cd v0 |
then enter: |
|
cvs import users/burnett/THBanalysis THB v0 |
Caution! Be careful what you import; it is best to include a CVS "ignore"
(.cvsignore) file to avoid importing binaries.
Checkout your code
To checkout your code (so that you have it under version control) use the -o
(for cvs offset) CMT modifier:
cmt co -o users/burnett THBanalysis
Notes:
- glastpack does not support the -o modifier, but once you have it, everything else is the same, except for tagging. It is safest to do a recursive cvs tag, but rtag works, assuming that you specify the path, or cvs offset in the rtag command. Thus:
cvs rtag v6 users/burnett/THBanalysis
- MRvcmt supports the -o modifier by means of an offset field in the checkout GUI, available from the Packages-->Checkout pulldown menu:
Related Topics
Owned by: Toby Burnett
Last updated by: Chuck Patterson
11/09/2006 |
|
|