Mercurial > kallithea
changeset 2525:c35980ae7958 beta
Don't always return action, raise an Exception if we cannot check what the action is
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Sun, 01 Jul 2012 16:11:38 +0200 |
parents | 9d4b80743a2a |
children | 473794943022 |
files | rhodecode/lib/hooks.py rhodecode/lib/middleware/simplehg.py |
diffstat | 2 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/rhodecode/lib/hooks.py Sun Jul 01 15:47:54 2012 +0200 +++ b/rhodecode/lib/hooks.py Sun Jul 01 16:11:38 2012 +0200 @@ -90,7 +90,6 @@ :param ui: :param repo: """ - extras = dict(repo.ui.configitems('rhodecode_extras')) username = extras['username'] repository = extras['repository']
--- a/rhodecode/lib/middleware/simplehg.py Sun Jul 01 15:47:54 2012 +0200 +++ b/rhodecode/lib/middleware/simplehg.py Sun Jul 01 16:11:38 2012 +0200 @@ -224,7 +224,10 @@ if cmd in mapping: return mapping[cmd] - return 'pull' + return 'pull' + + raise Exception('Unable to detect pull/push action !!' + 'Are you using non standard command or client ?') def __inject_extras(self, repo_path, baseui, extras={}): """