我有一个 SVN 存储库,其中包含未提交的文件更改。根文件夹上的 svn: foreign als 属性也发生了变化。
如何提交属性更改,而不提交对文件本身的更改?
If you only want to change the property you can do it against the repository right away, instead of against your working copy.
For example:
svn propset svn:externals "test http://yourhost.com/svn/trunk/module/test/src" --revprop -r HEAD http://yourhost.com/svn/trunk/module
See the SVN book on manipulating properties
In order to commit only the explicit paths specified on the command line use the --depth empty option e.g. in the directory with the newly modified externals property:
--depth empty
$svn commit --depth empty . -m "Modify svn externals definition only."