Show More
@@ -36,7 +36,7 b' def _pythonhook(ui, repo, name, hname, f' | |||||
36 | d = funcname.rfind('.') |
|
36 | d = funcname.rfind('.') | |
37 | if d == -1: |
|
37 | if d == -1: | |
38 | raise error.HookLoadError( |
|
38 | raise error.HookLoadError( | |
39 |
_('%s hook is invalid |
|
39 | _('%s hook is invalid: "%s" not in a module') | |
40 | % (hname, funcname)) |
|
40 | % (hname, funcname)) | |
41 | modname = funcname[:d] |
|
41 | modname = funcname[:d] | |
42 | oldpaths = sys.path |
|
42 | oldpaths = sys.path |
@@ -496,7 +496,7 b' test python hooks' | |||||
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 |
|
499 | abort: preoutgoing.nomodule hook is invalid: "nomodule" not in a module | |
500 | [255] |
|
500 | [255] | |
501 |
|
501 | |||
502 |
$ |
|
502 | $ echo '[hooks]' > ../a/.hg/hgrc |
General Comments 0
You need to be logged in to leave comments.
Login now