hook: even fewer parentheses for load errors
Missed this one.
--- a/mercurial/hook.py Mon Feb 08 17:34:32 2016 +0100
+++ b/mercurial/hook.py Fri Feb 12 11:34:04 2016 -0800
@@ -36,7 +36,7 @@
d = funcname.rfind('.')
if d == -1:
raise error.HookLoadError(
- _('%s hook is invalid ("%s" not in a module)')
+ _('%s hook is invalid: "%s" not in a module')
% (hname, funcname))
modname = funcname[:d]
oldpaths = sys.path
--- a/tests/test-hook.t Mon Feb 08 17:34:32 2016 +0100
+++ b/tests/test-hook.t Fri Feb 12 11:34:04 2016 -0800
@@ -496,7 +496,7 @@
$ hg pull ../a
pulling from ../a
searching for changes
- abort: preoutgoing.nomodule hook is invalid ("nomodule" not in a module)
+ abort: preoutgoing.nomodule hook is invalid: "nomodule" not in a module
[255]
$ echo '[hooks]' > ../a/.hg/hgrc