diff rhodecode/config/routing.py @ 3322:c9b0f1d363c7 beta

compare: swap org and other when they refer to different repos, ie are pull request style Pull requests will have a different from/to description - but in a consistent and slightly better way that can be improved later. A pull request diff is empathic: "How will this look for the peer I'm proposing to" style.
author Mads Kiilerich <madski@unity3d.com>
date Fri, 01 Feb 2013 23:13:10 +0100
parents a91fa221a3b8
children 5f1850e4712a
line wrap: on
line diff
--- a/rhodecode/config/routing.py	Mon Feb 04 21:26:01 2013 +0100
+++ b/rhodecode/config/routing.py	Fri Feb 01 23:13:10 2013 +0100
@@ -493,8 +493,8 @@
                  controller='compare', action='index',
                  conditions=dict(function=check_repo),
                  requirements=dict(
-                            org_ref_type='(branch|book|tag|rev|__org_ref_type__)',
-                            other_ref_type='(branch|book|tag|rev|__other_ref_type__)')
+                            org_ref_type='(branch|book|tag|rev|__other_ref_type__)',
+                            other_ref_type='(branch|book|tag|rev|__org_ref_type__)')
                  )
 
     rmap.connect('pullrequest_home',