task :add_all_to_svn do `svn status --show-updates`.each { |l| l = l.split system("svn add #{l.last}") if l.first == "?" # File is not under version control } end
Never been to CodeSnippets before?
Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world (or not, you can keep them private!)
Rake task that adds all unversioned files to the repository (See related posts)
Comments on this post
You need to create an account or log in to post comments to this site.
Related Posts
» Rake task to load fixtures i... in ruby rails rake fixtures
» Bulk svn actions (usefull wi... in ruby rails svn subversion
» Make a subversion release in ruby svn subversion release trunk repo repository
» update a working copy and al... in ruby shell svn subversion
» create a rails app from rail... in ruby rails shell svn bash subversion rubyonrails
» Recursively remove .svn dire... in ruby svn subversion
Snippets (source code soon to be available) developed by Peter Cooper and powered by Ruby On Rails
http://textsnippets.com/posts/show/45