abort: pretxncommit.indigo hook is invalid (import of "indigo.hooks.precommit" failed)
Greg Ward
greg-hg at gerg.ca
Tue Nov 17 19:32:18 CST 2009
On Tue, Nov 17, 2009 at 10:50 AM, Stodge <stodge at gmail.com> wrote:
> When I commit changes, I get the error:
>
> C:\data\hg\test1>hg commit -v --debug -m "fixes #1"
> test.py
> calling hook pretxncommit.indigo:
> indigo.hooks.precommit.pretxncommit_hook
> transaction abort!
> rollback completed
> abort: pretxncommit.indigo hook is invalid (import of
> "indigo.hooks.precommit" failed)
>
> This should work. I can start a Python shell and this works;
>
> from indigo.hooks import precommit
>
> Any ideas what I'm missing?
Are you positive hg is running with the same python.exe?
Try running with --traceback -- might be a little more informative.
What is in your [hooks] config section? How does that correspond to
your source code?
Greg
More information about the Mercurial
mailing list