CVS commands
The following are the various CVS commands available under the CVS submenu in the contextual menu for CVS file systems. In parentheses are the command line CVS equivalents where they differ in name.
- Refresh (
cvs status -l
) - refreshes the file status of the file or files in the selected package.- Refresh Recursively (
cvs status -l
) - recursively refreshes the file status of all files in the selected package.- Init - initializes the CVS repository. This is necessary only after creation of a new repository directory.
- Update - updates the file with changes that other developers have made to the source in the CVS repository and, if necessary, merges local changes.
- Commit - use this to incorporate your changes to the CVS repository. When you choose this command, you will be prompted by the Reason dialog box, where you can enter a brief explanation of changes you have made.
- Add - use this command to add new files (with status
Local
) to the CVS repository. After this command you have to use Commit to actually incorporate the file to the CVS repository.- Remove - use this to eliminate the file from the CVS repository. The file's node will remain in the working directory, but the file status will change to
Locally Removed
. The removal is not final until you run Commit.- Import - this command imports the whole directory structure to the CVS repository.
- Check Out - this command makes a local copy of the CVS repository in your working directory.
- Status - display a window with the file's status information.
- Log - display a window with the file's log information.
- Check Out Revision (
cvs checkout -r
revision_number) - use this command to extract any desired revision from the CVS repository into your working directory. A dialog box with available revisions is displayed.
- Update Revision (
cvs update -r
revision_number) - use this command to update your file in the working directory with any desired revision from the CVS repository. A dialog box with available revisions is displayed.
- Commit To Branch (
cvs commit -r
branch_number) - use this command to commit your file to a specific branch. A dialog box with available branches is displayed.
- Merge With Branch (
cvs update -j <branch number>
)- use this command to merge your changes with a desired branch. A dialog box with available branches is displayed.- Remove Sticky Tag (
cvs update -A
) - use this command to remove any sticky tag which is associated with your file after update of a given revision. This also updates your file with the head revision.- Add Tag (
cvs tag -b -r
RevisionNumberor
cvs rtag -b -r
RevisionNumber) - use this command to add a symbolic tag to your file. You may specify a desired revision number.
- View Branches - display a window with a revision tree. You may select any two revision numbers and compare their differences. Select the first revision to compare with the left mouse button and select the second with the right mouse button. This command parses output from the
cvs log
command- Diff - display the differences between your working file and the repository head revision (meaning the most recent version in the repository). This command parses output from the
cvs diff
command
Contents | Prev | Next | Index |