##// END OF EJS Templates
scm: git: performance improvements in fetching revisions (#8857, #9472)...
scm: git: performance improvements in fetching revisions (#8857, #9472) Parse a revision for a given branch, just if we haven't parsed it for any branches before. Moved the db check to for existing revisions into a grouped search. Search for many revisions at once: this reduces db load. Revisions are grouped into sets of 100. This is to improve memory consumption. There will be just one query instead of each 100. The above two methods significantly increase parsing speed. Test case was a git repo with 6000+ commits on a master branch, and several other branches originating for master. Speed improved from 1.4h to 18min. Contributed by Gergely Fábián. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9144 e93f8b46-1217-0410-a6f0-8f06a7374b81

File last commit:

r8545:346fccf782c8
r9024:999a4ba30d7b
Show More
show.html.erb
76 lines | 2.7 KiB | text/plain | TextLexer
Eric Davis
Added hook :view_repositories_show_contextual to allow adding items to the...
r1946 <%= call_hook(:view_repositories_show_contextual, { :repository => @repository, :project => @project }) %>
Jean-Philippe Lang
Adds a field on the repository view to browse at specific revision (#1443)....
r1540
Eric Davis
Added branch and tag support to the git repository viewer. (#1406)...
r2735 <div class="contextual">
<%= render :partial => 'navigation' %>
Jean-Philippe Lang
added simple svn statistics graphs, rendered using SVG::Graph...
r377 </div>
Eric Davis
Added branch and tag support to the git repository viewer. (#1406)...
r2735 <h2><%= render :partial => 'breadcrumbs', :locals => { :path => @path, :kind => 'dir', :revision => @rev } %></h2>
Jean-Philippe Lang
svn browser merged in trunk...
r103
Jean-Philippe Lang
Merged 0.6 branch into trunk....
r663 <% if !@entries.nil? && authorize_for('repositories', 'browse') %>
Jean-Philippe Lang
XHTML compliance improvements...
r147 <%= render :partial => 'dir_list' %>
Jean-Philippe Lang
Added basic support for CVS and Mercurial SCMs....
r556 <% end %>
Jean-Philippe Lang
XHTML compliance improvements...
r147
Jean-Philippe Lang
SCM browser:...
r2738 <%= render_properties(@properties) %>
Toshi MARUYAMA
scm: code clean up repositories/show.rhtml....
r5018 <% if authorize_for('repositories', 'revisions') %>
<% if @changesets && !@changesets.empty? %>
Jean-Philippe Lang
SVN commits are now stored in the database, and added to the activity view and the search engine....
r374 <h3><%= l(:label_latest_revision_plural) %></h3>
Toshi MARUYAMA
scm: code clean up repositories/show.rhtml....
r5018 <%= render :partial => 'revisions',
:locals => {:project => @project, :path => @path,
:revisions => @changesets, :entry => nil }%>
Toshi MARUYAMA
scm: switch showing link all revisions and directory revisions if scm supports these feature or not....
r5025 <% end %>
Toshi MARUYAMA
scm: backout r5213. do not display both 'View all revisions' and 'View revision' links (#7984, #7246)....
r5098 <p>
Toshi MARUYAMA
scm: remove "View all revisions" in sub directory (#7984)....
r5103 <%
has_branches = (!@repository.branches.nil? && @repository.branches.length > 0)
sep = ''
%>
<% if @repository.supports_all_revisions? && @path.blank? %>
Jean-Philippe Lang
Adds support for multiple repositories per project (#779)....
r8530 <%= link_to l(:label_view_all_revisions), :action => 'revisions', :id => @project, :repository_id => @repository.identifier_param %>
Toshi MARUYAMA
scm: remove "View all revisions" in sub directory (#7984)....
r5103 <% sep = '|' %>
Toshi MARUYAMA
scm: backout r5213. do not display both 'View all revisions' and 'View revision' links (#7984, #7246)....
r5098 <% end %>
Toshi MARUYAMA
scm: do not display 'View revision' links in subversion if path or revision are nil (#7984)....
r5099 <%
if @repository.supports_directory_revisions? &&
( has_branches || !@path.blank? || !@rev.blank? )
%>
Toshi MARUYAMA
scm: remove "View all revisions" in sub directory (#7984)....
r5103 <%= sep %>
<%=
link_to l(:label_view_revisions),
Toshi MARUYAMA
scm: backout r5213. do not display both 'View all revisions' and 'View revision' links (#7984, #7246)....
r5098 :action => 'changes',
Toshi MARUYAMA
scm: add rev param to "View revisions" (#7984)....
r5102 :path => to_path_param(@path),
:id => @project,
Jean-Philippe Lang
Adds support for multiple repositories per project (#779)....
r8530 :repository_id => @repository.identifier_param,
Toshi MARUYAMA
scm: add rev param to "View revisions" (#7984)....
r5102 :rev => @rev
%>
Toshi MARUYAMA
scm: backout r5213. do not display both 'View all revisions' and 'View revision' links (#7984, #7246)....
r5098 <% end %>
</p>
Toshi MARUYAMA
scm: code clean up repositories/show.rhtml....
r5016
Jean-Philippe Lang
Do not show revisions links and field on filesystem repositories....
r8545 <% if @repository.supports_all_revisions? %>
Toshi MARUYAMA
scm: code clean up repositories/show.rhtml....
r5018 <% content_for :header_tags do %>
Toshi MARUYAMA
scm: code clean up repositories/show.rhtml....
r5016 <%= auto_discovery_link_tag(
:atom, params.merge(
{:format => 'atom', :action => 'revisions',
:id => @project, :page => nil, :key => User.current.rss_key})) %>
Toshi MARUYAMA
scm: code clean up repositories/show.rhtml....
r5018 <% end %>
Toshi MARUYAMA
scm: code clean up repositories/show.rhtml....
r5016
Toshi MARUYAMA
scm: code clean up repositories/show.rhtml....
r5018 <% other_formats_links do |f| %>
Jean-Philippe Lang
Adds support for multiple repositories per project (#779)....
r8530 <%= f.link_to 'Atom', :url => {:action => 'revisions', :id => @project, :repository_id => @repository.identifier_param, :key => User.current.rss_key} %>
Toshi MARUYAMA
scm: code clean up repositories/show.rhtml....
r5018 <% end %>
Toshi MARUYAMA
scm: code clean up repositories/show.rhtml....
r5016 <% end %>
Jean-Philippe Lang
SVN commits are now stored in the database, and added to the activity view and the search engine....
r374 <% end %>
Jean-Philippe Lang
Adds support for multiple repositories per project (#779)....
r8530 <% if @repositories.size > 1 %>
<% content_for :sidebar do %>
<h3><%= l(:label_repository_plural) %></h3>
<%= @repositories.sort.collect {|repo|
link_to h(repo.name),
{:controller => 'repositories', :action => 'show', :id => @project, :repository_id => repo.identifier_param, :rev => nil, :path => nil},
:class => 'repository' + (repo == @repository ? ' selected' : '')
}.join('<br />').html_safe %></p>
<% end %>
<% end %>
Jean-Philippe Lang
XHTML compliance improvements...
r147 <% content_for :header_tags do %>
<%= stylesheet_link_tag "scm" %>
Jean-Philippe Lang
Added basic support for CVS and Mercurial SCMs....
r556 <% end %>
Jean-Philippe Lang
More detailed html title on several views....
r951
Jean-Philippe Lang
Slight improvements to the browser views....
r1019 <% html_title(l(:label_repository)) -%>