DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 

(cvs.info.gz) Editing files

Info Catalog (cvs.info.gz) Getting Notified (cvs.info.gz) Watches (cvs.info.gz) Watch information
 
 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 ( Getting the source), an operation which those
 systems call a "get" or a "fetch".
 
  -- Command: cvs edit [`-lR'] [`-a' ACTION]... [FILES]...
      Prepare to edit the working files FILES.  CVS makes the FILES
      read-write, and notifies users who have requested `edit'
      notification for any of FILES.
 
      The `cvs edit' command accepts the same options as the `cvs watch
      add' command, and establishes a temporary watch for the user on
      FILES; CVS will remove the watch when FILES are `unedit'ed or
      `commit'ted.  If the user does not wish to receive notifications,
      she should specify `-a none'.
 
      The FILES and the options are processed as for the `cvs watch'
      commands.
 
      There are two additional options that `cvs edit' understands as of
      CVS client and server versions 1.12.10 but `cvs watch' does not.
      The first is `-c', which causes `cvs edit' to fail if anyone else
      is editting the file.  This is probably only useful when `edit -c'
      and `commit -c' are specified in all developers' `.cvsrc' files.
      This behavior may be overriden this via the `-f' option, which
      overrides `-c' and allows multiple edits to succeed.
 
 
    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.
 
  -- Command: cvs unedit [`-lR'] [FILES]...
      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' ( update).  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.
 
Info Catalog (cvs.info.gz) Getting Notified (cvs.info.gz) Watches (cvs.info.gz) Watch information
automatically generated byinfo2html