# HG changeset patch # User Mads Kiilerich # Date 2015-02-11 02:40:28 # Node ID 0aa4b31245e5cee521f255cf7ed613b18f439312 # Parent 14bd5dc3010b905d354a761a82a7447294bab281 pullrequests: use full url in 'replaced by' comment after updates diff --git a/kallithea/controllers/pullrequests.py b/kallithea/controllers/pullrequests.py --- a/kallithea/controllers/pullrequests.py +++ b/kallithea/controllers/pullrequests.py @@ -457,9 +457,7 @@ class PullrequestsController(BaseRepoCon 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,