# HG changeset patch # User Mads Kiilerich # Date 2013-06-28 11:50:13 # Node ID f322a2326019978b8617aac7d4daaaa9ed2908c3 # Parent 29aa65c9638daa4a4219222c431dca663c756891 changeset: allow revision specifications with '/' (for instance branch names) in routing diff --git a/kallithea/config/routing.py b/kallithea/config/routing.py --- a/kallithea/config/routing.py +++ b/kallithea/config/routing.py @@ -551,7 +551,7 @@ def make_map(config): rmap.connect('repo_refs_data', '/{repo_name:.*?}/refs-data', controller='home', action='repo_refs_data') - rmap.connect('changeset_home', '/{repo_name:.*?}/changeset/{revision}', + rmap.connect('changeset_home', '/{repo_name:.*?}/changeset/{revision:.*}', controller='changeset', revision='tip', conditions=dict(function=check_repo)) rmap.connect('changeset_children', '/{repo_name:.*?}/changeset_children/{revision}', @@ -652,17 +652,17 @@ def make_map(config): revision='tip', conditions=dict(function=check_repo)) rmap.connect('changeset_comment', - '/{repo_name:.*?}/changeset/{revision}/comment', + '/{repo_name:.*?}/changeset-comment/{revision}', controller='changeset', revision='tip', action='comment', conditions=dict(function=check_repo)) rmap.connect('changeset_comment_preview', - '/{repo_name:.*?}/changeset/comment/preview', + '/{repo_name:.*?}/changeset-comment-preview', controller='changeset', action='preview_comment', conditions=dict(function=check_repo, method=["POST"])) rmap.connect('changeset_comment_delete', - '/{repo_name:.*?}/changeset/comment/{comment_id}/delete', + '/{repo_name:.*?}/changeset-comment-delete/{comment_id}', controller='changeset', action='delete_comment', conditions=dict(function=check_repo, method=["DELETE"]))