开发者

Commit only property changes on root of repo, not files

开发者 https://www.devze.com 2022-12-19 08:21 出处:网络
I have an SVN repository with uncommitted changes to files. There is also a change in the svn:externals property on the root folder.

I have an SVN repository with uncommitted changes to files. There is also a change in the svn:externals property on the root folder.

How do I commit the property changes, WITHOUT committi开发者_如何转开发ng the changes to the files themselves?


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:

$svn commit --depth empty . -m "Modify svn externals definition only."


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

0

精彩评论

暂无评论...
验证码 换一张
取 消