Mercurial > kallithea
diff rhodecode/config/routing.py @ 2726:aa17c7a1b8a5 beta
Implemented basic locking functionality.
- Reimplemented how githooks behave
- emaulate pre-receive hook
- install missing git hooks if they aren't already in repo
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Wed, 22 Aug 2012 00:30:02 +0200 |
parents | f4ff3b5bfc42 |
children | 49a4864b11c1 |
line wrap: on
line diff
--- a/rhodecode/config/routing.py Tue Aug 21 19:36:21 2012 +0200 +++ b/rhodecode/config/routing.py Wed Aug 22 00:30:02 2012 +0200 @@ -138,7 +138,9 @@ m.connect('repo_as_fork', "/repo_as_fork/{repo_name:.*?}", action="repo_as_fork", conditions=dict(method=["PUT"], function=check_repo)) - + m.connect('repo_locking', "/repo_locking/{repo_name:.*?}", + action="repo_locking", conditions=dict(method=["PUT"], + function=check_repo)) with rmap.submapper(path_prefix=ADMIN_PREFIX, controller='admin/repos_groups') as m: m.connect("repos_groups", "/repos_groups",