incubator-allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From john...@apache.org
Subject [1/2] git commit: [#5685] Removed commit count because it can be very slow
Date Tue, 12 Feb 2013 22:21:01 GMT
[#5685] Removed commit count because it can be very slow

Signed-off-by: Cory Johns <johnsca@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 <johnsca@geek.net>
Authored: Tue Feb 12 21:16:35 2013 +0000
Committer: Cory Johns <johnsca@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>


Mime
View raw message