“cvs update”和“cvs -n update”有什么区别?

时间:2012-02-04 07:26:23

标签: version cvs

“cvs update”和“cvs -n update”有什么区别?

我无法理解它们之间的区别。

2 个答案:

答案 0 :(得分:2)

区别在于

cvs update

进行实际更新,而

cvs -n update

模拟更新,不会更改磁盘上的任何内容。它只会显示在您进行实际更新时将更新哪些文件。

引用CVS文档(版本1.12.13):

`-n'
     Do not change any files.  Attempt to execute the `cvs_command',
     but only to issue reports; do not remove, update, or merge any
     existing files, or create any new files.

     Note that CVS will not necessarily produce exactly the same output
     as without `-n'.  In some cases the output will be the same, but
     in other cases CVS will skip some of the processing that would
     have been required to produce the exact same output.

答案 1 :(得分:-1)

“ - n:不运行任何标记程序。(可以指定程序在模块数据库中运行(请参阅模块文件一节);此选项可以绕过它。)”

http://ximbiot.com/cvs/manual/cvs-1.11.23/cvs_16.html#SEC117