名称

svn propedit — Edit the property of one or more items under version control. See svn propset later in this chapter.

概要

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

描述

Edit one or more properties using your favorite editor. The first form edits versioned properties in your working copy, and the second edits unversioned remote properties on a repository revision (TARGET determines only which repository to access).

别名

pedit, pe

改变

工作副本;对URL操作时是版本库

访问版本库

只有在对URl操作时会

选项

--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 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'