diff rhodecode/controllers/compare.py @ 3320:75431548602a beta

fixed broken swap url, and added a test to detect it in feature
author Marcin Kuzminski <marcin@python-works.com>
date Mon, 04 Feb 2013 02:18:44 +0100
parents b36285f90f89
children c9b0f1d363c7
line wrap: on
line diff
--- a/rhodecode/controllers/compare.py	Mon Feb 04 02:07:57 2013 +0100
+++ b/rhodecode/controllers/compare.py	Mon Feb 04 02:18:44 2013 +0100
@@ -96,7 +96,7 @@
         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_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)