- •Overview
- •What is CVS?
- •What is CVS not?
- •A sample session
- •Getting the source
- •Committing your changes
- •Cleaning up
- •The Repository
- •Telling CVS where your repository is
- •How data is stored in the repository
- •File permissions
- •The attic
- •The CVS directory in the repository
- •CVS locks in the repository
- •How data is stored in the working directory
- •Multiple repositories
- •Creating a repository
- •Backing up a repository
- •Moving a repository
- •Remote repositories
- •Server requirements
- •Connecting with rsh
- •Direct connection with password authentication
- •Setting up the server for password authentication
- •Using the client with password authentication
- •Security considerations with password authentication
- •Direct connection with GSSAPI
- •Direct connection with Kerberos
- •Connecting with fork
- •Distributing load across several CVS servers
- •Read-only repository access
- •Temporary directories for the server
- •Starting a project with CVS
- •Creating Files From Other Version Control Systems
- •Creating a directory tree from scratch
- •Revisions
- •Revision numbers
- •Versions, revisions and releases
- •Assigning revisions
- •Specifying what to tag from the working directory
- •Specifying what to tag by date or revision
- •Deleting, moving, and renaming tags
- •Sticky tags
- •Branching and merging
- •What branches are good for
- •Creating a branch
- •Accessing branches
- •Branches and revisions
- •Magic branch numbers
- •Merging an entire branch
- •Merging from a branch several times
- •Merging and keywords
- •Recursive behavior
- •Removing directories
- •The Normal way to Rename
- •Moving and renaming directories
- •History browsing
- •Log messages
- •The history database
- •Multiple developers
- •File status
- •Informing others about commits
- •Several developers simultaneously attempting to run CVS
- •Telling CVS to notify you
- •Information about who is watching and editing
- •Using watches with old versions of CVS
- •Choosing between reserved or unreserved checkouts
- •Revision management
- •When to commit?
- •Keyword substitution
- •Keyword List
- •Using keywords
- •Avoiding substitution
- •Substitution modes
- •Problems with the $Log$ keyword.
- •Tracking third-party sources
- •Updating with the import command
- •Reverting to the latest vendor release
- •How to handle keyword substitution with cvs import
- •Multiple vendor branches
- •How your build system interacts with CVS
- •Special Files
- •Calendar date items
- •Index
Chapter 10: Multiple developers |
75 |
Normally when you are done with a set of changes, you use the cvs commit command, which checks in your changes and returns the watched files to their usual read-only state. But if you instead decide to abandon your changes, or not to make any changes, you can use the cvs unedit command.
cvs unedit [-lR] [files]. . . [Command] Abandon work on the working files files, and revert them to the repository versions on which they are based. cvs makes those files read-only for which users have requested notification using cvs watch on. cvs notifies users who have requested unedit notification for any of files.
The files and options are processed as for the cvs watch commands.
If watches are not in use, the unedit command probably does not work, and the way to revert to the repository version is with the command cvs update -C file (see Section A.20 [update], page 135). The meaning is not precisely the same; the latter may also bring in some changes which have been made in the repository since the last time you updated.
When using client/server cvs, you can use the cvs edit and cvs unedit commands even if cvs is unable to successfully communicate with the server; the notifications will be sent upon the next successful cvs command.
10.6.4 Information about who is watching and editing
cvs watchers [-lR] [files]. . . [Command] List the users currently watching changes to files. The report includes the files being watched, and the mail address of each watcher.
The files and options are processed as for the cvs watch commands.
cvs editors [-lR] [files]. . . [Command] List the users currently working on files. The report includes the mail address of each user, the time when the user began working with the file, and the host and path of the working directory containing the file.
The files and options are processed as for the cvs watch commands.
10.6.5 Using watches with old versions of CVS
If you use the watch features on a repository, it creates ‘CVS’ directories in the repository and stores the information about watches in that directory. If you attempt to use cvs 1.6 or earlier with the repository, you get an error message such as the following (all on one line):
cvs update: cannot open CVS/Entries for reading: No such file or directory
and your operation will likely be aborted. To use the watch features, you must upgrade all copies of cvs which use that repository in local or server mode. If you cannot upgrade, use the watch off and watch remove commands to remove all watches, and that will restore the repository to a state which cvs 1.6 can cope with.
