Adding hooks to TortoiseHg

Posted by hekevintran on Stack Overflow See other posts from Stack Overflow or by hekevintran
Published on 2010-03-20T08:26:07Z Indexed on 2010/03/20 8:31 UTC
Read the original article Hit count: 711

Filed under:
|
|

I am using TortoiseHg and would like to apply a hook to my repo. My repo's .hg/hgrc file is as follows:

[hooks]
pretxncommit = python:hg_checksize.newbinsize

The thing is that I don't know where TortoiseHg's PYTHONPATH variable is set. How do I change it? Or where do I put my Python file so that it is visible by TortoiseHg's Python interpreter?

I cannot find any mention of hooks in TortoiseHg's documentation or through Google?

© Stack Overflow or respective owner

Related posts about mercurial

Related posts about tortoisehg