mercurial/match.py
changeset 32482 57d6c0c74b1b
parent 32453 9695aca1a3a0
child 32492 a04bc55201c3
--- 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