cvs update 详细选项

本文深入解析CVS命令update中的标准选项和特殊选项,包括-Ddate、-f、-k、-l、-P、-p、-R、-r、-A、-C、-d、-I、-W、-j等,并提供详细的参数说明和使用场景,帮助开发者高效管理和更新版本控制系统中的文件和目录。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

update options

These standard options are available with update (see section A.5 Common command options, for a complete description of them):

-D date
    Use the most recent revision no later than date. This option is sticky, and implies ‘-P’. See section 4.9 Sticky tags, for more information on sticky tags/dates.
-f
    Only useful with the ‘-D date’ or ‘-r tag’ flags. If no matching revision is found, retrieve the most recent revision (instead of ignoring the file).
-k kflag
    Process keywords according to kflag. See section 12 Keyword substitution. This option is sticky; future updates of this file in this working directory will use the same kflag. The status command can be viewed to see the sticky options. See section G Quick reference to CVS commands, for more information on the status command.
-l
    Local; run only in current working directory. See section 6 Recursive behavior.
-P
    Prune empty directories. See section 7.5 Moving and renaming directories.
-p
    Pipe files to the standard output.
-R
    Update directories recursively (default). See section 6 Recursive behavior.
-r rev
    Retrieve revision/tag rev. This option is sticky, and implies ‘-P’. See section 4.9 Sticky tags, for more information on sticky tags/dates.

These special options are also available with update.

-A
    Reset any sticky tags, dates, or ‘-k’ options. Does not reset sticky ‘-k’ options on modified files. See section 4.9 Sticky tags, for more information on sticky tags/dates.
-C
    Overwrite locally modified files with clean copies from the repository (the modified file is saved in ‘.#file.revision’, however).
-d
    Create any directories that exist in the repository if they're missing from the working directory. Normally, update acts only on directories and files that were already enrolled in your working directory. This is useful for updating directories that were created in the repository since the initial checkout; but it has an unfortunate side effect. If you deliberately avoided certain directories in the repository when you created your working directory (either through use of a module name or by listing explicitly the files and directories you wanted on the command line), then updating with ‘-d’ will create those directories, which may not be what you want.
-I name
    Ignore files whose names match name (in your working directory) during the update. You can specify ‘-I’ more than once on the command line to specify several files to ignore. Use ‘-I !’ to avoid ignoring any files at all. See section B.7 Ignoring files via cvsignore, for other ways to make CVS ignore some files.
-Wspec
    Specify file names that should be filtered during update. You can use this option repeatedly. spec can be a file name pattern of the same type that you can specify in the ‘cvswrappers’ file. See section B.2 The cvswrappers file.
-jrevision
    With two ‘-j’ options, merge changes from the revision specified with the first ‘-j’ option to the revision specified with the second ‘j’ option, into the working directory. With one ‘-j’ option, merge changes from the ancestor revision to the revision specified with the ‘-j’ option, into the working directory. The ancestor revision is the common ancestor of the revision which the working directory is based on, and the revision specified in the ‘-j’ option. Note that using a single ‘-j tagname’ option rather than ‘-j branchname’ to merge changes from a branch will often not remove files which were removed on the branch. See section 5.9 Merging can add or remove files, for more. In addition, each ‘-j’ option can contain an optional date specification which, when used with branches, can limit the chosen revision to one within a specific date. An optional date is specified by adding a colon (:) to the tag: ‘-jSymbolic_Tag:Date_Specifier’. See section 5 Branching and merging.

转载于:https://www.cnblogs.com/IS2120/archive/2012/03/15/6745927.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值