##// END OF EJS Templates
Changesets stored in the database are now displayed on the repository page even if the repository can not be reached (eg. svnserve down)....
Jean-Philippe Lang -
r576:7eba6786d320
parent child
Show More
@@ -29,10 +29,10 class RepositoriesController < ApplicationController
29 # check if new revisions have been committed in the repository
29 # check if new revisions have been committed in the repository
30 @repository.fetch_changesets if Setting.autofetch_changesets?
30 @repository.fetch_changesets if Setting.autofetch_changesets?
31 # get entries for the browse frame
31 # get entries for the browse frame
32 @entries = @repository.entries('')
32 @entries = @repository.entries('')
33 show_error and return unless @entries
34 # latest changesets
33 # latest changesets
35 @changesets = @repository.changesets.find(:all, :limit => 10, :order => "committed_on DESC")
34 @changesets = @repository.changesets.find(:all, :limit => 10, :order => "committed_on DESC")
35 show_error and return unless @entries || @changesets.any?
36 end
36 end
37
37
38 def browse
38 def browse
General Comments 0
You need to be logged in to leave comments. Login now