diff mercurial/fileset.py @ 27518:737ffdabbde9

fileset: add hint for list error to use or
author timeless <timeless@mozdev.org>
date Wed, 23 Dec 2015 17:54:13 +0000
parents c39ecb2b86b3
children 4f8ced23345e
line wrap: on
line diff
--- a/mercurial/fileset.py	Wed Dec 23 17:54:03 2015 +0000
+++ b/mercurial/fileset.py	Wed Dec 23 17:54:13 2015 +0000
@@ -128,7 +128,8 @@
     return [f for f in xl if f not in yl]
 
 def listset(mctx, a, b):
-    raise error.ParseError(_("can't use a list in this context"))
+    raise error.ParseError(_("can't use a list in this context"),
+                           hint=_('see hg help "filesets.x or y"'))
 
 # symbols are callable like:
 #  fun(mctx, x)