diff -r 38a2b9d90131 -r 24245b54aa8a mercurial/context.py --- a/mercurial/context.py Sun May 21 18:36:28 2017 -0400 +++ b/mercurial/context.py Fri May 12 23:11:41 2017 -0700 @@ -1595,7 +1595,7 @@ # to actual case in the filesystem. matcherfunc = matchmod.match if not util.fscasesensitive(r.root): - matcherfunc = matchmod.icasefsmatcher + matcherfunc = matchmod.icasefsmatch return matcherfunc(r.root, r.getcwd(), pats, include, exclude, default, auditor=r.auditor, ctx=self,