##// END OF EJS Templates
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
Vincent Caron -
r2857:bad89b2f beta
parent child Browse files
Show More
@@ -152,12 +152,14 b' class SimpleHg(BaseVCSController):'
152 152
153 153 # extras are injected into mercurial UI object and later available
154 154 # in hg hooks executed by rhodecode
155 from rhodecode import CONFIG
155 156 extras = {
156 157 'ip': ipaddr,
157 158 'username': username,
158 159 'action': action,
159 160 'repository': repo_name,
160 161 'scm': 'hg',
162 'config': CONFIG['__file__'],
161 163 'make_lock': None,
162 164 'locked_by': [None, None]
163 165 }
General Comments 0
You need to be logged in to leave comments. Login now