##// END OF EJS Templates
Merged r4712 from trunk....
Toshi MARUYAMA -
r4595:96c4dc3f1e4e
parent child
Show More
@@ -94,7 +94,7 class Repository < ActiveRecord::Base
94
94
95 # Finds and returns a revision with a number or the beginning of a hash
95 # Finds and returns a revision with a number or the beginning of a hash
96 def find_changeset_by_name(name)
96 def find_changeset_by_name(name)
97 return nil if name.nil? || name.empty?
97 return nil if name.blank?
98 changesets.find(:first, :conditions => (name.match(/^\d*$/) ? ["revision = ?", name.to_s] : ["revision LIKE ?", name + '%']))
98 changesets.find(:first, :conditions => (name.match(/^\d*$/) ? ["revision = ?", name.to_s] : ["revision LIKE ?", name + '%']))
99 end
99 end
100
100
General Comments 0
You need to be logged in to leave comments. Login now