Show More
@@ -71,12 +71,12 b' class ChangelogController(BaseRepoContro' | |||
|
71 | 71 | c.pagination = RepoPage(c.rhodecode_repo, page=p, item_count=c.total_cs, |
|
72 | 72 | items_per_page=c.size, branch_name=branch_name) |
|
73 | 73 | |
|
74 | self._graph(c.rhodecode_repo, c.size, p) | |
|
74 | self._graph(c.rhodecode_repo, c.total_cs, c.size, p) | |
|
75 | 75 | |
|
76 | 76 | return render('changelog/changelog.html') |
|
77 | 77 | |
|
78 | 78 | |
|
79 | def _graph(self, repo, size, p): | |
|
79 | def _graph(self, repo, repo_size, size, p): | |
|
80 | 80 | """ |
|
81 | 81 | Generates a DAG graph for mercurial |
|
82 | 82 | |
@@ -88,7 +88,7 b' class ChangelogController(BaseRepoContro' | |||
|
88 | 88 | c.jsdata = json.dumps([]) |
|
89 | 89 | return |
|
90 | 90 | |
|
91 |
revcount = min(repo |
|
|
91 | revcount = min(repo_size, size) | |
|
92 | 92 | offset = 1 if p == 1 else ((p - 1) * revcount + 1) |
|
93 | 93 | rev_start = repo.revisions.index(repo.revisions[(-1 * offset)]) |
|
94 | 94 | rev_end = max(0, rev_start - revcount) |
General Comments 0
You need to be logged in to leave comments.
Login now