[PATCH 4 of 9 sethelp] fileset: use NotAFunction where appropriate
Augie Fackler
raf at durin42.com
Wed Feb 4 12:15:09 CST 2015
# HG changeset patch
# User Augie Fackler <augie at google.com>
# Date 1422300708 18000
# Mon Jan 26 14:31:48 2015 -0500
# Node ID e4a95908b4efb5c23d17ec4ac449399708fd120d
# Parent 04c92caf02b761ce3e2f46618b6b93e09e2b1bd3
fileset: use NotAFunction where appropriate
diff --git a/mercurial/fileset.py b/mercurial/fileset.py
--- a/mercurial/fileset.py
+++ b/mercurial/fileset.py
@@ -186,7 +186,7 @@ def clean(mctx, x):
def func(mctx, a, b):
if a[0] == 'symbol' and a[1] in symbols:
return symbols[a[1]](mctx, b)
- raise error.ParseError(_("not a function: %s") % a[1])
+ raise error.NotAFunction(a[1], symbols.keys())
def getlist(x):
if not x:
More information about the Mercurial-devel
mailing list