##// 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:

r7890:c3c2a4afe008
r9024:999a4ba30d7b
Show More
show.html.erb
34 lines | 1.4 KiB | text/plain | TextLexer
Jean-Philippe Lang
added svn:eol-style native property on /app files...
r330 <div class="contextual">
Jean-Philippe Lang
Resourcified documents....
r7890 <% if User.current.allowed_to?(:manage_documents, @project) %>
<%= link_to l(:button_edit), edit_document_path(@document), :class => 'icon icon-edit', :accesskey => accesskey(:edit) %>
<%= link_to l(:button_delete), document_path(@document), :confirm => l(:text_are_you_sure), :method => :delete, :class => 'icon icon-del' %>
<% end %>
Jean-Philippe Lang
added svn:eol-style native property on /app files...
r330 </div>
Jean-Philippe Lang
More detailed html title on several views....
r951 <h2><%=h @document.title %></h2>
Jean-Philippe Lang
added svn:eol-style native property on /app files...
r330
Jean-Philippe Lang
More detailed html title on several views....
r951 <p><em><%=h @document.category.name %><br />
Jean-Philippe Lang
added svn:eol-style native property on /app files...
r330 <%= format_date @document.created_on %></em></p>
Jean-Philippe Lang
Fixed: table of content not rendered properly when used in an issue or document description....
r1022 <div class="wiki">
Jean-Philippe Lang
Attachments can be displayed inline in Documents...
r549 <%= textilizable @document.description, :attachments => @document.attachments %>
Jean-Philippe Lang
Fixed: table of content not rendered properly when used in an issue or document description....
r1022 </div>
Jean-Philippe Lang
added svn:eol-style native property on /app files...
r330
<h3><%= l(:label_attachment_plural) %></h3>
Jean-Philippe Lang
AttachmentsController now handles attachments deletion....
r2114 <%= link_to_attachments @document %>
Jean-Philippe Lang
added svn:eol-style native property on /app files...
r330
<% if authorize_for('documents', 'add_attachment') %>
Jean-Philippe Lang
Adds an optional description to attachments....
r1166 <p><%= link_to l(:label_attachment_new), {}, :onclick => "Element.show('add_attachment_form'); Element.hide(this); Element.scrollTo('add_attachment_form'); return false;",
:id => 'attach_files_link' %></p>
<% form_tag({ :controller => 'documents', :action => 'add_attachment', :id => @document }, :multipart => true, :id => "add_attachment_form", :style => "display:none;") do %>
<div class="box">
<p><%= render :partial => 'attachments/form' %></p>
</div>
Jean-Philippe Lang
added svn:eol-style native property on /app files...
r330 <%= submit_tag l(:button_add) %>
Toshi MARUYAMA
remove trailing white-spaces from app/views/documents/show.html.erb...
r7142 <% end %>
Jean-Philippe Lang
Initial commit...
r2 <% end %>
Jean-Philippe Lang
More detailed html title on several views....
r951
Etienne Massip
Remove unecessary page title HTML escaping from views (#9252)....
r7445 <% html_title @document.title -%>
Jean-Philippe Lang
Fixed: code syntax highlighting not working in Document page (#3740)....
r3489
<% content_for :header_tags do %>
<%= stylesheet_link_tag 'scm' %>
<% end %>