Mercurial > hg-stable
changeset 32482:57d6c0c74b1b
match: use ProgrammingError where appropriate
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Tue, 23 May 2017 08:49:01 -0700 |
parents | 34e9b8b94f66 |
children | 847233374434 |
files | mercurial/match.py |
diffstat | 1 files changed, 4 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- 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