##// END OF EJS Templates
Code cleanup....
Jean-Philippe Lang -
r9624:f673027bc17e
parent child
Show More
@@ -87,10 +87,10 class Repository::Git < Repository
87 end
87 end
88
88
89 def find_changeset_by_name(name)
89 def find_changeset_by_name(name)
90 return nil if name.nil? || name.empty?
90 if name.present?
91 e = changesets.find(:first, :conditions => ['revision = ?', name.to_s])
91 changesets.where(:revision => name.to_s).first ||
92 return e if e
92 changesets.where('scmid LIKE ?', "#{name}%").first
93 changesets.find(:first, :conditions => ['scmid LIKE ?', "#{name}%"])
93 end
94 end
94 end
95
95
96 def entries(path=nil, identifier=nil)
96 def entries(path=nil, identifier=nil)
General Comments 0
You need to be logged in to leave comments. Login now