changeset 19470:19ac0d8ee9a2 stable

fileset: handle underbar in symbols This was documented, but not implemented.
author Matt Mackall <mpm@selenic.com>
date Tue, 23 Jul 2013 14:18:56 -0500
parents bf6bc4681383
children fd1bb7c1be78
files mercurial/fileset.py tests/test-fileset.t
diffstat 2 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/fileset.py	Sun Jul 21 18:45:42 2013 -0500
+++ b/mercurial/fileset.py	Tue Jul 23 14:18:56 2013 -0500
@@ -27,7 +27,7 @@
 
 keywords = set(['and', 'or', 'not'])
 
-globchars = ".*{}[]?/\\"
+globchars = ".*{}[]?/\\_"
 
 def tokenize(program):
     pos, l = 0, len(program)
--- a/tests/test-fileset.t	Sun Jul 21 18:45:42 2013 -0500
+++ b/tests/test-fileset.t	Tue Jul 23 14:18:56 2013 -0500
@@ -42,6 +42,7 @@
   b2
   $ fileset 'a* - a1'
   a2
+  $ fileset 'a_b'
 
 Test files status