Snippets: SVN Delete Missing

September 01, 2007 @ 09:39 AM | posted by carmelyne

(last updated: 09.01.07)

Automatically remove files missing from subversion


svn status | grep '\!' | awk '{print $2;}' | xargs svn rm 

[ Last updated: September 01, 2007 @ 09:41 AM ]


1 Response to...
“Snippets: SVN Delete Missing”

  1. John Smith:

    Fantastic!!!!!!!!

    Why doesn't subversion have something like this build in, muppets!



    Posted:

Sorry, comments are closed for this article.

Snippets of 06/24/07

Rails 'A'..'Z' Paginate

1
2
3
4
5
6
7
8
9
10
11
# Starts with 'A'..'Z' Paginate / model
def self.sort(sort)
  if sort
    find(:all, :conditions => ['name LIKE ?', "#{sort}%"])
  else
    find(:all, :order => 'name')
  end  
end

# index action / controller
@models = Model.sort(params[:sort]) 
RailsConf 2006
I heart devChix