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?
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?
I'm on TortoiseSVN so I'm not that familiar with svn's command line. The manual is silent on the issue, the only thing that's there is the --non-recursive option. So what would make sense is this:
Note: I don't know whether this works the required way. Be careful.
svn commit /path/to/repo --non-recursive
it's possible that this commits files directly in the root directory as well - non-recursive
can be interpreted both ways. Maybe you can find out.
If you can use TortoiseSVN, you just uncheck all unwanted items from the commit list.
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
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."