名称

svn propedit — 修改一个或多个版本控制之下文件的属性。

概要

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

描述

使用喜欢的编辑器编辑一个或多个属性,第一种形式是在工作拷贝编辑版本化的属性,第二种形式是远程编辑未版本化的版本库修订版本属性(TARGET只是用来确定访问哪个版本库)。

别名

pedit, pe

改变

只有在对URL操作时会 2

是否访问版本库

只有在对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'