I have a pre-diff hook in my hg setup but it is not being executed when I try to commit my changes.
What I'm trying to do is generate the database schema file before commit so that it will appear in the list of changes.
I also have an update hook which works fine. Is TortoiseHG not performing an hg diff command? Which hook could I use instead?
TortoiseHg (as of v2.1.4) performs diffs in at least 3 ways, none of which use a raw hg diff
command:
mdiff.unidiff
method in mdiff.py
. This method bypasses the hook mechanism.As far as I know, TortoiseHg does not expose any hooks for its diff mechanism.