Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

svn 1.7 error E200009 Could not add all targets because some targets are already versioned

Tags:

svn

I did a clean checkout of a repository then every day I have an hudson job that runs a script to backup the configuration. Part of the script is to add *.xml

$ svn add *.xml
svn: warning: W150002: '/data/hudson/config.xml' is already under version control
svn: E200009: Could not add all targets because some targets are already versioned
svn: E200009: Illegal target for the requested operation

The warning is fine because some of the xml files are already under version control but I don't understand why I get the E200009 error. If there is nothing to add, there should be no error.

like image 649
Sydney Avatar asked Mar 25 '13 16:03

Sydney


2 Answers

Seems like the correct behaviour for SVN 1.7. An alternative is to add only unversioned files:

svn st *.xml | grep ? | tr -s ' ' | cut -d ' ' -f 2 | xargs svn add

However it's possible you have nothing to add, so you will get

svn: E205001: Try 'svn help' for more info
svn: E205001: Not enough arguments provided

Related question: Add all unversioned files to Subversion using one Linux command

like image 60
Sydney Avatar answered Sep 17 '22 07:09

Sydney


svn add something --force will solve the error E200009. In your case, svn add *.xml --force will solve your problem

like image 45
Spider Avatar answered Sep 18 '22 07:09

Spider