Mercurial > kallithea
comparison rhodecode/config/routing.py @ 2363:745dda7817ed codereview
Rewrote url routes to make all validations and parsing for compare view + added compare fork button into forked repos
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Wed, 30 May 2012 23:12:16 +0200 |
parents | b0fef8a77568 |
children | 91fae60bf2b6 |
comparison
equal
deleted
inserted
replaced
2362:3c4afb8894bd | 2363:745dda7817ed |
---|---|
414 rmap.connect('raw_changeset_home', | 414 rmap.connect('raw_changeset_home', |
415 '/{repo_name:.*}/raw-changeset/{revision}', | 415 '/{repo_name:.*}/raw-changeset/{revision}', |
416 controller='changeset', action='raw_changeset', | 416 controller='changeset', action='raw_changeset', |
417 revision='tip', conditions=dict(function=check_repo)) | 417 revision='tip', conditions=dict(function=check_repo)) |
418 | 418 |
419 rmap.connect('compare_home', | 419 rmap.connect('compare_url', |
420 '/{repo_name:.*}/compare/{ref:.*}', | 420 '/{repo_name:.*}/compare/{org_ref_type}@{org_ref}...{other_ref_type}@{other_ref}', |
421 controller='compare', action='index', | 421 controller='compare', action='index', |
422 conditions=dict(function=check_repo)) | 422 conditions=dict(function=check_repo), |
423 requirements=dict(org_ref_type='(branch|book|tag)', | |
424 other_ref_type='(branch|book|tag)')) | |
423 | 425 |
424 rmap.connect('pullrequest_home', | 426 rmap.connect('pullrequest_home', |
425 '/{repo_name:.*}/pull-request/new', | 427 '/{repo_name:.*}/pull-request/new', |
426 controller='pullrequests', action='index', | 428 controller='pullrequests', action='index', |
427 conditions=dict(function=check_repo)) | 429 conditions=dict(function=check_repo)) |