# HG changeset patch # User Mads Kiilerich # Date 1473115878 -7200 # Node ID 7c917e15c04578c920a2b8ffff58b342500d468c # Parent 323ccdd4579ba922db255fc9bd1f86871bca3b48 pullrequests: when creating, don't convert selected revision to tag name It kind of makes sense that if a branch head or bookmarked revision is chosen, then pretend the symbolic name was chosen. The name can move and will give the PR a future. That is currently done both when populating the select boxes and when actually creating the new PR. There, a selected revision is also "upgraded" to its branch. Tags are however mostly static. Fair enough if a user wants to create a PR from a tag, but if a revision is selected, it shouldn't be side tracked to the tag name. diff -r 323ccdd4579b -r 7c917e15c045 kallithea/controllers/pullrequests.py --- a/kallithea/controllers/pullrequests.py Tue Sep 06 00:51:18 2016 +0200 +++ b/kallithea/controllers/pullrequests.py Tue Sep 06 00:51:18 2016 +0200 @@ -139,8 +139,7 @@ continue n = 'tag:%s:%s' % (tag, tagrev) tags.append((n, tag)) - if rev == tagrev: - selected = n + # note: even if rev == tagrev, don't select the static tag - it must be chosen explicitly # prio 1: rev was selected as existing entry above