# HG changeset patch # User Mads Kiilerich # Date 2015-02-11 02:40:28 # Node ID ddfb998e38983111235fb85baaf8de5407f2e8e9 # Parent 3078f33e13d3249c6ad39cccd940e64706ce11ed pullrequests: when creating a PR for a specific revision, look for updates on the branch name TODO: consider bookmarks? diff --git a/kallithea/controllers/pullrequests.py b/kallithea/controllers/pullrequests.py --- a/kallithea/controllers/pullrequests.py +++ b/kallithea/controllers/pullrequests.py @@ -324,6 +324,10 @@ class PullrequestsController(BaseRepoCon (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