diff -r 8a9f6076e60c -r 6371ab78c3b3 mercurial/fileset.py --- a/mercurial/fileset.py Fri Aug 03 11:40:15 2018 -0400 +++ b/mercurial/fileset.py Sat Jul 21 16:11:36 2018 +0900 @@ -528,6 +528,7 @@ def match(ctx, expr, badfn=None): """Create a matcher for a single fileset expression""" tree = filesetlang.parse(expr) + tree = filesetlang.analyze(tree) mctx = matchctx(ctx, _buildstatus(ctx, tree), badfn=badfn) return getmatch(mctx, tree)