pre- and post-init hooks don't seem to fire from the gui
Created originally on Bitbucket by duck0 (Staffan Thomén)
I'm using TortoiseHg v3.1.1, with a very small mercurial.ini:
#!config [hooks] post-commit = C:\Users\duck\Desktop\hg-postinit.bat
The script in question contains a simple
#!cmd.exe echo foo > C:\Users\duck\Desktop\postinit.txt
This works fine in the shell, as well as if I type it manually in the tortoisehg workbench "Output log" window.
Using the explorer menu extension to create a repo however, or using the File > Create New Repository window in the workbench does not trigger the hook and create the file.
A bug? Am I doing something wrong?