Name
unedit — Synonyms: none
Synopsis
cvs [cvs-options] unedit [-lR] [files...]
Notifies watchers that a file is no longer being edited, clears the temporary watch, sets the file as read-only, and restores the file to the repository revision that the sandbox copy was based on.
See also edit, editors,
watch, and watchers.
Command options
-
-l Run
unediton files in the local directory only. (Do not recurse down subdirectories.)See also
-R.-
-R Run
unediton files in the local directory and all subdirectories and recurse down the subdirectories. This option is the default.See also
-l.
Description
The cvs unedit command is used as part of the
cvs watch family of commands. If a file is being
watched, CVS writes it (when it is checked out) to the sandbox with
read permissions but not write permissions. The
edit command sets the sandbox file as writable,
notifies any watchers that the file is being edited, and sets the
user as a temporary watcher to be notified if certain actions are
performed on the file by other users.
The unedit command notifies watchers that the
file is no longer being edited, clears the temporary watch, sets the
file as read-only, and restores the file to the repository revision
that the sandbox copy was based on.
The script in the notify file in the
repository’s CVSROOT directory
is used to notify the user of changes.
Example
bash-2.05a$ cvs unedit Makefile
bash-2.05a$Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access