Show More
@@ -442,17 +442,9 b' class PullrequestsController(BaseRepoCon' | |||
|
442 | 442 | c.comments = cc_model.get_comments(c.rhodecode_db_repo.repo_id, |
|
443 | 443 | pull_request=pull_request_id) |
|
444 | 444 | |
|
445 | try: | |
|
446 | cur_status = c.statuses[c.pull_request.revisions[0]][0] | |
|
447 | except Exception: | |
|
448 | log.error(traceback.format_exc()) | |
|
449 | cur_status = 'undefined' | |
|
450 | if c.pull_request.is_closed() and 0: | |
|
451 | c.current_changeset_status = cur_status | |
|
452 | else: | |
|
453 | # changeset(pull-request) status calulation based on reviewers | |
|
454 | c.current_changeset_status = cs_model.calculate_status( | |
|
455 | c.pull_request_reviewers, | |
|
445 | # changeset(pull-request) status calulation based on reviewers | |
|
446 | c.current_changeset_status = cs_model.calculate_status( | |
|
447 | c.pull_request_reviewers, | |
|
456 | 448 | ) |
|
457 | 449 | c.changeset_statuses = ChangesetStatus.STATUSES |
|
458 | 450 |
General Comments 0
You need to be logged in to leave comments.
Login now