Changeset - bad89b2fe618
[Not reviewed]
beta
0 1 0
Vincent Caron - 13 years ago 2012-09-07 22:59:08
vcaron@bearstech.com
Grafted from: f0f3c73ae8b5
Pass on RhodeCode config file down to a python-based Hg hook via the extras pseudo-config key, see https://bitbucket.org/marcinkuzminski/rhodecode/issue/558/access-to-rhodecode-config-from-a-hg
1 file changed with 2 insertions and 0 deletions:
0 comments (0 inline, 0 general)
rhodecode/lib/middleware/simplehg.py
Show inline comments
 
@@ -152,12 +152,14 @@ class SimpleHg(BaseVCSController):
 

	
 
        # extras are injected into mercurial UI object and later available
 
        # in hg hooks executed by rhodecode
 
        from rhodecode import CONFIG
 
        extras = {
 
            'ip': ipaddr,
 
            'username': username,
 
            'action': action,
 
            'repository': repo_name,
 
            'scm': 'hg',
 
            'config': CONFIG['__file__'],
 
            'make_lock': None,
 
            'locked_by': [None, None]
 
        }
0 comments (0 inline, 0 general)