RSS
 

Archive for September 15th, 2009

Recursively add new files to svn repository

15 Sep

It very hard to add newly created files one-by-one to the repository specially if you don’t know exactly what you added.
This terminal combination of command allow the recursive new files adding .

 svn status | grep "^\?" | sed -e 's/? *//' | sed -e 's/ /\\ /g' | xargs svn add
 
No Comments

Posted in Ubuntu

 

Recursively removing .svn folders

15 Sep

Some time I would like to unversion a working copy of my subversion project. I know there is a way to get it from svn commands but this how bash or terminal do it:
This a handy script to delete all .svn hidden directories

#!/bin/sh
echo "recursively removing .svn folders from"
pwd
rm -rf `find . -type d -name .svn`
 
No Comments

Posted in Ubuntu