0

I'm struggling to get the mercurial hook script for The Bug Genie working under windows, it can be found here : TheBugGenie:Addons:VCSMercurial

The hook seems to fire but the command prompt rapidly disappears with the error message (probably) in it.

I've never done python, but I've tried adding some code like

os.system('ipconfig > F:\\xyz')

to test if the code is actually running, with no success.

Can I get some help?

Kadir
  • 1,664
  • 2
  • 19
  • 22
kriss2
  • 15
  • 4
  • `'ipconfig > F:\xyz'` won't work because `\x` starts an escape escape sequence and `yz` isn't a valid hex value, therefore the script won't run because this will cause an error while parsing the script. You need to either escape backslashes by doubling them, or use a raw string (`r'...'`). – mata Apr 26 '14 at 01:46
  • I actually fixed that, but with no success. – kriss2 Apr 26 '14 at 09:08
  • have you tried using `hg` directly from cmd to see the actual error message? Other then that, there may be an issue with your configuration, you should consider posting the relevant parts of your repo/global mercurial config. – mata Apr 26 '14 at 10:00

0 Answers0