##// END OF EJS Templates
redirect to pull-request overview after creation
marcink -
r2533:5a826060 beta
parent child Browse files
Show More
@@ -135,18 +135,19 b' class PullrequestsController(BaseRepoCon'
135
135
136 try:
136 try:
137 model = PullRequestModel()
137 model = PullRequestModel()
138 model.create(self.rhodecode_user.user_id, org_repo,
138 pull_request = model.create(self.rhodecode_user.user_id, org_repo,
139 org_ref, other_repo, other_ref, revisions,
139 org_ref, other_repo, other_ref, revisions,
140 reviewers, title, description)
140 reviewers, title, description)
141 Session.commit()
141 Session.commit()
142 h.flash(_('Pull request send'), category='success')
142 h.flash(_('Successfully opened new pull request'),
143 category='success')
143 except Exception:
144 except Exception:
144 raise
145 h.flash(_('Error occurred during sending pull request'),
145 h.flash(_('Error occured during sending pull request'),
146 category='error')
146 category='error')
147 log.error(traceback.format_exc())
147 log.error(traceback.format_exc())
148
148
149 return redirect(url('changelog_home', repo_name=repo_name))
149 return redirect(url('pullrequest_show', repo_name=other_repo,
150 pull_request_id=pull_request.pull_request_id))
150
151
151 def _load_compare_data(self, pull_request):
152 def _load_compare_data(self, pull_request):
152 """
153 """
General Comments 0
You need to be logged in to leave comments. Login now