Mercurial > hg > soundsoftware-site
diff app/controllers/repositories_controller.rb @ 507:0c939c159af4 redmine-1.2
Update to Redmine 1.2.1 on 1.2-stable branch (Redmine SVN rev 6270)
author | Chris Cannam |
---|---|
date | Thu, 14 Jul 2011 10:32:19 +0100 |
parents | cbce1fd3b1b7 |
children | 851510f1b535 cbb26bc654de |
line wrap: on
line diff
--- a/app/controllers/repositories_controller.rb Mon Jun 06 14:24:13 2011 +0100 +++ b/app/controllers/repositories_controller.rb Thu Jul 14 10:32:19 2011 +0100 @@ -30,7 +30,7 @@ before_filter :find_repository, :except => :edit before_filter :find_project, :only => :edit before_filter :authorize - accept_key_auth :revisions + accept_rss_auth :revisions rescue_from Redmine::Scm::Adapters::CommandFailed, :with => :show_error_command_failed @@ -208,7 +208,7 @@ User.current.preference.save end @cache_key = "repositories/diff/#{@repository.id}/" + - Digest::MD5.hexdigest("#{@path}-#{@rev}-#{@rev_to}-#{@diff_type}") + Digest::MD5.hexdigest("#{@path}-#{@rev}-#{@rev_to}-#{@diff_type}-#{current_language}") unless read_fragment(@cache_key) @diff = @repository.diff(@path, @rev, @rev_to) show_error_not_found unless @diff