# HG changeset patch # User Mads Kiilerich # Date 1423618828 -3600 # Node ID 0aa4b31245e5cee521f255cf7ed613b18f439312 # Parent 14bd5dc3010b905d354a761a82a7447294bab281 pullrequests: use full url in 'replaced by' comment after updates diff -r 14bd5dc3010b -r 0aa4b31245e5 kallithea/controllers/pullrequests.py --- 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 @@ -457,9 +457,7 @@ return redirect(old_pull_request.url()) ChangesetCommentsModel().create( - text=_('Closed, replaced by %s .') % h.canonical_url('pullrequest_show', - repo_name=old_pull_request.other_repo.repo_name, - pull_request_id=pull_request.pull_request_id), + text=_('Closed, replaced by %s .') % pull_request.url(canonical=True), repo=old_pull_request.other_repo.repo_id, user=c.authuser.user_id, pull_request=old_pull_request.pull_request_id,