changeset 1129:fe7fa9942015 beta

limited calculation of added/changed/removed files for large changesets, saving a lot of memory
author Marcin Kuzminski <marcin@python-works.com>
date Sun, 13 Mar 2011 11:34:57 +0100
parents 62a1d4155f6b
children 1cecc7db3106
files rhodecode/public/css/style.css rhodecode/templates/changelog/changelog.html
diffstat 2 files changed, 14 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/rhodecode/public/css/style.css	Sun Mar 13 01:22:29 2011 +0100
+++ b/rhodecode/public/css/style.css	Sun Mar 13 11:34:57 2011 +0100
@@ -1635,6 +1635,15 @@
 min-width:15px;
 cursor: help;
 }
+.right .changes .large {
+border:1px solid #DDD;
+display:block;
+float:right;
+text-align:center;
+min-width:45px;
+cursor: help;
+background: #54A9F7;
+}
 
 .right .changes .added {
 background:#BFB;
--- a/rhodecode/templates/changelog/changelog.html	Sun Mar 13 01:22:29 2011 +0100
+++ b/rhodecode/templates/changelog/changelog.html	Sun Mar 13 11:34:57 2011 +0100
@@ -61,10 +61,14 @@
 							<div class="message">${h.link_to(h.wrap_paragraphs(cs.message),h.url('changeset_home',repo_name=c.repo_name,revision=cs.raw_id))}</div>
 						</div>	
 						<div class="right">
-									<div class="changes">									
+									<div class="changes">
+									   % if len(cs.affected_files) <= 30:								
 										<span class="removed tooltip" title="<b>${_('removed')}</b>${h.changed_tooltip(cs.removed)}">${len(cs.removed)}</span>
 										<span class="changed tooltip" title="<b>${_('changed')}</b>${h.changed_tooltip(cs.changed)}">${len(cs.changed)}</span>
 										<span class="added tooltip" title="<b>${_('added')}</b>${h.changed_tooltip(cs.added)}">${len(cs.added)}</span>
+									   % else:
+									     <span class="large tooltip" title="${_('affected %s files') % len(cs.affected_files)}">${len(cs.affected_files)}</span>
+									   % endif
 									</div>					
 										%if len(cs.parents)>1:
 										<div class="merge">