comparison tests/test-hook.t @ 28108:2a71d9483199

hook: for python hook exceptions, add note to run with --traceback Just like with ImportErrors, it isn't obvious that --traceback will produce helpful debugging output here.
author Siddharth Agarwal <sid0@fb.com>
date Fri, 12 Feb 2016 11:44:35 -0800
parents 88e309a0c133
children b892e424f88c
comparison
equal deleted inserted replaced
28107:88e309a0c133 28108:2a71d9483199
539 $ hg pull ../a 539 $ hg pull ../a
540 pulling from ../a 540 pulling from ../a
541 searching for changes 541 searching for changes
542 no changes found 542 no changes found
543 error: post-pull.broken hook raised an exception: unsupported operand type(s) for +: 'int' and 'dict' 543 error: post-pull.broken hook raised an exception: unsupported operand type(s) for +: 'int' and 'dict'
544 (run with --traceback for stack trace)
544 545
545 but post- python hooks that fail to *load* do 546 but post- python hooks that fail to *load* do
546 $ echo '[hooks]' > .hg/hgrc 547 $ echo '[hooks]' > .hg/hgrc
547 $ echo 'post-pull.nomodule = python:nomodule' >> .hg/hgrc 548 $ echo 'post-pull.nomodule = python:nomodule' >> .hg/hgrc
548 $ hg pull ../a 549 $ hg pull ../a