Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Commit only property changes on root of repo, not files

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?

like image 649
Thomas R Avatar asked Feb 08 '10 20:02

Thomas R


People also ask

How do I commit changes to svn repository?

Select any file and/or folders you want to commit, then TortoiseSVN → Commit.... The commit dialog will show you every changed file, including added, deleted and unversioned files. If you don't want a changed file to be committed, just uncheck that file.

How do I commit properties in 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 .

What is difference between commit and update in svn?

Commit uploads your changes on the CVS / SVN server, and Update overwrites the files on your localhost with the ones on the server.


2 Answers

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." 
like image 148
TheJuice Avatar answered Nov 09 '22 20:11

TheJuice


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

like image 26
DJ. Avatar answered Nov 09 '22 19:11

DJ.