##// END OF EJS Templates
match: use ProgrammingError where appropriate
Martin von Zweigbergk -
r32444:57d6c0c7 default
parent child Browse files
Show More
@@ -38,7 +38,8 def _expandsets(kindpats, ctx, listsubre
38 38 for kind, pat, source in kindpats:
39 39 if kind == 'set':
40 40 if not ctx:
41 raise error.Abort(_("fileset expression with no context"))
41 raise error.ProgrammingError("fileset expression with no "
42 "context")
42 43 s = ctx.getfileset(pat)
43 44 fset.update(s)
44 45
@@ -121,8 +122,8 def match(root, cwd, patterns, include=N
121 122 normalize = _donormalize
122 123 if icasefs:
123 124 if exact:
124 raise error.Abort(_("a case-insensitive exact matcher doesn't "
125 "make sense"))
125 raise error.ProgrammingError("a case-insensitive exact matcher "
126 "doesn't make sense")
126 127 dirstate = ctx.repo().dirstate
127 128 dsnormalize = dirstate.normalize
128 129
General Comments 0
You need to be logged in to leave comments. Login now