diff --git a/rhodecode/controllers/compare.py b/rhodecode/controllers/compare.py --- a/rhodecode/controllers/compare.py +++ b/rhodecode/controllers/compare.py @@ -88,15 +88,16 @@ class CompareController(BaseRepoControll org_repo = c.rhodecode_db_repo.repo_name org_ref = (org_ref_type, org_ref) other_ref = (other_ref_type, other_ref) - other_repo = request.GET.get('repo', org_repo) + other_repo = request.GET.get('other_repo', org_repo) c.fulldiff = fulldiff = request.GET.get('fulldiff') rev_start = request.GET.get('rev_start') rev_end = request.GET.get('rev_end') - c.swap_url = h.url('compare_url', repo_name=other_repo, - org_ref_type=other_ref[0], org_ref=other_ref[1], - other_ref_type=org_ref[0], other_ref=org_ref[1], - repo=org_repo, as_form=request.GET.get('as_form')) + c.swap_url = h.url('compare_url', as_form=request.GET.get('as_form'), + repo_name=other_repo, + org_ref_type=other_ref[0], org_ref=other_ref[1], + repo=org_repo, + other_ref_type=org_ref[0], other_ref=org_ref[1]) c.org_repo = org_repo = Repository.get_by_repo_name(org_repo) c.other_repo = other_repo = Repository.get_by_repo_name(other_repo) diff --git a/rhodecode/templates/base/base.html b/rhodecode/templates/base/base.html --- a/rhodecode/templates/base/base.html +++ b/rhodecode/templates/base/base.html @@ -220,7 +220,7 @@
  • ${h.link_to(_('open new pull request'),h.url('pullrequest_home',repo_name=c.repo_name),class_='pull_request')}
  • %endif %if c.rhodecode_db_repo.fork: -
  • ${h.link_to(_('compare fork'),h.url('compare_url',repo_name=c.repo_name,org_ref_type='branch',org_ref=request.GET.get('branch') or 'default',other_ref_type='branch',other_ref='default',repo=c.rhodecode_db_repo.fork.repo_name),class_='compare_request')}
  • +
  • ${h.link_to(_('compare fork'),h.url('compare_url',repo_name=c.repo_name,org_ref_type='branch',org_ref=request.GET.get('branch') or 'default',other_repo=c.rhodecode_db_repo.fork.repo_name,other_ref_type='branch',other_ref='default'),class_='compare_request')}
  • %endif
  • ${h.link_to(_('lightweight changelog'),h.url('shortlog_home',repo_name=c.repo_name),class_='shortlog')}
  • ${h.link_to(_('search'),h.url('search_repo',repo_name=c.repo_name),class_='search')}
  • diff --git a/rhodecode/templates/changelog/changelog.html b/rhodecode/templates/changelog/changelog.html --- a/rhodecode/templates/changelog/changelog.html +++ b/rhodecode/templates/changelog/changelog.html @@ -37,7 +37,7 @@ ${_('%s Changelog') % c.repo_name} - ${c %if c.rhodecode_db_repo.fork: - ${_('Compare fork with parent')} + ${_('Compare fork with parent')} %endif %if h.is_hg(c.rhodecode_repo): ${_('open new pull request')} diff --git a/rhodecode/templates/forks/forks_data.html b/rhodecode/templates/forks/forks_data.html --- a/rhodecode/templates/forks/forks_data.html +++ b/rhodecode/templates/forks/forks_data.html @@ -17,7 +17,7 @@
    ${_('forked')} - ${h.age(f.created_on)} ${_('Compare fork')}
    diff --git a/rhodecode/templates/pullrequests/pullrequest.html b/rhodecode/templates/pullrequests/pullrequest.html --- a/rhodecode/templates/pullrequests/pullrequest.html +++ b/rhodecode/templates/pullrequests/pullrequest.html @@ -141,8 +141,8 @@ var url = "${h.url('compare_url', repo_name='org_repo', org_ref_type='org_ref_type', org_ref='org_ref', + other_repo='other_repo', other_ref_type='other_ref_type', other_ref='other_ref', - repo='other_repo', as_form=True, rev_start=request.GET.get('rev_start',''), rev_end=request.GET.get('rev_end',''))}"; diff --git a/rhodecode/tests/functional/test_compare.py b/rhodecode/tests/functional/test_compare.py --- a/rhodecode/tests/functional/test_compare.py +++ b/rhodecode/tests/functional/test_compare.py @@ -92,9 +92,9 @@ class TestCompareController(TestControll repo_name=repo2.repo_name, org_ref_type="branch", org_ref=rev1, + other_repo=repo1.repo_name, other_ref_type="branch", other_ref=rev2, - repo=repo1.repo_name )) try: @@ -150,9 +150,9 @@ class TestCompareController(TestControll repo_name=repo2.repo_name, org_ref_type="branch", org_ref=rev1, + other_repo=repo1.repo_name, other_ref_type="branch", other_ref=rev2, - repo=repo1.repo_name )) try: