tags:

views:

259

answers:

3

I would like to export my code from the working svn copy while including all unversioned files. For example, there are uploaded images/config files etc, that I would like included in the export.

How can I achieve this?

A: 

In TortoiseSVN (windows SVN client) you do an "SVN export all", but the "unix" tag tells me that this doesn't apply to you.

cherouvim
You're write, i'm using the svn export command on a unix machine...
1nsane
+1  A: 

I don't know if there's a built in command for that. You could write a script that interprets the output of svn st which will output unversioned files ? marked/with/a/question/mark.config

Bart van Heukelom
Not a bad idea, but one would think there would be a simpler route?
1nsane
+2  A: 

What do you mean by "export"? You can just use cp -r to copy the directory tree directly, and then remove the .svn directories afterwards: find . -name .svn -type d -exec rm -r '{}' \;

Ether
svn sticks .svn files in each directory that contain version info, I want a clean copy of the directory tree... unless cp -r will ignore those .hidden files? hmm i will try
1nsane
I updated my answer to show how to delete the .svn dirs in your copy.
Ether
I ended up just doing a tar -zcvf app.nov27.tar.gz --exclude=.svn app. Your solution would work but I didn't want to remove the original versioning info. Thanks for the tip, though!
1nsane
After re-reading your post, I realized that you mentioned "afterwards" - my bad
1nsane
Yep, tar would work too, or rsync.
Ether