##// 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 # extras are injected into mercurial UI object and later available
153 # extras are injected into mercurial UI object and later available
154 # in hg hooks executed by rhodecode
154 # in hg hooks executed by rhodecode
155 from rhodecode import CONFIG
155 extras = {
156 extras = {
156 'ip': ipaddr,
157 'ip': ipaddr,
157 'username': username,
158 'username': username,
158 'action': action,
159 'action': action,
159 'repository': repo_name,
160 'repository': repo_name,
160 'scm': 'hg',
161 'scm': 'hg',
162 'config': CONFIG['__file__'],
161 'make_lock': None,
163 'make_lock': None,
162 'locked_by': [None, None]
164 'locked_by': [None, None]
163 }
165 }
General Comments 0
You need to be logged in to leave comments. Login now