本文档旨在描述 Subversion 的 1.6.x 系列。如果您运行的是其他版本的 Subversion,强烈建议您访问 https://svnbook.subversion.org.cn/ 并参考适用于您 Subversion 版本的文档。

名称

svn propedit (pedit, pe) — 编辑版本控制下的一项或多项的属性。有关更多信息,请参阅本章后面的 svn propset (pset, ps)

语法

svn propedit PROPNAME TARGET...

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

描述

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

选项

--editor-cmd CMD
--encoding ENC
--file (-F) FILENAME
--force
--force-log
--message (-m) MESSAGE
--revision (-r) REV
--revprop
--with-revprop ARG

示例

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

$ svn propedit svn:keywords foo.c 

    # svn will open in your favorite text editor a temporary file
    # 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.  When you save the temporary file and exit,
    # Subversion will re-read the temporary file and use its updated
    # contents as the new value of the property.

Set new value for property 'svn:keywords' on 'foo.c'
$