"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "app/controllers/repositories_controller.rb" between
redmine-4.0.3.tar.gz and redmine-4.0.4.tar.gz

About: Redmine is a flexible project management and bug-tracking web application (using the Ruby on Rails framework). It supports also project wikis and forums, documents management, and multiple version control systems.

repositories_controller.rb  (redmine-4.0.3):repositories_controller.rb  (redmine-4.0.4)
skipping to change at line 258 skipping to change at line 258
# Save diff type as user preference # Save diff type as user preference
if User.current.logged? && @diff_type != User.current.pref[:diff_type] if User.current.logged? && @diff_type != User.current.pref[:diff_type]
User.current.pref[:diff_type] = @diff_type User.current.pref[:diff_type] = @diff_type
User.current.preference.save User.current.preference.save
end end
@cache_key = "repositories/diff/#{@repository.id}/" + @cache_key = "repositories/diff/#{@repository.id}/" +
Digest::MD5.hexdigest("#{@path}-#{@rev}-#{@rev_to}-#{@diff _type}-#{current_language}") Digest::MD5.hexdigest("#{@path}-#{@rev}-#{@rev_to}-#{@diff _type}-#{current_language}")
unless read_fragment(@cache_key) unless read_fragment(@cache_key)
@diff = @repository.diff(@path, @rev, @rev_to) @diff = @repository.diff(@path, @rev, @rev_to)
show_error_not_found unless @diff (show_error_not_found; return) unless @diff
end end
@changeset = @repository.find_changeset_by_name(@rev) @changeset = @repository.find_changeset_by_name(@rev)
@changeset_to = @rev_to ? @repository.find_changeset_by_name(@rev_to) : ni l @changeset_to = @rev_to ? @repository.find_changeset_by_name(@rev_to) : ni l
@diff_format_revisions = @repository.diff_format_revisions(@changeset, @ch angeset_to) @diff_format_revisions = @repository.diff_format_revisions(@changeset, @ch angeset_to)
render :diff, :formats => :html
end end
end end
def stats def stats
end end
# Returns JSON data for repository graphs # Returns JSON data for repository graphs
def graph def graph
data = nil data = nil
case params[:graph] case params[:graph]
 End of changes. 2 change blocks. 
1 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)