comparison tests/test-hook.t @ 28106:cedbe8723d99

hook: even fewer parentheses for load errors Missed this one.
author Siddharth Agarwal <sid0@fb.com>
date Fri, 12 Feb 2016 11:34:04 -0800
parents 37b818cad146
children 88e309a0c133
comparison
equal deleted inserted replaced
28105:1fc7b5363871 28106:cedbe8723d99
494 $ echo '[hooks]' > ../a/.hg/hgrc 494 $ echo '[hooks]' > ../a/.hg/hgrc
495 $ echo 'preoutgoing.nomodule = python:nomodule' >> ../a/.hg/hgrc 495 $ echo 'preoutgoing.nomodule = python:nomodule' >> ../a/.hg/hgrc
496 $ hg pull ../a 496 $ hg pull ../a
497 pulling from ../a 497 pulling from ../a
498 searching for changes 498 searching for changes
499 abort: preoutgoing.nomodule hook is invalid ("nomodule" not in a module) 499 abort: preoutgoing.nomodule hook is invalid: "nomodule" not in a module
500 [255] 500 [255]
501 501
502 $ echo '[hooks]' > ../a/.hg/hgrc 502 $ echo '[hooks]' > ../a/.hg/hgrc
503 $ echo 'preoutgoing.badmodule = python:nomodule.nowhere' >> ../a/.hg/hgrc 503 $ echo 'preoutgoing.badmodule = python:nomodule.nowhere' >> ../a/.hg/hgrc
504 $ hg pull ../a 504 $ hg pull ../a