Trying to write my first hook. I want to generate a file in the .hg folder every time a commit is done. I tried the following in my Mercurial.ini file:
[hooks]
commit = echo test > .hg\out.dat
... just to see if it would work. It complains about the directory not being found. To troubleshoot, I tried the following (simpler) hook:
[hooks]
commit = echo %cd%
... just to see what my current working directory was. The result is:
D:\
So for some reason, the hook is being run under the drive root, instead of my repository's directory.
Any ideas why?
I'm running under Win XP, FWIW.