diff -r 32dadb2637f4 -r a0ccb66f344d mercurial/hgweb/webcommands.py --- a/mercurial/hgweb/webcommands.py Wed Nov 05 20:31:58 2014 -0500 +++ b/mercurial/hgweb/webcommands.py Wed Nov 05 21:33:45 2014 -0500 @@ -901,7 +901,7 @@ ctx = webutil.changectx(web.repo, req) pats = [] - matchfn = None + matchfn = scmutil.match(ctx, []) file = req.form.get('file', None) if file: pats = ['path:' + file[0]]