# HG changeset patch # User Marcin Kuzminski # Date 2013-04-22 16:25:29 # Node ID 7d815483717449363fc8c40488b0907891229f07 # Parent 62fb395a459d57c1a1e7c09ef516e99bdbcf9899 create a list out of generator. Generator gets exausted during later executions, and because it's used several times it causes errors diff --git a/rhodecode/controllers/pullrequests.py b/rhodecode/controllers/pullrequests.py --- a/rhodecode/controllers/pullrequests.py +++ b/rhodecode/controllers/pullrequests.py @@ -314,12 +314,11 @@ class PullrequestsController(BaseRepoCon org_ref = 'rev:merge:%s' % _form['merge_rev'] other_repo = _form['other_repo'] other_ref = 'rev:ancestor:%s' % _form['ancestor_rev'] - revisions = reversed(_form['revisions']) + revisions = [x for x in reversed(_form['revisions'])] reviewers = _form['review_members'] title = _form['pullrequest_title'] description = _form['pullrequest_desc'] - try: pull_request = PullRequestModel().create( self.rhodecode_user.user_id, org_repo, org_ref, other_repo,