вторник, 16 февраля 2010 г.

Copying folder structure without .svn files

Sometimes i need to get a working copy of my project without .svn files added automatically by Subversion.

I have now 3 ways to do this:

The first way is just to use the Export functionality of the Subversion itself.

The second way is to use Total commander and its tool "Synchronize directories" which allows to compare folders and make them identical. In the top area of the "Synchronize directories" window there is a field to insert a filter like *.php which says that we want to compare only php files.

To solve our task we need to use the following filter:
*.*|*.svn-base all-wcprops entries format dir-prop-base

And the third way is a Bash command like this:
find ! -path "*_svn*" -exec cp --parents {} "../withoutsvn/" \;

Thank you for your attention and i hope this post was a bit helpful for you.

1 комментарий: