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.
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
svn add something --force
will solve the error E200009. In your case, svn add *.xml --force
will solve your problem
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With