86

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?

2 Answers 2

135

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."
Sign up to request clarification or add additional context in comments.

Comments

2

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

2 Comments

Yes, but that doesn't explain what to do when you forget to add the commit message, and you have a property change hanging out in the middle of a large number of file changes.
Isn't this a property on the revision? Instead of in the directory? Also, it depends on having a pre-revprop-change hook

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.