Mercurial > kallithea
diff rhodecode/lib/hooks.py @ 3478:796738bb697c beta
webinterface file commiting executes push hooks ref #594
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Wed, 06 Mar 2013 13:47:14 +0100 |
parents | c2bf0fa7b3cb |
children | 7174ee850baa |
line wrap: on
line diff
--- a/rhodecode/lib/hooks.py Wed Mar 06 13:37:42 2013 +0100 +++ b/rhodecode/lib/hooks.py Wed Mar 06 13:47:14 2013 +0100 @@ -207,15 +207,17 @@ repository = extras['repository'] scm = extras['scm'] make_lock = extras['make_lock'] + action = extras['action'] elif 'username' in rc_extras: username = rc_extras['username'] repository = rc_extras['repository'] scm = rc_extras['scm'] make_lock = rc_extras['make_lock'] + action = extras['action'] else: raise Exception('Missing data in repo.ui and os.environ') - action = 'push' + ':%s' + action = action + ':%s' if scm == 'hg': node = kwargs['node']