# HG changeset patch # User Marcin Kuzminski # Date 1350423274 -7200 # Node ID 0ebdd15de1d89632a34edcdddc52bc7e9e160fdb # Parent 58bb350bfef8dffe21379e110bb5497130319a7c fix routing regex for compare branches with / and other special chars diff -r 58bb350bfef8 -r 0ebdd15de1d8 rhodecode/config/routing.py --- a/rhodecode/config/routing.py Tue Oct 16 00:39:24 2012 +0200 +++ b/rhodecode/config/routing.py Tue Oct 16 23:34:34 2012 +0200 @@ -435,7 +435,7 @@ revision='tip', conditions=dict(function=check_repo)) rmap.connect('compare_url', - '/{repo_name:.*?}/compare/{org_ref_type}@{org_ref}...{other_ref_type}@{other_ref}', + '/{repo_name:.*?}/compare/{org_ref_type}@{org_ref:.*?}...{other_ref_type}@{other_ref:.*?}', controller='compare', action='index', conditions=dict(function=check_repo), requirements=dict(