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

发布于 2025-01-01 23:44:32 字数 63 浏览 0 评论 0原文

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

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

What is the difference between "cvs update" and "cvs -n update"?

I couldn't understand the difference between them.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

只是偏爱你 2025-01-08 23:44:33

区别在于,

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.

The difference is that

cvs update

does an actual update, while

cvs -n update

simulates an update and won't change anything on disk. It will only show which files would be updated if you did an actual update.

Quoting the CVS documentation (for version 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.
颜漓半夏 2025-01-08 23:44:33

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

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

"-n: Do not run any tag program. (A program can be specified to run in the modules database (see section The modules file); this option bypasses it). "

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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文