本手册是针对 Subversion 1.4 版本编写的。如果您使用的是更新版本的 Subversion,我们强烈建议您访问 https://svnbook.subversion.org.cn/,并查阅适合您的 Subversion 版本的手册。

名称

svn propedit — 编辑版本控制下的一项或多项的属性。

语法

svn propedit PROPNAME PATH...
svn propedit PROPNAME --revprop -r REV [TARGET]

描述

使用您喜欢的编辑器编辑一个或多个属性。第一种形式编辑工作副本中的版本化属性,而第二种形式编辑存储库修订版中的未版本化远程属性 (TARGET 仅决定访问哪个存储库)。

别名

pedit, pe

变更

工作副本,仅在操作 URL 时操作存储库

访问存储库

仅在操作 URL 时

选项

--revision (-r) REV
--revprop
--username USER
--password PASS
--no-auth-cache
--non-interactive
--encoding ENC
--editor-cmd EDITOR
--config-dir DIR

示例

svn propedit 使修改具有多个值的属性变得容易

$ svn propedit svn:keywords  foo.c 
    <svn will launch your favorite editor here, with a buffer open
    containing the current contents of the svn:keywords property.  You
    can add multiple values to a property easily here by entering one
    value per line.>
Set new value for property 'svn:keywords' on 'foo.c'