using external commit hooks to kick off build
Sean
schliden at gmail.com
Wed Mar 28 13:35:18 UTC 2007
mmm,
yeah, I kinda ignored this bit as it does not look right.
hgrc (adapt "hghooks", "buildhook(.py)"):
I've got this in mercurial.ini
[hooks]
commit =
commit.build = python:hghooks.buildhook.mybuild
and the file is called: buildhook.py
and nope, python interpreter can't find the module:
Sorry, this must be like pulling teeth !
On 3/28/07, Christian Ebert <blacktrash at gmx.net> wrote:
> * Sean on Wednesday, March 28, 2007 at 22:30:51 +1000:
> > I decided to just try and test I could get python hooks working at
> > all, but am getting this error on commit:
> >
> > abort: commit.build hook is invalid (import of "hghooks.buildhook" failed)
>
> Apparently you didn't set it up correctly in hgrc.
>
> > I am not sure if this is a python syntax error or if hg can't find
> > buildhook.py
>
> As the import fails, I'd go for the second alternative.
>
> > I am quite sure it is in the PYTHONPATH.
>
> You can make sure in the Python interpreter:
>
> >>> import hghooks.buildhook
>
> and see if this gives an error.
>
> c
> --
> _B A U S T E L L E N_ lesen! --->> <http://www.blacktrash.org/baustellen.html>
> _______________________________________________
> Mercurial mailing list
> Mercurial at selenic.com
> http://selenic.com/mailman/listinfo/mercurial
>
More information about the Mercurial
mailing list