# HG changeset patch # User Siddharth Agarwal # Date 1455305644 28800 # Node ID cedbe8723d994c4c6f0e12c52379931c75cb3ba8 # Parent 1fc7b53638715878abfd0eff175915fe0ee6a4b4 hook: even fewer parentheses for load errors Missed this one. diff -r 1fc7b5363871 -r cedbe8723d99 mercurial/hook.py --- 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 diff -r 1fc7b5363871 -r cedbe8723d99 tests/test-hook.t --- 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