Internal Variables in CVSROOT Files
The syntax for referencing a CVS internal variable is ${VARIABLE}. The $VARIABLE syntax can also be used if the
character immediately following the variable is neither alphanumeric
nor an underscore (_).
These are the internal CVS variables:
-
CVSROOT The path to the repository root directory (not the path to the CVSROOT directory within the repository). This variable contains the path only, not any access method or host information.
CVSEDITOR,EDITOR,VISUALThe editor CVS is using. If you use the
-eeditorCVS option, CVS uses the editor you specify on the command line. If you don’t use-e, CVS reads the environment variables and uses the first editor it finds. CVS uses CVSEDITOR by preference, then EDITOR, then VISUAL.-
USER The username (on the server machine in client/server mode) of the user running CVS.
With the
pserveraccess method, this is the third field of the appropriate line in passwd. If no username is there, it is the name in the leftmost field.
CVS permits user-defined variables that can be passed to
administrative files from the client. In the administrative files,
reference such a variable with the syntax ${=VARIABLE}. On the command line, use the
-s variable=value CVS
option to pass the variable to CVS. All strings that contain the
$ symbol, other than the variable
references, are reserved for CVS internal use. There is no way to
escape the $ symbol.
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