Commit only property changes on root of repo, not files

SvnVersion Control

Svn Problem Overview


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 committing the changes to the files themselves?

Svn Solutions


Solution 1 - Svn

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."

Solution 2 - Svn

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

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionThomas RView Question on Stackoverflow
Solution 1 - SvnTheJuiceView Answer on Stackoverflow
Solution 2 - SvnDJ.View Answer on Stackoverflow