# HG changeset patch # User Matt Mackall # Date 1374607136 18000 # Node ID 19ac0d8ee9a20e76dc6b0e9d1f976c2996ba53a9 # Parent bf6bc468138342ebc6eb6f2f8d9519148372b18c fileset: handle underbar in symbols This was documented, but not implemented. diff -r bf6bc4681383 -r 19ac0d8ee9a2 mercurial/fileset.py --- 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) diff -r bf6bc4681383 -r 19ac0d8ee9a2 tests/test-fileset.t --- 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