This appendix describes how to invoke cvs, with references to where each command or feature is described in detail. For other references run the cvs -help command, or see Index.
A cvs command looks like:
cvs [ global_options ] command [ command_options ] [ command_args ] |
Global options:
Specify legal cvsroot directory (server only) (not in cvs 1.9 and older). See 在服务器端设置密码认证 在 第 2 章.
Authenticate all communication (client only) (not in cvs 1.9 and older). See 全局选项 在 附录 A.
Specify RCS location (cvs 1.9 and older). See 全局选项 在 附录 A.
Specify the cvsroot. See 第 2 章.
Edit messages with editor. See 提交修改 在 第 1 章.
Do not read the ~/.cvsrc file. See 全局选项 在 附录 A.
Print a help message. See 全局选项 在 附录 A.
Do not log in $CVSROOT/CVSROOT/history file. See 全局选项 在 附录 A.
Do not change any files. See 全局选项 在 附录 A.
Be really quiet. See 全局选项 在 附录 A.
Be somewhat quiet. See 全局选项 在 附录 A.
Make new working files read-only. See 全局选项 在 附录 A.
Set a user variable. See Expansions in administrative files 在 附录 C.
Put temporary files in tempdir. See 全局选项 在 附录 A.
Trace cvs execution. See 全局选项 在 附录 A.
Display version and copyright information for cvs.
Make new working files read-write. See 全局选项 在 附录 A.
Encrypt all communication (client only). See 全局选项 在 附录 A.
Set the compression level (client only). See 全局选项 在 附录 A.
Keyword expansion modes (替换模式 在 第 12 章):
-kkv $Id: file1,v 1.1 1993/12/09 03:21:13 joe Exp $ -kkvl $Id: file1,v 1.1 1993/12/09 03:21:13 joe Exp harry $ -kk $Id$ -kv file1,v 1.1 1993/12/09 03:21:13 joe Exp -ko no expansion -kb no expansion, file is binary |
Keywords (关键字列表 在 第 12 章):
$Author: joe $ $Date: 1993/12/09 03:21:13 $ $Header: /home/files/file1,v 1.1 1993/12/09 03:21:13 joe Exp harry $ $Id: file1,v 1.1 1993/12/09 03:21:13 joe Exp harry $ $Locker: harry $ $Name: snapshot_1_14 $ $RCSfile: file1,v $ $Revision: 1.1 $ $Source: /home/files/file1,v $ $State: Exp $ $Log: file1,v $ Revision 1.1 1993/12/09 03:30:17 joe Initial revision |
Commands, command options, and command arguments:
Add a new file/directory. See 添加一个文件到源码库的一个目录 在 第 7 章.
Set keyword expansion.
Set file description.
Administration of history files in the repository. See admin--Administration 在 附录 A.
Set default branch. See 恢复到最新的发行版本 在 第 13 章.
Set comment leader.
Set keyword substitution. See 第 12 章.
Lock revision rev, or latest revision.
Replace the log message of revision rev with msg.
Delete revisions from the repository. See admin options 在 附录 A.
Run quietly; do not print diagnostics.
Set the state.
Set file description from standard input.
Set file description from file.
Set file description to string.
Unlock revision rev, or latest revision.
Show last revision where each line was modified. See Annotate命令 在 第 8 章.
Annotate the most recent revision no later than date. See 通用命令选项 在 附录 A.
Force annotation of binary files. (Without this option, binary files are skipped with a message.)
Use head revision if tag/date not found. See 通用命令选项 在 附录 A.
Local; run only in current working directory. 第 6 章.
Operate recursively (default). 第 6 章.
Annotate revision tag. See 通用命令选项 在 附录 A.
Get a copy of the sources. See checkout--Check out sources for editing 在 附录 A.
Reset any sticky tags/date/options. See 粘性的标签(Sticky tags) 在 第 4 章 and 第 12 章.
Output the module database. See checkout options 在 附录 A.
Check out revisions as of date (is sticky). See 通用命令选项 在 附录 A.
Check out into dir. See checkout options 在 附录 A.
Use head revision if tag/date not found. See 通用命令选项 在 附录 A.
Merge in changes. See checkout options 在 附录 A.
Use kflag keyword expansion. See 替换模式 在 第 12 章.
Local; run only in current working directory. 第 6 章.
Don't "shorten" module paths if -d specified. See checkout options 在 附录 A.
Do not run module program (if any). See checkout options 在 附录 A.
Prune empty directories. See 移动和重命名目录 在 第 7 章.
Check out files to standard output (avoids stickiness). See checkout options 在 附录 A.
Operate recursively (default). 第 6 章.
Checkout revision tag (is sticky). See 通用命令选项 在 附录 A.
Like -c, but include module status. See checkout options 在 附录 A.
Check changes into the repository. See commit--Check files into the repository 在 附录 A.
Read log message from file. See commit options 在 附录 A.
Force the file to be committed; disables recursion. See commit options 在 附录 A.
Local; run only in current working directory. See 第 6 章.
Use msg as log message. See commit options 在 附录 A.
Do not run module program (if any). See commit options 在 附录 A.
Operate recursively (default). 第 6 章.
Commit to rev. See commit options 在 附录 A.
Show differences between revisions. See diff--Show differences between revisions 在 附录 A. In addition to the options shown below, accepts a wide variety of options to control output style, for example -c for context diffs.
Diff revision for date against working file. See diff options 在 附录 A.
Diff rev1/date1 against date2. See diff options 在 附录 A.
Local; run only in current working directory. See 第 6 章.
Include diffs for added and removed files. See diff options 在 附录 A.
Operate recursively (default). 第 6 章.
Diff revision for rev1 against working file. See diff options 在 附录 A.
Diff rev1/date1 against rev2. See diff options 在 附录 A.
Get ready to edit a watched file. See 怎样编辑一个被观察的文件 在 第 10 章.
Specify actions for temporary watch, where actions is edit, unedit, commit, all, or none. See 怎样编辑一个被观察的文件 在 第 10 章.
Local; run only in current working directory. See 第 6 章.
Operate recursively (default). 第 6 章.
See who is editing a watched file. See 有关谁正在观察和编辑的信息 在 第 10 章.
Export files from cvs. See export--Export sources from CVS, similar to checkout 在 附录 A.
Check out revisions as of date. See 通用命令选项 在 附录 A.
Check out into dir. See export options 在 附录 A.
Use head revision if tag/date not found. See 通用命令选项 在 附录 A.
Use kflag keyword expansion. See 替换模式 在 第 12 章.
Local; run only in current working directory. 第 6 章.
Don't "shorten" module paths if -d specified. See export options 在 附录 A.
Do not run module program (if any). See export options 在 附录 A.
Prune empty directories. See 移动和重命名目录 在 第 7 章.
Operate recursively (default). 第 6 章.
Checkout revision tag. See 通用命令选项 在 附录 A.
Show repository access history. See history--Show status of files and users 在 附录 A.
All users (default is self). See history options 在 附录 A.
Back to record with str in module/file/repos field. See history options 在 附录 A.
Report on committed (modified) files. See history options 在 附录 A.
Since date. See history options 在 附录 A.
Report on all record types. See history options 在 附录 A.
Last modified (committed or modified report). See history options 在 附录 A.
Report on module (repeatable). See history options 在 附录 A.
In module. See history options 在 附录 A.
Report on checked out modules. See history options 在 附录 A.
In repository. See history options 在 附录 A.
Since revision rev. See history options 在 附录 A.
Produce report on all TAGs. See history options 在 附录 A.
Since tag record placed in history file (by anyone). See history options 在 附录 A.
For user user (repeatable). See history options 在 附录 A.
Working directory must match. See history options 在 附录 A.
Report on types, one or more of TOEFWUCGMAR. See history options 在 附录 A.
Output for time zone zone. See history options 在 附录 A.
Import files into cvs, using vendor branches. See import--Import sources into CVS, using vendor branches 在 附录 A.
Import to vendor branch bra. See 多个vendor branches 在 第 13 章.
Use the file's modification time as the time of import. See import options 在 附录 A.
Set default keyword substitution mode. See import options 在 附录 A.
Use msg for log message. See import options 在 附录 A.
More files to ignore (! to reset). See import options 在 附录 A.
More wrappers. See import options 在 附录 A.
Create a cvs repository if it doesn't exist. See 创建源码库 在 第 2 章.
Kerberos authenticated server. See 通过kerberos直接连接 在 第 2 章.
Print out history information for files. See log--Print out log information for files 在 附录 A.
Only list revisions on the default branch. See log options 在 附录 A.
Specify dates (d1<d2 for range, d for latest before). See log options 在 附录 A.
Only print header. See log options 在 附录 A.
Local; run only in current working directory. See 第 6 章.
Do not list tags. See log options 在 附录 A.
Only print name of RCS file. See log options 在 附录 A.
Only list revisions revs. See log options 在 附录 A.
Only list revisions with specified states. See log options 在 附录 A.
Only print header and descriptive text. See log options 在 附录 A.
Only list revisions checked in by specified logins. See log options 在 附录 A.
Prompt for password for authenticating server. See 在客户端使用密码认证 在 第 2 章.
Remove stored password for authenticating server. See 在客户端使用密码认证 在 第 2 章.
Password authenticated server. See 在服务器端设置密码认证 在 第 2 章.
Show last revision where each line was modified. See Annotate命令 在 第 8 章.
Annotate the most recent revision no later than date. See 通用命令选项 在 附录 A.
Force annotation of binary files. (Without this option, binary files are skipped with a message.)
Use head revision if tag/date not found. See 通用命令选项 在 附录 A.
Local; run only in current working directory. 第 6 章.
Operate recursively (default). 第 6 章.
Annotate revision tag. See 通用命令选项 在 附录 A.
Show differences between releases. See rdiff--'patch' format diffs between releases 在 附录 A.
Context diff output format (default). See rdiff options 在 附录 A.
Select revisions based on date. See 通用命令选项 在 附录 A.
Use head revision if tag/date not found. See 通用命令选项 在 附录 A.
Local; run only in current working directory. See 第 6 章.
Operate recursively (default). 第 6 章.
Select revisions based on rev. See 通用命令选项 在 附录 A.
Short patch - one liner per file. See rdiff options 在 附录 A.
Top two diffs - last change made to the file. See diff options 在 附录 A.
Unidiff output format. See rdiff options 在 附录 A.
Use RCS Version vers for keyword expansion (obsolete). See rdiff options 在 附录 A.
Indicate that a directory is no longer in use. See release--Indicate that a Module is no longer in use 在 附录 A.
Delete the given directory. See release options 在 附录 A.
Remove an entry from the repository. See 删除文件 在 第 7 章.
Delete the file before removing it. See 删除文件 在 第 7 章.
Local; run only in current working directory. See 第 6 章.
Operate recursively (default). 第 6 章.
Print out history information for modules. See log--Print out log information for files 在 附录 A.
Only list revisions on the default branch. See log options 在 附录 A.
Specify dates (d1<d2 for range, d for latest before). See log options 在 附录 A.
Only print header. See log options 在 附录 A.
Local; run only in current working directory. See 第 6 章.
Do not list tags. See log options 在 附录 A.
Only print name of RCS file. See log options 在 附录 A.
Only list revisions revs. See log options 在 附录 A.
Only list revisions with specified states. See log options 在 附录 A.
Only print header and descriptive text. See log options 在 附录 A.
Only list revisions checked in by specified logins. See log options 在 附录 A.
Add a symbolic tag to a module. See 第 4 章 and 第 5 章.
Clear tag from removed files that would not otherwise be tagged. See 打标签与添加、删除文件 在 第 4 章.
Create a branch named tag. See 第 5 章.
Used in conjuntion with -F or -d, enables movement and deletion of branch tags. Use with extreme caution.
Tag revisions as of date. See 通过日期或版本打标签 在 第 4 章.
Delete tag. See 删除,移动和重命名标签 在 第 4 章.
Move tag if it already exists. See 删除,移动和重命名标签 在 第 4 章.
Force a head revision match if tag/date not found. See 通过日期或版本打标签 在 第 4 章.
Local; run only in current working directory. See 第 6 章.
No execution of tag program. See 通用命令选项 在 附录 A.
Operate recursively (default). 第 6 章.
Tag existing tag rev. See 通过日期或版本打标签 在 第 4 章.
Rsh server. See 通过rsh连接 在 第 2 章.
Display status information in a working directory. See 文件状态 在 第 10 章.
Local; run only in current working directory. See 第 6 章.
Operate recursively (default). 第 6 章.
Include tag information for file. See 标签形式的版本号 在 第 4 章.
Add a symbolic tag to checked out version of files. See 第 4 章 and 第 5 章.
Create a branch named tag. See 第 5 章.
Check that working files are unmodified. See 在工作目录内指定哪些文件需要打标签 在 第 4 章.
Tag revisions as of date. See 通过日期或版本打标签 在 第 4 章.
Delete tag. See 删除,移动和重命名标签 在 第 4 章.
Move tag if it already exists. See 删除,移动和重命名标签 在 第 4 章.
Force a head revision match if tag/date not found. See 通过日期或版本打标签 在 第 4 章.
Local; run only in current working directory. See 第 6 章.
Operate recursively (default). 第 6 章.
Tag existing tag rev. See 通过日期或版本打标签 在 第 4 章.
Undo an edit command. See 怎样编辑一个被观察的文件 在 第 10 章.
Bring work tree in sync with repository. See update--Bring work tree in sync with repository 在 附录 A.
Reset any sticky tags/date/options. See 粘性的标签(Sticky tags) 在 第 4 章 and 第 12 章.
Overwrite locally modified files with clean copies from the repository (the modified file is saved in .#file.revision, however).
Check out revisions as of date (is sticky). See 通用命令选项 在 附录 A.
Create directories. See update options 在 附录 A.
Use head revision if tag/date not found. See 通用命令选项 在 附录 A.
More files to ignore (! to reset). See import options 在 附录 A.
Merge in changes. See update options 在 附录 A.
Use kflag keyword expansion. See 替换模式 在 第 12 章.
Local; run only in current working directory. 第 6 章.
Prune empty directories. See 移动和重命名目录 在 第 7 章.
Check out files to standard output (avoids stickiness). See update options 在 附录 A.
Operate recursively (default). 第 6 章.
Checkout revision tag (is sticky). See 通用命令选项 在 附录 A.
More wrappers. See import options 在 附录 A.
Display the version of cvs being used. If the repository is remote, display both the client and server versions.
on/off: turn on/off read-only checkouts of files. See 用cvs观察(watch)指定的文件 在 第 10 章.
add/remove: add or remove notification on actions. See 使用cvs通知 在 第 10 章.
Specify actions for temporary watch, where actions is edit, unedit, commit, all, or none. See 怎样编辑一个被观察的文件 在 第 10 章.
Local; run only in current working directory. See 第 6 章.
Operate recursively (default). 第 6 章.
See who is watching a file. See 有关谁正在观察和编辑的信息 在 第 10 章.