{"id":4636,"date":"2022-12-20T18:09:23","date_gmt":"2022-12-20T21:09:23","guid":{"rendered":"http:\/\/lode.uno\/linux-man\/index.php\/2022\/12\/20\/cvs-man5\/"},"modified":"2022-12-20T18:09:23","modified_gmt":"2022-12-20T21:09:23","slug":"cvs-man5","status":"publish","type":"post","link":"https:\/\/lode.uno\/linux-man\/2022\/12\/20\/cvs-man5\/","title":{"rendered":"cvs (man5)"},"content":{"rendered":"<h1 align=\"center\">cvs<\/h1>\n<p> <a href=\"#NAME\">NAME<\/a><br \/> <a href=\"#NOTE\">NOTE<\/a><br \/> <a href=\"#SYNOPSIS\">SYNOPSIS<\/a><br \/> <a href=\"#DESCRIPTION\">DESCRIPTION<\/a><br \/> <a href=\"#FILES\">FILES<\/a><br \/> <a href=\"#SEE ALSO\">SEE ALSO<\/a><br \/> <a href=\"#COPYING\">COPYING<\/a> <\/p>\n<hr>\n<h2>NAME <a name=\"NAME\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">cvs \u2212 Concurrent Versions System support files<\/p>\n<h2>NOTE <a name=\"NOTE\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">This documentation may no longer be up to date. Please consult the Cederqvist (CVS Manual) as specified in <b>cvs<\/b>(<b>1<\/b>).<\/p>\n<h2>SYNOPSIS <a name=\"SYNOPSIS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>$CVSROOT\/CVSROOT\/commitinfo,v <br \/> $CVSROOT\/CVSROOT\/cvsignore,v <br \/> $CVSROOT\/CVSROOT\/cvswrappers,v <br \/> $CVSROOT\/CVSROOT\/editinfo,v <br \/> $CVSROOT\/CVSROOT\/history <br \/> $CVSROOT\/CVSROOT\/loginfo,v <br \/> $CVSROOT\/CVSROOT\/modules,v <br \/> $CVSROOT\/CVSROOT\/rcsinfo,v <br \/> $CVSROOT\/CVSROOT\/taginfo,v<\/b><\/p>\n<h2>DESCRIPTION <a name=\"DESCRIPTION\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>cvs<\/b> is a system for providing source control to hierarchical collections of source directories. Commands and procedures for using <b>cvs<\/b> are described in <b>cvs<\/b>(<b>1<\/b>).<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>cvs<\/b> manages <i>source repositories<\/i>, the directories containing master copies of the revision-controlled files, by copying particular revisions of the files to (and modifications back from) developers\u2019 private <i>working directories<\/i>. In terms of file structure, each individual source repository is an immediate subdirectory of <b>$CVSROOT<\/b>.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">The files described here are supporting files; they do not have to exist for <b>cvs<\/b> to operate, but they allow you to make <b>cvs<\/b> operation more flexible.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">You can use the \u2018modules\u2019 file to define symbolic names for collections of source maintained with <b>cvs<\/b>. If there is no \u2018modules\u2019 file, developers must specify complete path names (absolute, or relative to <b>$CVSROOT<\/b>) for the files they wish to manage with <b>cvs<\/b> commands.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">You can use the \u2018commitinfo\u2019 file to define programs to execute whenever \u2018<b>cvs commit<\/b>\u2019 is about to execute. These programs are used for \u2018\u2018pre-commit\u2019\u2019 checking to verify that the modified, added, and removed files are really ready to be committed. Some uses for this check might be to turn off a portion (or all) of the source repository from a particular person or group. Or, perhaps, to verify that the changed files conform to the site\u2019s standards for coding practice.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">You can use the \u2018cvswrappers\u2019 file to record <b>cvs<\/b> wrapper commands to be used when checking files into and out of the repository. Wrappers allow the file or directory to be processed on the way in and out of CVS. The intended uses are many, one possible use would be to reformat a C file before the file is checked in, so all of the code in the repository looks the same.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">You can use the \u2018loginfo\u2019 file to define programs to execute after any <b>commit<\/b>, which writes a log entry for changes in the repository. These logging programs might be used to append the log message to a file. Or send the log message through electronic mail to a group of developers. Or, perhaps, post the log message to a particular newsgroup.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">You can use the \u2018taginfo\u2019 file to define programs to execute after any <b>tag<\/b>or<b>rtag<\/b> operation. These programs might be used to append a message to a file listing the new tag name and the programmer who created it, or send mail to a group of developers, or, perhaps, post a message to a particular newsgroup.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">You can use the \u2018rcsinfo\u2019 file to define forms for log messages.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">You can use the \u2018editinfo\u2019 file to define a program to execute for editing\/validating \u2018<b>cvs commit<\/b>\u2019 log entries. This is most useful when used with a \u2018rcsinfo\u2019 forms specification, as it can verify that the proper fields of the form have been filled in by the user committing the change.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">You can use the \u2018cvsignore\u2019 file to specify the default list of files to ignore during <b>update<\/b>.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">You can use the \u2018history\u2019 file to record the <b>cvs<\/b> commands that affect the repository. The creation of this file enables history logging.<\/p>\n<h2>FILES <a name=\"FILES\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>modules<\/b><\/p>\n<p style=\"margin-left:22%;\">The \u2018modules\u2019 file records your definitions of names for collections of source code. <b>cvs<\/b> will use these definitions if you use <b>cvs<\/b> to check in a file with the right format to \u2018<b>$CVSROOT\/CVSROOT\/modules,v<\/b>\u2019.<\/p>\n<p style=\"margin-left:22%; margin-top: 1em\">The \u2018modules\u2019 file may contain blank lines and comments (lines beginning with \u2018<b>#<\/b>\u2019) as well as module definitions. Long lines can be continued on the next line by specifying a backslash (\u2018\u2018\u2019\u2019) as the last character on the line.<\/p>\n<p style=\"margin-left:22%; margin-top: 1em\">A <i>module definition<\/i> is a single line of the \u2018modules\u2019 file, in either of two formats. In both cases, <i>mname<\/i> represents the symbolic module name, and the remainder of the line is its definition.<\/p>\n<p style=\"margin-left:22%; margin-top: 1em\"><i>mname<\/i> <b>\u2212a<\/b> <i>aliases<\/i>&#8230; <br \/> This represents the simplest way of defining a module <i>mname<\/i>. The \u2018<b>\u2212a<\/b>\u2019 flags the definition as a simple alias: <b>cvs<\/b> will treat any use of <i>mname<\/i> (as a command argument) as if the list of names <i>aliases<\/i> had been specified instead. <i>aliases<\/i> may contain either other module names or paths. When you use paths in <i>aliases<\/i>, \u2018<b>cvs checkout<\/b>\u2019 creates all intermediate directories in the working directory, just as if the path had been specified explicitly in the <b>cvs<\/b> arguments.<\/p>\n<p style=\"margin-left:22%; margin-top: 1em\"><i>mname<\/i> [ <i>options<\/i> ] <i>dir<\/i> [ <i>files<\/i>&#8230; ] [ <b>&#038;<\/b><i>module<\/i>&#8230; ]<\/p>\n<p style=\"margin-left:22%; margin-top: 1em\">In the simplest case, this form of module definition reduces to \u2018<i>mname dir<\/i>\u2019. This defines all the files in directory <i>dir<\/i> as module <i>mname<\/i>. <i>dir<\/i> is a relative path (from <b>$CVSROOT<\/b>) to a directory of source in one of the source repositories. In this case, on <b>checkout<\/b>, a single directory called <i>mname<\/i> is created as a working directory; no intermediate directory levels are used by default, even if <i>dir<\/i> was a path involving several directory levels.<\/p>\n<p style=\"margin-left:22%; margin-top: 1em\">By explicitly specifying <i>files<\/i> in the module definition after <i>dir<\/i>, you can select particular files from directory <i>dir<\/i>. The sample definition for <b>modules<\/b> is an example of a module defined with a single file from a particular directory. Here is another example:<\/p>\n<p style=\"margin-left:22%; margin-top: 1em\"><b>m4test unsupported\/gnu\/m4 foreach.m4 forloop.m4<\/b><\/p>\n<p style=\"margin-left:22%; margin-top: 1em\">With this definition, executing \u2018<b>cvs checkout m4test<\/b>\u2019 will create a single working directory \u2018m4test\u2019 containing the two files listed, which both come from a common directory several levels deep in the <b>cvs<\/b> source repository.<\/p>\n<p style=\"margin-left:22%; margin-top: 1em\">A module definition can refer to other modules by including \u2018<b>&#038;<\/b><i>module<\/i>\u2019 in its definition. <b>checkout<\/b> creates a subdirectory for each such <i>module<\/i>, in your working directory. <i><br \/> New in<\/i> <b>cvs<\/b> <i>1.3;<\/i> avoid this feature if sharing module definitions with older versions of <b>cvs<\/b>.<\/p>\n<p style=\"margin-left:22%; margin-top: 1em\">Finally, you can use one or more of the following <i>options<\/i> in module definitions:<\/p>\n<p style=\"margin-left:22%; margin-top: 1em\">\u2018<b>\u2212d<\/b> <i>name<\/i>\u2019, to name the working directory something other than the module name. <i><br \/> New in<\/i> <b>cvs<\/b> <i>1.3;<\/i> avoid this feature if sharing module definitions with older versions of <b>cvs<\/b>.<\/p>\n<p style=\"margin-left:22%; margin-top: 1em\">\u2018<b>\u2212i<\/b> <i>prog<\/i>\u2019 allows you to specify a program <i>prog<\/i> to run whenever files in a module are committed. <i>prog<\/i> runs with a single argument, the full pathname of the affected directory in a source repository. The \u2018commitinfo\u2019, \u2018loginfo\u2019, and \u2018editinfo\u2019 files provide other ways to call a program on <b>commit<\/b>.<\/p>\n<p style=\"margin-left:22%; margin-top: 1em\">\u2018<b>\u2212o<\/b> <i>prog<\/i>\u2019 allows you to specify a program <i>prog<\/i> to run whenever files in a module are checked out. <i>prog<\/i> runs with a single argument, the module name.<\/p>\n<p style=\"margin-left:22%; margin-top: 1em\">\u2018<b>\u2212e<\/b> <i>prog<\/i>\u2019 allows you to specify a program <i>prog<\/i> to run whenever files in a module are exported. <i>prog<\/i> runs with a single argument, the module name.<\/p>\n<p style=\"margin-left:22%; margin-top: 1em\">\u2018<b>\u2212t<\/b> <i>prog<\/i>\u2019 allows you to specify a program <i>prog<\/i> to run whenever files in a module are tagged. <i>prog<\/i> runs with two arguments: the module name and the symbolic tag specified to <b>rtag<\/b>.<\/p>\n<p style=\"margin-left:22%; margin-top: 1em\">\u2018<b>\u2212u<\/b> <i>prog<\/i>\u2019 allows you to specify a program <i>prog<\/i> to run whenever \u2018<b>cvs update<\/b>\u2019 is executed from the top-level directory of the checked-out module. <i>prog<\/i> runs with a single argument, the full path to the source repository for this module.<\/p>\n<p style=\"margin-left:11%;\"><b>commitinfo<\/b>, <b>loginfo<\/b>, <b>rcsinfo<\/b>, <b>editinfo<\/b><\/p>\n<p style=\"margin-left:22%;\">These files all specify programs to call at different points in the \u2018<b>cvs commit<\/b>\u2019 process. They have a common structure. Each line is a pair of fields: a regular expression, separated by whitespace from a filename or command-line template. Whenever one of the regular expression matches a directory name in the repository, the rest of the line is used. If the line begins with a <b>#<\/b> character, the entire line is considered a comment and is ignored. Whitespace between the fields is also ignored.<\/p>\n<p style=\"margin-left:22%; margin-top: 1em\">For \u2018loginfo\u2019, the rest of the line is a command-line template to execute. The templates can include not only a program name, but whatever list of arguments you wish. If you write \u2018<b>%s<\/b>\u2019 somewhere on the argument list, <b>cvs<\/b> supplies, at that point, the list of files affected by the <b>commit<\/b>. The first entry in the list is the relative path within the source repository where the change is being made. The remaining arguments list the files that are being modified, added, or removed by this <b>commit<\/b> invocation.<\/p>\n<p style=\"margin-left:22%; margin-top: 1em\">For \u2018taginfo\u2019, the rest of the line is a command-line template to execute. The arguments passed to the command are, in order, the <i>tagname , operation<\/i> (i.e. <b>add<\/b> for \u2018tag\u2019, <b>mov<\/b> for \u2018tag -F\u2019, and <b>del<\/b> for \u2018tag -d\u2018), <i>repository ,<\/i> and any remaining are pairs of <b>filename revision .<\/b> A non-zero exit of the filter program will cause the tag to be aborted.<\/p>\n<p style=\"margin-left:22%; margin-top: 1em\">For \u2018commitinfo\u2019, the rest of the line is a command-line template to execute. The template can include not only a program name, but whatever list of arguments you wish. The full path to the current source repository is appended to the template, followed by the file names of any files involved in the commit (added, removed, and modified files).<\/p>\n<p style=\"margin-left:22%; margin-top: 1em\">For \u2018rcsinfo\u2019, the rest of the line is the full path to a file that should be loaded into the log message template.<\/p>\n<p style=\"margin-left:22%; margin-top: 1em\">For \u2018editinfo\u2019, the rest of the line is a command-line template to execute. The template can include not only a program name, but whatever list of arguments you wish. The full path to the current log message template file is appended to the template.<\/p>\n<p style=\"margin-left:22%; margin-top: 1em\">You can use one of two special strings instead of a regular expression: \u2018<b>ALL<\/b>\u2019 specifies a command line template that must always be executed, and \u2018<b>DEFAULT<\/b>\u2019 specifies a command line template to use if no regular expression is a match.<\/p>\n<p style=\"margin-left:22%; margin-top: 1em\">The \u2018commitinfo\u2019 file contains commands to execute <i>before<\/i> any other <b>commit<\/b> activity, to allow you to check any conditions that must be satisfied before <b>commit<\/b> can proceed. The rest of the <b>commit<\/b> will execute only if all selected commands from this file exit with exit status <b>0<\/b>.<\/p>\n<p style=\"margin-left:22%; margin-top: 1em\">The \u2018rcsinfo\u2019 file allows you to specify <i>log templates<\/i> for the <b>commit<\/b> logging session; you can use this to provide a form to edit when filling out the <b>commit<\/b> log. The field after the regular expression, in this file, contains filenames (of files containing the logging forms) rather than command templates.<\/p>\n<p style=\"margin-left:22%; margin-top: 1em\">The \u2018editinfo\u2019 file allows you to execute a script <i>before the commit starts<\/i>, but after the log information is recorded. These &#8220;edit&#8221; scripts can verify information recorded in the log file. If the edit script exits with a non-zero exit status, the commit is aborted.<\/p>\n<p style=\"margin-left:22%; margin-top: 1em\">The \u2018loginfo\u2019 file contains commands to execute <i>at the end<\/i> of a commit. The text specified as a commit log message is piped through the command; typical uses include sending mail, filing an article in a newsgroup, or appending to a central file.<\/p>\n<p style=\"margin-left:11%;\"><b>cvsignore<\/b>, <b>.cvsignore<\/b><\/p>\n<p style=\"margin-left:22%;\">The default list of files (or <b>sh<\/b>(<b>1<\/b>) file name patterns) to ignore during \u2018<b>cvs update<\/b>\u2019. At startup time, <b>cvs<\/b> loads the compiled in default list of file name patterns (see <b>cvs<\/b>(<b>1<\/b>)). Then the per-repository list included in <b>$CVSROOT\/CVSROOT\/cvsignore<\/b> is loaded, if it exists. Then the per-user list is loaded from \u2018$HOME\/.cvsignore\u2019. Finally, as <b>cvs<\/b> traverses through your directories, it will load any per-directory \u2018.cvsignore\u2019 files whenever it finds one. These per-directory files are only valid for exactly the directory that contains them, not for any sub-directories.<\/p>\n<p style=\"margin-left:11%;\"><b>history<\/b><\/p>\n<p style=\"margin-left:22%;\">Create this file in <b>$CVSROOT\/CVSROOT<\/b> to enable history logging (see the description of \u2018<b>cvs history<\/b>\u2019).<\/p>\n<h2>SEE ALSO <a name=\"SEE ALSO\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>cvs<\/b>(<b>1<\/b>),<\/p>\n<h2>COPYING <a name=\"COPYING\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">Copyright \u00a9 1992 Cygnus Support, Brian Berliner, and Jeff Polk<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Permission is granted to make and distribute verbatim copies of this manual provided the copyright notice and this permission notice are preserved on all copies.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Permission is granted to copy and distribute modified versions of this manual under the conditions for verbatim copying, provided that the entire resulting derived work is distributed under the terms of a permission notice identical to this one.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Permission is granted to copy and distribute translations of this manual into another language, under the above conditions for modified versions, except that this permission notice may be included in translations approved by the Free Software Foundation instead of in the original English.<\/p>\n<hr>\n","protected":false},"excerpt":{"rendered":"<p>  cvs \u2212 Concurrent Versions System support files <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[959],"tags":[961,1574,1291],"class_list":["post-4636","post","type-post","status-publish","format-standard","hentry","category-5-formatos-de-ficheros","tag-961","tag-cvs","tag-man5"],"gutentor_comment":0,"_links":{"self":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/4636","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/comments?post=4636"}],"version-history":[{"count":0,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/4636\/revisions"}],"wp:attachment":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/media?parent=4636"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/categories?post=4636"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/tags?post=4636"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}