Posts Tagged svn
Howto delete all .svn folders from SVN working directory
Posted by Alex Amiryan in Code, howtos on April 23rd, 2009
To delete all .svn folders from SVN working directory for releasing folder from SVN just do this simple steps.
Create new file in /usr/local/bin with name svnrm with following content
#!/bin/sh find . -name .svn -print0 | xargs -0 rm -rf
Save it. From now on you can execute svnrm command in your working directory and it will delete all .svn folders at once.
Have fun!
Howto recursively add unversioned files into SVN repository
Posted by Alex Amiryan in Code, howtos on April 22nd, 2009
Because svn add command does not support recursive addition of unversioned files you can use this little script to do it.
Create new file in /usr/local/bin with name svnadd with following content
#!/bin/sh
svn status | perl -ne 's/^\?\s+(\S.+)$/\1/g;chomp;system("svn add \"$_\"");'
Save it. From now on you can execute svnadd command in your working directory.


