Changeset - 07d620f6db2e
[Not reviewed]
beta
0 1 0
Marcin Kuzminski - 13 years ago 2012-10-17 21:34:52
marcin@python-works.com
pull requests throw an error if parent of fork didn't have any changesets yet. Now it's filter out from list of available sources
1 file changed with 2 insertions and 2 deletions:
0 comments (0 inline, 0 general)
rhodecode/controllers/pullrequests.py
Show inline comments
 
@@ -149,8 +149,8 @@ class PullrequestsController(BaseRepoCon
 
                                 self._get_repo_refs(fork.scm_instance),
 
                                 class_='refs')
 
            }
 
        #add parents of this fork also
 
        if org_repo.parent:
 
        #add parents of this fork also, but only if it's not empty
 
        if org_repo.parent and org_repo.parent.scm_instance.revisions:
 
            c.default_pull_request = org_repo.parent.repo_name
 
            c.default_pull_request_rev = self._get_default_rev(org_repo.parent)
 
            c.default_revs = self._get_repo_refs(org_repo.parent.scm_instance)
0 comments (0 inline, 0 general)