##// END OF EJS Templates
Code cleanup....
Jean-Philippe Lang -
r9625:888d2841367a
parent child
Show More
@@ -40,7 +40,12 class Repository::Subversion < Repository
40 40
41 41 def latest_changesets(path, rev, limit=10)
42 42 revisions = scm.revisions(path, rev, nil, :limit => limit)
43 revisions ? changesets.find_all_by_revision(revisions.collect(&:identifier), :order => "committed_on DESC", :include => :user) : []
43 if revisions
44 identifiers = revisions.collect(&:identifier).compact
45 changesets.where(:revision => identifiers).reorder("committed_on DESC").includes(:repository, :user).all
46 else
47 []
48 end
44 49 end
45 50
46 51 # Returns a path relative to the url of the repository
General Comments 0
You need to be logged in to leave comments. Login now