RE: RedMine and Sql Server 2005 » OrderbyPatch1709.patch
| app/controllers/projects_controller.rb (working copy) | ||
|---|---|---|
|
|
||
|
# Show changelog for @project
|
||
|
def changelog
|
||
|
@trackers = @project.trackers.find(:all, :conditions => ["is_in_chlog=?", true], :order => 'position')
|
||
|
@trackers = @project.trackers.find(:all, :conditions => ["is_in_chlog=?", true])
|
||
|
retrieve_selected_tracker_ids(@trackers)
|
||
|
@versions = @project.versions.sort
|
||
|
end
|
||
| app/controllers/repositories_controller.rb (working copy) | ||
|---|---|---|
|
# root entries
|
||
|
@entries = @repository.entries('', @rev)
|
||
|
# latest changesets
|
||
|
@changesets = @repository.changesets.find(:all, :limit => 10, :order => "committed_on DESC")
|
||
|
@changesets = @repository.changesets.find(:all, :limit => 10)
|
||
|
show_error_not_found unless @entries || @changesets.any?
|
||
|
end
|
||
|
|
||
| app/models/repository/subversion.rb (working copy) | ||
|---|---|---|
|
def changesets_for_path(path)
|
||
|
revisions = scm.revisions(path)
|
||
|
revisions ? changesets.find_all_by_revision(revisions.collect(&:identifier), :order => "committed_on DESC") : []
|
||
|
revisions ? changesets.find_all_by_revision(revisions.collect(&:identifier)) : []
|
||
|
end
|
||
|
|
||
|
# Returns a path relative to the url of the repository
|
||