添加svn:executable的正确方法 [英] Proper way to add svn:executable

查看:321
本文介绍了添加svn:executable的正确方法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在添加svn之前,我有一些可执行的文件.它们具有svn:executable属性集.现在,在没有可执行位的情况下签入了一些其他文件,没有这些文件,我想设置svn:executable属性:

I have a few files that have been executable before svn adding them. They have the svn:executable property set. Now, a few other files were checked in without the executable bit do not have it, and I want to set the svn:executable property:

$ svn propset svn:executable on *.cgi

然后我检查状态,甚至带有svn:executable的文件也已被修改:

Then I check the status and even the files with the svn:executable have been modified:

$ svn diff
Property changes on: a.cgi
___________________________________________________________________
Modified: svn:executable
   - 
   + *


Property changes on: b.cgi
___________________________________________________________________
Added: svn:executable
   + *

a.cgi不应被修改.我想添加svn:executable位,使其以与其他文件相同的方式设置,但是无法弄清楚执行该操作的命令.

a.cgi should not be modified. I want to add the svn:executable bit to be set in the same way as it is on the other files, but can't figure out the command to do it.

推荐答案

您正确使用svn属性编辑命令.该属性是svn:executable.

You are right to use the svn property editing commands. The property is svn:executable.

要在svn中添加可执行位"

To add the "executable bit" in svn

svn propset svn:executable on <list of files>

要删除svn中的可执行位"

To remove the "executable bit" in svn

svn propdel svn:executable <list of files>

有关此内容的SVN文档位于此处.

就不修改可执行文件而言,您不是在修改可执行文件(校验和将对此进行验证),而是在修改SVN存储库.请记住,SVN修订文件系统,而不仅仅是文件.因此,对权限位的修改将增加SVN修订版号,即使这仅仅是对文件属性的修改(而不是对文件本身的修改).

As far as not modifying the executables, you are not modifying the executable (a checksum will verify that), but you are modifying the SVN repository. Remember that SVN revisions file systems, not just files; so, a modification of the permission bits will increase the SVN revision number, even if it's just a modification of a file's properties (and not a modification of the file itself).

这篇关于添加svn:executable的正确方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆