Subversion Properties

Subversion允许用户在文件或目录上发明任意名称的版本化属性和非版本化属性,唯一的限制就是“svn:”是Subversion本身的保留前缀,用户可以设置这些属性来改变Subversion的行为方式,用户不能发明新的“svn:”属性。

版本控制的属性

svn:executable

如果出现在一个文件上,客户端会将此文件在Unix工作拷贝中设置为可执行,见“文件的可执行性”一节

svn:mime-type

如果出现在一个文件,这个值表示了文件的mime-type,这允许客户端在执行更新时决定以行为依据的合并是否安全,同时也会影响使用浏览器浏览文件时的行为方式。见“文件内容类型”一节

svn:ignore

If present on a directory, the value is a list of unversioned file patterns to be ignored by svn status and other subcommands. See “忽略未版本控制的条目”一节.

svn:keywords

如果出现在一个文件上,这个值告诉客户端如何扩展文件的特定关键字,见“关键字替换”一节

svn:eol-style

If present on a file, the value tells the client how to manipulate the file's line-endings in the working copy and in exported trees. See “行结束字符串”一节 and svn export.

svn:externals

If present on a directory, the value is a multiline list of other paths and URLs the client should check out. See “外部定义”一节.

svn:special

If present on a file, indicates that the file is not an ordinary file, but a symbolic link or other special object. [56]

svn:needs-lock

如果出现在一个文件上,告诉客户端在工作拷贝将文件置为只读,可以提醒我们在修改以前必须解锁。见“锁定交流”一节

svn:mergeinfo

Used by Subversion to track merge data. See “Mergeinfo and Previews”一节 for details, but you should never edit this property unless you really know what you're doing.

未版本控制的属性

svn:author

如果出现,则保存了创建这个修订版本的认证用户名。(如果没有出现,则修订版本是匿名提交的。)

svn:date

保存了ISO 8601格式的修订版本创建UTC时间,这个值来自服务器主机时钟,不是客户端的。

svn:log

保存了描述修订版本的日志信息。

svn:autoversioned

如果出现,则修订版本是通过自动版本化特性创建,见“自动版本化”一节



[56] 此时,符号链是唯一的“特别”对象,但是以后,也许Subversion会有更多的特别对象。