Vincent Caron  committed f0f3c73

Pass on RhodeCode config file down to a python-based Hg hook via the extras pseudo-config key, see

  • Participants
  • Parent commits 87bac9b
  • Branches beta

Comments (0)

Files changed (1)

File rhodecode/lib/middleware/

         # 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]