Show More
@@ -154,7 +154,7 b' class ReposController(BaseController):' | |||
|
154 | 154 | last_rev = 0 |
|
155 | 155 | c.stats_revision = last_rev |
|
156 | 156 | repo, dbrepo = ScmModel().get(repo_name, retval='repo') |
|
157 |
c.repo_last_rev = repo. |
|
|
157 | c.repo_last_rev = repo.count() if repo.revisions else 0 | |
|
158 | 158 | |
|
159 | 159 | if last_rev == 0: |
|
160 | 160 | c.stats_percentage = 0 |
@@ -302,7 +302,7 b' class ReposController(BaseController):' | |||
|
302 | 302 | last_rev = 0 |
|
303 | 303 | c.stats_revision = last_rev |
|
304 | 304 | |
|
305 |
c.repo_last_rev = repo. |
|
|
305 | c.repo_last_rev = repo.count() if repo.revisions else 0 | |
|
306 | 306 | |
|
307 | 307 | if last_rev == 0 or c.repo_last_rev == 0: |
|
308 | 308 | c.stats_percentage = 0 |
@@ -71,8 +71,7 b' class ChangesetController(BaseRepoContro' | |||
|
71 | 71 | if len(rev_range) == 2: |
|
72 | 72 | rev_start = rev_range[0] |
|
73 | 73 | rev_end = rev_range[1] |
|
74 |
rev_ranges = c.rhodecode_repo |
|
|
75 | range_limit) | |
|
74 | rev_ranges = list(c.rhodecode_repo[rev_start:rev_end]) | |
|
76 | 75 | else: |
|
77 | 76 | rev_ranges = [c.rhodecode_repo.get_changeset(revision)] |
|
78 | 77 |
@@ -117,7 +117,7 b' class SummaryController(BaseRepoControll' | |||
|
117 | 117 | c.no_data_msg = _('No data loaded yet') |
|
118 | 118 | run_task(get_commits_stats, c.repo.name, ts_min_y, ts_max_y) |
|
119 | 119 | else: |
|
120 |
c.no_data_msg = _('Statistics |
|
|
120 | c.no_data_msg = _('Statistics are disabled for this repository') | |
|
121 | 121 | c.ts_min = ts_min_m |
|
122 | 122 | c.ts_max = ts_max_y |
|
123 | 123 |
@@ -33,13 +33,15 b' import logging' | |||
|
33 | 33 | |
|
34 | 34 | from hashlib import md5 |
|
35 | 35 | from decorator import decorator |
|
36 | from pylons import config | |
|
37 | ||
|
36 | 38 | from vcs.utils.lazy import LazyProperty |
|
37 | 39 | |
|
38 | 40 | from rhodecode.lib import str2bool |
|
39 | 41 | from rhodecode.lib.pidlock import DaemonLock, LockHeld |
|
40 | 42 | |
|
41 | 43 | from celery.messaging import establish_connection |
|
42 | from pylons import config | |
|
44 | ||
|
43 | 45 | |
|
44 | 46 | log = logging.getLogger(__name__) |
|
45 | 47 |
General Comments 0
You need to be logged in to leave comments.
Login now