diff mercurial/minifileset.py @ 35800:d5288b966e2f stable

minifileset: note the unsupported file pattern when raising a parse error This was useful in debugging, because I stupidly quoted it out of habit from the command line. This isn't a great example that clearly shows the problem, but I don't know how to improve it. The problem *is* obvious once a complex statement or a clearly bogus string is used.
author Matt Harbison <matt_harbison@yahoo.com>
date Wed, 24 Jan 2018 22:26:28 -0500
parents 73432eee0ac4
children 9c98cb30f4de
line wrap: on
line diff
--- a/mercurial/minifileset.py	Tue Jan 23 21:29:45 2018 -0500
+++ b/mercurial/minifileset.py	Wed Jan 24 22:26:28 2018 -0500
@@ -30,7 +30,7 @@
             pl = len(p)
             f = lambda n, s: n.startswith(p) and (len(n) == pl or n[pl] == '/')
             return f
-        raise error.ParseError(_("unsupported file pattern"),
+        raise error.ParseError(_("unsupported file pattern: %s") % name,
                                hint=_('paths must be prefixed with "path:"'))
     elif op == 'or':
         func1 = _compile(tree[1])