|Version Management with CVS - the CVS manual|
by Per Cederqvist et al.
Paperback (6"x9"), 216 pages, 8 figures
RRP £19.95 ($29.95)
10.6.3 How to edit a file which is being watched
Since a file which is being watched is checked out
read-only, you cannot simply edit it. To make it
read-write, and inform others that you are planning to
edit it, use the
cvs edit command. Some systems
call this a checkout, but CVS uses that term
for obtaining a copy of the sources (see section 1.3.1 Getting the source), an operation which those systems call a
get or a fetch.
- Command: cvs edit [
Prepare to edit the working files files. CVS makes the files read-write, and notifies users who have requested
editnotification for any of files.
cvs editcommand accepts the same options as the
cvs watch addcommand, and establishes a temporary watch for the user on files; CVS will remove the watch when files are
committed. If the user does not wish to receive notifications, they should specify
The files and the options are processed as for the
Normally when you are done with a set of changes, you
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
cvs unedit command.
- Command: cvs unedit [
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
uneditnotification for any of files.
The files and options are processed as for the
If watches are not in use, the
uneditcommand probably does not work, and the way to revert to the repository version is with the command
cvs update -C file(see section A.17 update--Bring work tree in sync with repository). 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.
|ISBN 0954161718||Version Management with CVS - the CVS manual||See the print edition|