tortoisehg and pre-status hook

199 Views Asked by At

I've added "pre-status" hook to hgrc file, and it works pretty well, if I type "hg status" in console. But this hook doesn't work in Tortoise HG. I spent several hours trying to solve this riddle, but looks like Tortoise HG uses something different from "hg status" to show changes in repository.

Is there any way to make my hook works with TortoiseHG?

1

There are 1 best solutions below

1
On

Almost certainly not. The pre-* and post-* hooks are invoked before and after a command is run from the command line, because that's linked to a specific user action (typing a command and pressing enter). ToroiseHG is always scanning for changes to display, so even if it did run command triggered hooks it'd probably be firing it many times a minute.