diff rhodecode/controllers/changelog.py @ 1864:baef43bc457c beta

revert default to 20, for large repositories it's better to go less and have it faster. This is still saved in user session so everyone can set high number and have it saved while logged in.
author Marcin Kuzminski <marcin@python-works.com>
date Mon, 09 Jan 2012 03:45:21 +0200
parents c4ff52b0d112
children 0614862a20ec
line wrap: on
line diff
--- a/rhodecode/controllers/changelog.py	Sun Jan 08 12:34:09 2012 +0200
+++ b/rhodecode/controllers/changelog.py	Mon Jan 09 03:45:21 2012 +0200
@@ -37,8 +37,7 @@
 from rhodecode.lib.helpers import RepoPage
 from rhodecode.lib.compat import json
 
-from vcs.exceptions import RepositoryError, ChangesetError, \
-ChangesetDoesNotExistError,BranchDoesNotExistError
+from vcs.exceptions import RepositoryError, ChangesetDoesNotExistError
 
 log = logging.getLogger(__name__)
 
@@ -54,7 +53,7 @@
 
     def index(self):
         limit = 100
-        default = 40
+        default = 20
         if request.params.get('size'):
             try:
                 int_size = int(request.params.get('size'))