##// END OF EJS Templates
shadow: Remove URL quoting of shadow repository pull URL.
Martin Bornhold -
r917:83d47f72 default
parent child Browse files
Show More
@@ -27,6 +27,7 b' from collections import namedtuple'
27 import json
27 import json
28 import logging
28 import logging
29 import datetime
29 import datetime
30 import urllib
30
31
31 from pylons.i18n.translation import _
32 from pylons.i18n.translation import _
32 from pylons.i18n.translation import lazy_ugettext
33 from pylons.i18n.translation import lazy_ugettext
@@ -785,7 +786,8 b' class PullRequestModel(BaseModel):'
785 if pull_request.is_closed():
786 if pull_request.is_closed():
786 return None
787 return None
787 else:
788 else:
788 return u'{url}/repository'.format(url=self.get_url(pull_request))
789 pr_url = urllib.unquote(self.get_url(pull_request))
790 return safe_unicode('{pr_url}/repository'.format(pr_url=pr_url))
789
791
790 def notify_reviewers(self, pull_request, reviewers_ids):
792 def notify_reviewers(self, pull_request, reviewers_ids):
791 # notification to reviewers
793 # notification to reviewers
General Comments 0
You need to be logged in to leave comments. Login now