# HG changeset patch # User Marcin Kuzminski # Date 2013-06-27 20:45:56 # Node ID 3608f15f51ed7af7619b28ea04bffcc4871678db # Parent 38ab60c1fb2b57a70cec3f3fa6137218206abf4b pull requests: show pull url with revision to merge the pull request diff --git a/rhodecode/templates/pullrequests/pullrequest_show.html b/rhodecode/templates/pullrequests/pullrequest_show.html --- a/rhodecode/templates/pullrequests/pullrequest_show.html +++ b/rhodecode/templates/pullrequests/pullrequest_show.html @@ -72,7 +72,12 @@ ## ${_('Git repository')} ##%endif ${c.pull_request.org_ref_parts[0]}: ${c.pull_request.org_ref_parts[1]} - ${c.pull_request.org_repo.clone_url()} + + %if h.is_hg(c.pull_request.org_repo): + | ${_('Pull changes')} hg pull -r ${h.short_id(c.cs_ranges[-1].raw_id)} ${c.pull_request.org_repo.clone_url()} + %elif h.is_git(c.pull_request.org_repo): + | ${_('Pull changes')} + %endif