Mercurial > kallithea
changeset 4806:ddfb998e3898
pullrequests: when creating a PR for a specific revision, look for updates on the branch name
TODO: consider bookmarks?
author | Mads Kiilerich <madski@unity3d.com> |
---|---|
date | Wed, 11 Feb 2015 02:40:28 +0100 |
parents | 3078f33e13d3 |
children | 14bd5dc3010b |
files | kallithea/controllers/pullrequests.py |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/kallithea/controllers/pullrequests.py Wed Feb 11 02:40:28 2015 +0100 +++ b/kallithea/controllers/pullrequests.py Wed Feb 11 02:40:28 2015 +0100 @@ -324,6 +324,10 @@ (org_ref_type, org_ref_name, org_rev) = org_ref.split(':') + if org_ref_type == 'rev': + org_ref_type = 'branch' + org_ref_name = org_repo.scm_instance.get_changeset(org_rev).branch + org_ref = '%s:%s:%s' % (org_ref_type, org_ref_name, org_ref_name) other_repo_name = _form['other_repo'] other_ref = _form['other_ref'] # will have symbolic name and head revision