如果我多次使用 svn propset svn:ignore -F 属性是否会被追加或替换?
假设我想将 .cvsignore 文件转换为 svn:ignore 属性,同时将旧的 cvs 项目转换为 svn。然后其他人出现,并没有意识到 .cvsignore 不再使用,而是更改了 .cvsignore 文件以更新新的被忽略的文件。如果我再次运行 svn propset svn:ignore -F .cvsignore .,文件的内容是否会附加到第一次运行时设置的较早值,或者文件的内容是否会覆盖较早的值? SVN 书似乎没有给我答案。
Say I want to convert a .cvsignore file to an svn:ignore property while converting an old cvs project to svn. Then someone else comes along and, not realizing that .cvsignore is no longer in use, changes the .cvsignore file to update new ignored files. If I run svn propset svn:ignore -F .cvsignore .
again, will the file's contents be appended to the earlier value set by the first run or will the file's contents overwrite the earlier value? The SVN book didn't seem to have an answer for me.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
你试过这个吗?快速测试就会很快给你答案。
不,它不会将 .cvsignore 附加到 svn:ignore 属性中已有的内容。相反,它将用 .cvsignore 的当前值完全替换旧值。无论如何,这就是你想要的。
例如,
.cvsignore
中包含target
和log.txt
。您运行svn propset
命令,并忽略target
和log.txt
。现在,有人编辑
.cvsignore
并向其中添加temp
。.cvsignore
现在包含三个文件(target
、log.txt
和temp
)。再次运行svn propset
,svn:ignore
也会有这三个文件。Have you tried this? A quick test would have given you the answer pretty quick.
No it won't append the .cvsignore to what's already in the svn:ignore property. Instead, it'll completely replace the old value with the current value of .cvsignore. This is what you want anyway.
For example,
.cvsignore
hadtarget
andlog.txt
in it. You run yoursvn propset
command, and you're ignoringtarget
andlog.txt
.Now, someone edits
.cvsignore
and addstemp
to it..cvsignore
now has three files in it (target
,log.txt
, andtemp
). Runsvn propset
again, andsvn:ignore
will also have these three files.