--- a/mercurial/match.py Tue May 23 01:30:36 2017 +0530
+++ b/mercurial/match.py Tue May 23 08:49:01 2017 -0700
@@ -38,7 +38,8 @@
for kind, pat, source in kindpats:
if kind == 'set':
if not ctx:
- raise error.Abort(_("fileset expression with no context"))
+ raise error.ProgrammingError("fileset expression with no "
+ "context")
s = ctx.getfileset(pat)
fset.update(s)
@@ -121,8 +122,8 @@
normalize = _donormalize
if icasefs:
if exact:
- raise error.Abort(_("a case-insensitive exact matcher doesn't "
- "make sense"))
+ raise error.ProgrammingError("a case-insensitive exact matcher "
+ "doesn't make sense")
dirstate = ctx.repo().dirstate
dsnormalize = dirstate.normalize