Mercurial > kallithea
comparison rhodecode/controllers/pullrequests.py @ 3328:12c72fbdbfb3 beta
pull request: for consistency use org_repo when info is available in several places
author | Mads Kiilerich <madski@unity3d.com> |
---|---|
date | Mon, 04 Feb 2013 22:21:26 +0100 |
parents | f285faa3a602 |
children | f8c55b487c9a |
comparison
equal
deleted
inserted
replaced
3327:f285faa3a602 | 3328:12c72fbdbfb3 |
---|---|
124 | 124 |
125 other_repos_info = {} | 125 other_repos_info = {} |
126 | 126 |
127 c.org_repos = [] | 127 c.org_repos = [] |
128 c.org_repos.append((org_repo.repo_name, '%s/%s' % ( | 128 c.org_repos.append((org_repo.repo_name, '%s/%s' % ( |
129 org_repo.user.username, c.repo_name)) | 129 org_repo.user.username, org_repo.repo_name)) |
130 ) | 130 ) |
131 c.org_refs = self._get_repo_refs(c.rhodecode_repo) | 131 c.org_refs = self._get_repo_refs(org_repo.scm_instance) |
132 | 132 |
133 c.other_repos = [] | 133 c.other_repos = [] |
134 # add org repo to other so we can open pull request against itself | 134 # add org repo to other so we can open pull request against itself |
135 c.other_repos.extend(c.org_repos) | 135 c.other_repos.extend(c.org_repos) |
136 c.default_other_repo = org_repo.repo_name | 136 c.default_other_repo = org_repo.repo_name |