Commits

Vincent Caron committed 16f15ec

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

  • Participants
  • Parent commits 4c13ced
  • Branches default

Comments (0)

Files changed (1)

File rhodecode/lib/middleware/simplehg.py

 
         # 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,
+            'config': CONFIG['__file__'],
             'scm': 'hg',
             'make_lock': None,
             'locked_by': [None, None]