@@ -40,7 +40,12 class Repository::Subversion < Repository | |||||
40 |
|
40 | |||
41 | def latest_changesets(path, rev, limit=10) |
|
41 | def latest_changesets(path, rev, limit=10) | |
42 | revisions = scm.revisions(path, rev, nil, :limit => limit) |
|
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 | end |
|
49 | end | |
45 |
|
50 | |||
46 | # Returns a path relative to the url of the repository |
|
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