10. Subversion 属性

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

10.1. 版本控制的属性

These are the versioned properties that Subversion reserves for its own use:

svn:executable

如果出现在文件上,客户端会将此文件在 Unix 系统中的工作副本中设置为可执行。参见第 4.2 节 “文件的可执行性”

svn:mime-type

如果出现在文件,这个值表示了文件的多媒体文件类型。它允许客户端在执行更新时,判断是否可以基于行合并,同时也会影响使用浏览器浏览文件时的行为方式。参见第 4.1 节 “文件内容类型”

svn:ignore

如果出现在目录上,这是一组 svn status 和其它命令可以忽略的不受版本控制的名称匹配模式。参见第 5 节 “忽略未版本控制的条目”

svn:keywords

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

svn:eol-style

如果出现在文件上,这个值告诉客户端如何处理工作副本中的文件的行结束符。参见第 4.3 节 “行结束字符序列”svn export

svn:externals

如果出现在目录上,则这个值就是客户端必须要检出的多个路径和 URL 列表。参见第 9 节 “外部定义”

svn:special

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

svn:needs-lock

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

svn:mergeinfo

Used by Subversion to track merge data. See 第 3.4 节 “合并信息和预览” for details, but you should never edit this property unless you really know what you're doing.

10.2. 未版本控制的属性

These are the unversioned properties that Subversion reserves for its own use:

svn:author

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

svn:autoversioned

如果出现,则此版本是通过自动版本化特性创建,。参见 第 2 节 “自动版本化”

svn:date

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

svn:log

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

svn:sync-currently-copying

Contains the revision number from the source repository which is currently being mirrored to this one by the svnsync tool. (This property is only relevant when it appears on revision 0.)

svn:sync-from-uuid

Contains the UUID of the repository of which this repository has been initialized as a mirror by the svnsync tool. (This property is only relevant when it appears on revision 0.)

svn:sync-from-url

Contains the URL of the repository directory of which this repository has been initialized as a mirror by the svnsync tool. (This property is only relevant when it appears on revision 0.)

svn:sync-last-merged-rev

Contains the revision of the source repository which was most recently and successfully mirrored to this one. (This property is only relevant when it appears on revision 0.)

svn:sync-lock

Used to temporarily enforce mutually exclusive access to the repository by svnsync mirroring operations. This property is generally only observed when such an operation is active—or when an svnsync command failed to cleanly disconnect from the repository. (This property is only relevant when it appears on revision 0.)



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