|
Making a New Module
This is the first step in setting CVS up for your group.
- Create a directory to hold all the files from the repository
- Right-click on directory
- TortoiseCVS menu
- Make New Module...
- Add the following in the dialog window:
- Protocol: ssh (:ext:)
- Server: pisa.ucsd.edu
- Port: [leave blank]
- Repository Folder: /cvs/cse125g#
- User Name: [your login]
- OK
IMPORTANT! Just because you "Added" the files does not mean that they were added to the repository. You must follow through with committing them to the depot in order for them to be added to the server.
Adding A File / Directory
Note: a .cvs directory must be in the directory in order to add a file or directory.
(Tortoise creates this directory -- do not mess with it!)
- Right-click on file to be added
- TortoiseCVS menu
- Add...
- Check list in Add dialog window
- OK
IMPORTANT! Just because you "Added" the files does not mean that they were added to the repository. You must follow through with committing them to the depot in order for them to be added to the server.
Committing Changes
This is the step that actually puts your files into the depot on the server.
- Right-click on file to be checked in
- CVS Commit
- Fill in check-in Message box
- Check list in Changes Made box
- OK
- Examine results from check-in attempt
- OK
Syncing with the Repository
This is how you synchronize your version of the project on your machine with the latest version ("Head Revision") in the depot.
- Right-click on the directory to be synced
- CVS Update
- Examine results from sync attempt
- OK
IMPORTANT! During integration you should sync the entire depot to before committing. Once synced -- recompile and run the application to ensure that the changes committed to the depot work with your changes. It is very important that you do not check-in broken code.
Things will break! Normally this will happen because a team member forgot to check-in a source file or asset.
Renaming a File / Directory
CVS is keeping track of your files in a laissez-faire way. In other words, if you modify the file or directory name without telling it, it will just assume that the renamed-file is a different file. Therefore, if you want to change a file or directory name for a file in your project, you need to do it through CVS:
- Right-click on file to be renamed
- TortoiseCVS
- Rename...
- Enter new name
- OK
IMPORTANT! Just because you "Renamed" the file does not mean that they were renamed in the repository. You must follow through with committing them to the depot in order for them to be changed on the server.
Also, a rename is really just an add of a new file and a delete of the old file. When committing, if you commit only the file you renamed it will only add your new renamed-file, but not delete the old one. You must commit the directory in which the renamed file resides in order to truly delete the old-named file.
|