On the project I am working on there is a standard pre-commit hook for mercurial that looks something like this:
python:hookhgext.messagevalidation.checkCommitMessage
I would like to find out where the python script is located so I can create my own hook script that also calls this.
How would I either find the location of this file or also call this hook from a python script?
Accoring to docs
I.e. in your case Mercurial imports
hookhgext.messagevalidation(from any possible for import location) and callcheckCommitMessagefrom it.I know nothing about Python, but for me
hookhgext.messagevalidationis "messagevalidation" something inside "hookhgext.py", and "hookhgext" is the usual installed python-module in it's (installed modules) default location(s)