fileset: handle underbar in symbols stable
authorMatt Mackall <mpm@selenic.com>
Tue, 23 Jul 2013 14:18:56 -0500
branchstable
changeset 19470 19ac0d8ee9a2
parent 19469 bf6bc4681383
child 19471 fd1bb7c1be78
fileset: handle underbar in symbols This was documented, but not implemented.
mercurial/fileset.py
tests/test-fileset.t
--- 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