changeset 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 1fc7b5363871
children 88e309a0c133
files mercurial/hook.py tests/test-hook.t
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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