##// END OF EJS Templates
hooks: fixed again unicode problems with new pull-request link generator
marcink -
r3503:0a6f9ae0 stable
parent child Browse files
Show More
@@ -270,7 +270,7 b' def post_push(extras):'
270 # make lock is a tri state False, True, None. We only release lock on False
270 # make lock is a tri state False, True, None. We only release lock on False
271 if extras.make_lock is False and not is_shadow_repo(extras):
271 if extras.make_lock is False and not is_shadow_repo(extras):
272 Repository.unlock(Repository.get_by_repo_name(extras.repository))
272 Repository.unlock(Repository.get_by_repo_name(extras.repository))
273 msg = 'Released lock on repo `%s`\n' % extras.repository
273 msg = 'Released lock on repo `{}`\n'.format(safe_str(extras.repository))
274 output += msg
274 output += msg
275
275
276 if extras.locked_by[0]:
276 if extras.locked_by[0]:
@@ -284,8 +284,8 b' def post_push(extras):'
284 output += _http_ret.title
284 output += _http_ret.title
285
285
286 if extras.new_refs:
286 if extras.new_refs:
287 tmpl = extras.server_url + '/' + extras.repository + \
287 tmpl = '{}/{}/pull-request/new?{{ref_type}}={{ref_name}}'.format(
288 "/pull-request/new?{ref_type}={ref_name}"
288 safe_str(extras.server_url), safe_str(extras.repository))
289
289
290 for branch_name in extras.new_refs['branches']:
290 for branch_name in extras.new_refs['branches']:
291 output += 'RhodeCode: open pull request link: {}\n'.format(
291 output += 'RhodeCode: open pull request link: {}\n'.format(
General Comments 0
You need to be logged in to leave comments. Login now