Show More
@@ -35,6 +35,7 b' from tg import tmpl_context as c' | |||
|
35 | 35 | from tg.i18n import ugettext as _ |
|
36 | 36 | from webob.exc import HTTPBadRequest, HTTPForbidden, HTTPFound, HTTPNotFound |
|
37 | 37 | |
|
38 | import kallithea | |
|
38 | 39 | import kallithea.lib.helpers as h |
|
39 | 40 | from kallithea.controllers import base |
|
40 | 41 | from kallithea.controllers.changeset import create_cs_pr_comment, delete_cs_pr_comment |
@@ -494,6 +495,8 b' class PullrequestsController(base.BaseRe' | |||
|
494 | 495 | except IndexError: # probably because c.cs_ranges is empty, probably because revisions are missing |
|
495 | 496 | pass |
|
496 | 497 | |
|
498 | rev_limit = safe_int(kallithea.CONFIG.get('next_iteration_rev_limit'), 0) | |
|
499 | ||
|
497 | 500 | avail_revs = set() |
|
498 | 501 | avail_show = [] |
|
499 | 502 | c.cs_branch_name = c.cs_ref_name |
@@ -563,6 +566,11 b' class PullrequestsController(base.BaseRe' | |||
|
563 | 566 | except ChangesetDoesNotExistError: |
|
564 | 567 | c.update_msg = _('Error: some changesets not found when displaying pull request from %s.') % c.cs_rev |
|
565 | 568 | |
|
569 | if rev_limit: | |
|
570 | if len(avail_revs) - 1 > rev_limit: | |
|
571 | c.update_msg = _('%d additional changesets are not shown.') % (len(avail_revs) - 1) | |
|
572 | avail_show = [] | |
|
573 | ||
|
566 | 574 | c.avail_revs = avail_revs |
|
567 | 575 | c.avail_cs = [org_scm_instance.get_changeset(r) for r in avail_show] |
|
568 | 576 | c.avail_jsdata = graph_data(org_scm_instance, avail_show) |
General Comments 0
You need to be logged in to leave comments.
Login now