You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by jo...@apache.org on 2013/02/12 23:21:01 UTC

[1/2] git commit: [#5685] Removed commit count because it can be very slow

[#5685] Removed commit count because it can be very slow

Signed-off-by: Cory Johns <jo...@geek.net>


Project: http://git-wip-us.apache.org/repos/asf/incubator-allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-allura/commit/eb83e24d
Tree: http://git-wip-us.apache.org/repos/asf/incubator-allura/tree/eb83e24d
Diff: http://git-wip-us.apache.org/repos/asf/incubator-allura/diff/eb83e24d

Branch: refs/heads/cj/5685
Commit: eb83e24d42fea6a97d217ac8f0804038b9d4d102
Parents: 4473bde
Author: Cory Johns <jo...@geek.net>
Authored: Tue Feb 12 21:16:35 2013 +0000
Committer: Cory Johns <jo...@geek.net>
Committed: Tue Feb 12 21:16:35 2013 +0000

----------------------------------------------------------------------
 Allura/allura/controllers/repository.py       |    2 --
 Allura/allura/templates/widgets/repo/log.html |    1 -
 2 files changed, 0 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/eb83e24d/Allura/allura/controllers/repository.py
----------------------------------------------------------------------
diff --git a/Allura/allura/controllers/repository.py b/Allura/allura/controllers/repository.py
index e4d0f72..304ba1e 100644
--- a/Allura/allura/controllers/repository.py
+++ b/Allura/allura/controllers/repository.py
@@ -433,7 +433,6 @@ class CommitBrowser(BaseController):
             path = path.lstrip('/')
         params = dict(path=path, rev=self._commit._id)
         commits = list(c.app.repo.commits(limit=limit, **params))
-        count = c.app.repo.commits_count(**params)
         revisions = M.repo.Commit.query.find({'_id': {'$in': commits}}).sort('committed.date', -1)
         c.log_widget = self.log_widget
         return dict(
@@ -441,7 +440,6 @@ class CommitBrowser(BaseController):
             branch=None,
             log=revisions,
             limit=limit,
-            count=count,
             **kw)
 
 

http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/eb83e24d/Allura/allura/templates/widgets/repo/log.html
----------------------------------------------------------------------
diff --git a/Allura/allura/templates/widgets/repo/log.html b/Allura/allura/templates/widgets/repo/log.html
index 8a3bf6b..c3e024f 100644
--- a/Allura/allura/templates/widgets/repo/log.html
+++ b/Allura/allura/templates/widgets/repo/log.html
@@ -41,6 +41,5 @@
   </table>
   {% if show_paging %}
       <a class="page_list" href="{{c.last_commit.url()}}log{{tg.url(params=request.params)}}">Older ></a>
-      {{widget.fields['page_size'].display(limit=limit, page=page, count=count)}}
   {% endif %}
 </div>