Show More
@@ -88,15 +88,16 b' class CompareController(BaseRepoControll' | |||
|
88 | 88 | org_repo = c.rhodecode_db_repo.repo_name |
|
89 | 89 | org_ref = (org_ref_type, org_ref) |
|
90 | 90 | other_ref = (other_ref_type, other_ref) |
|
91 | other_repo = request.GET.get('repo', org_repo) | |
|
91 | other_repo = request.GET.get('other_repo', org_repo) | |
|
92 | 92 | c.fulldiff = fulldiff = request.GET.get('fulldiff') |
|
93 | 93 | rev_start = request.GET.get('rev_start') |
|
94 | 94 | rev_end = request.GET.get('rev_end') |
|
95 | 95 | |
|
96 |
c.swap_url = h.url('compare_url', |
|
|
97 | org_ref_type=other_ref[0], org_ref=other_ref[1], | |
|
98 |
|
|
|
99 | repo=org_repo, as_form=request.GET.get('as_form')) | |
|
96 | c.swap_url = h.url('compare_url', as_form=request.GET.get('as_form'), | |
|
97 | repo_name=other_repo, | |
|
98 | org_ref_type=other_ref[0], org_ref=other_ref[1], | |
|
99 | repo=org_repo, | |
|
100 | other_ref_type=org_ref[0], other_ref=org_ref[1]) | |
|
100 | 101 | |
|
101 | 102 | c.org_repo = org_repo = Repository.get_by_repo_name(org_repo) |
|
102 | 103 | c.other_repo = other_repo = Repository.get_by_repo_name(other_repo) |
@@ -220,7 +220,7 b'' | |||
|
220 | 220 | <li>${h.link_to(_('open new pull request'),h.url('pullrequest_home',repo_name=c.repo_name),class_='pull_request')}</li> |
|
221 | 221 | %endif |
|
222 | 222 | %if c.rhodecode_db_repo.fork: |
|
223 |
<li>${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_re |
|
|
223 | <li>${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')}</li> | |
|
224 | 224 | %endif |
|
225 | 225 | <li>${h.link_to(_('lightweight changelog'),h.url('shortlog_home',repo_name=c.repo_name),class_='shortlog')}</li> |
|
226 | 226 | <li>${h.link_to(_('search'),h.url('search_repo',repo_name=c.repo_name),class_='search')}</li> |
@@ -37,7 +37,7 b'' | |||
|
37 | 37 | <a href="#" class="ui-btn small" id="rev_range_clear" style="display:none">${_('Clear selection')}</a> |
|
38 | 38 | |
|
39 | 39 | %if c.rhodecode_db_repo.fork: |
|
40 |
<a title="${_('compare fork with %s' % c.rhodecode_db_repo.fork.repo_name)}" href="${h.url('compare_url',repo_name=c.repo_name,org_ref_type='branch',org_ref=request.GET.get('branch') or 'default',other_re |
|
|
40 | <a title="${_('compare fork with %s' % c.rhodecode_db_repo.fork.repo_name)}" href="${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="ui-btn small">${_('Compare fork with parent')}</a> | |
|
41 | 41 | %endif |
|
42 | 42 | %if h.is_hg(c.rhodecode_repo): |
|
43 | 43 | <a id="open_new_pr" href="${h.url('pullrequest_home',repo_name=c.repo_name)}" class="ui-btn small">${_('open new pull request')}</a> |
@@ -17,7 +17,7 b'' | |||
|
17 | 17 | <div class="follower_date">${_('forked')} - |
|
18 | 18 | <span class="tooltip" title="${h.tooltip(h.fmt_date(f.created_on))}"> ${h.age(f.created_on)}</span> |
|
19 | 19 | <a title="${_('compare fork with %s' % c.repo_name)}" |
|
20 |
href="${h.url('compare_url',repo_name=f.repo_name,org_ref_type='branch',org_ref='default',other_ref_type='branch',other_ref='default' |
|
|
20 | href="${h.url('compare_url',repo_name=f.repo_name,org_ref_type='branch',org_ref='default',other_repo=c.repo_name,other_ref_type='branch',other_ref='default')}" | |
|
21 | 21 | class="ui-btn small">${_('Compare fork')}</a> |
|
22 | 22 | </div> |
|
23 | 23 | <div style="border-bottom: 1px solid #DDD;margin:10px 0px 10px 0px"></div> |
@@ -141,8 +141,8 b'' | |||
|
141 | 141 | var url = "${h.url('compare_url', |
|
142 | 142 | repo_name='org_repo', |
|
143 | 143 | org_ref_type='org_ref_type', org_ref='org_ref', |
|
144 | other_repo='other_repo', | |
|
144 | 145 | other_ref_type='other_ref_type', other_ref='other_ref', |
|
145 | repo='other_repo', | |
|
146 | 146 | as_form=True, |
|
147 | 147 | rev_start=request.GET.get('rev_start',''), |
|
148 | 148 | rev_end=request.GET.get('rev_end',''))}"; |
@@ -92,9 +92,9 b' class TestCompareController(TestControll' | |||
|
92 | 92 | repo_name=repo2.repo_name, |
|
93 | 93 | org_ref_type="branch", |
|
94 | 94 | org_ref=rev1, |
|
95 | other_repo=repo1.repo_name, | |
|
95 | 96 | other_ref_type="branch", |
|
96 | 97 | other_ref=rev2, |
|
97 | repo=repo1.repo_name | |
|
98 | 98 | )) |
|
99 | 99 | |
|
100 | 100 | try: |
@@ -150,9 +150,9 b' class TestCompareController(TestControll' | |||
|
150 | 150 | repo_name=repo2.repo_name, |
|
151 | 151 | org_ref_type="branch", |
|
152 | 152 | org_ref=rev1, |
|
153 | other_repo=repo1.repo_name, | |
|
153 | 154 | other_ref_type="branch", |
|
154 | 155 | other_ref=rev2, |
|
155 | repo=repo1.repo_name | |
|
156 | 156 | )) |
|
157 | 157 | |
|
158 | 158 | try: |
General Comments 0
You need to be logged in to leave comments.
Login now