tags:

views:

611

answers:

3

Is there a way to recursively add all "non added" files to SVN?

I want to do something like:

svn add trunk/

to add all new files, without getting:

svn: warning: 'trunk' is already under version control

If this is not possible, is there a way to get a list of all files that are not under version control in the directory?

Note that I am only interested in using the command line.

Thanks.

+5  A: 

Use the --force option.

Example:

svn add * --force
Jonas Kongslund
A: 

If the first column of the output from the svn status command is a question mark, then that file is not under version control. See this page on the svn status command for more information.

Glenn
+1  A: 

svn status | awk '/\?/ {print $2}' | xargs svn add

dj_segfault