如何禁用 CVS Sticky Option -kk 进行关键字替换?

发布于 2024-07-09 20:56:17 字数 265 浏览 4 评论 0原文

我在 cvs 中有一个文件,其粘性选项设置为 -kk。 这会将所有 cvs 关键字替换为关键字名称,以方便进行差异。 例如,$Author: Alex B$ 变为 $Author$

如何禁用 -kk 行为并返回到替换关键字的“正常”cvs? 我尝试过rm'ing文件并更新,我尝试过cvs update -A但都没有改变标志。

I have a file in cvs that has Sticky Options set to -kk. This replaces all cvs keywords with just the keyword name to facilitate diffs. For example, $Author: Alex B$ becomes $Author$.

How do I disable the -kk behavior and get back to "normal" cvs where keywords are substituted in? I've tried rm'ing the file and updating, I've tried cvs update -A and neither changes the flag.

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

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

发布评论

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

评论(3

仙女 2024-07-16 20:56:18

在文件上运行 cvs status 仍会导致设置“粘性选项”,例如:

粘性选项:-kk

要完全删除这些选项,请编辑 CVS/Entries 文件并删除“-kk”来自相关条目。

Running a cvs status on the file still results in "sticky options" being set, for example:

Sticky options: -kk

To remove these completely, edit the CVS/Entries file and remove the '-kk' from the relevent entry.

時窥 2024-07-16 20:56:18

您应该使用

cvs admin -kkv <filename>

永久更改模式。 使用

cvs update -kkv <filename>

只会在本地计算机上更改它

You should use

cvs admin -kkv <filename>

to change the mode permanently. Using

cvs update -kkv <filename>

will only change it on your local machine

|煩躁 2024-07-16 20:56:17
cvs update -kkv <filename>

将把粘性选项重置为keywordvalue

编辑:checkout更正为update ,感谢 Alex B 的更正。

cvs update -kkv <filename>

will reset the sticky options to keyword and value

Edit: Corrected checkout to update, thanks to Alex B for the correction.

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