Loading in-process hooks under Windows

Roman V. Kiseliov roman.kiseliov at gmail.com
Wed Aug 5 03:14:31 CDT 2009


Attached patch fixes loading in-process hooks with full path specified
(including drive letter and following colon) under Windows.

Without patch you'll can't be succesfull with

commit.example = python:c:/dev/repos/someproj/hooks/hook00.py:hookfunc

because of old code works correctly only for 2 colons and you'll be forced
add 'c:/dev/repos/someproj/hooks/' to PYTHONPATH and write

commit.example = python:hook00.hookfunc

to get things working.


P.S. I write to maillist because of suggestion
-------------- next part --------------
A non-text attachment was scrubbed...
Name: colon.diff
Type: application/octet-stream
Size: 805 bytes
Desc: not available
Url : http://selenic.com/pipermail/mercurial-devel/attachments/20090805/c3b1de5e/attachment.obj 

More information about the Mercurial-devel mailing list