Show More
@@ -90,9 +90,13 b' class ChangelogController(BaseRepoContro' | |||
|
90 | 90 | |
|
91 | 91 | revcount = min(repo_size, size) |
|
92 | 92 | offset = 1 if p == 1 else ((p - 1) * revcount + 1) |
|
93 | rev_start = repo.revisions.index(repo.revisions[(-1 * offset)]) | |
|
93 | try: | |
|
94 | rev_start = repo.revisions.index(repo.revisions[(-1 * offset)]) | |
|
95 | except IndexError: | |
|
96 | rev_start = repo.revisions.index(repo.revisions[-1]) | |
|
94 | 97 | rev_end = max(0, rev_start - revcount) |
|
95 | 98 | |
|
99 | ||
|
96 | 100 | data = [] |
|
97 | 101 | if repo.alias == 'git': |
|
98 | 102 | for _ in xrange(rev_end, rev_start): |
General Comments 0
You need to be logged in to leave comments.
Login now