Mercurial > public > mercurial-scm > hg-stable
diff mercurial/hgweb/webcommands.py @ 23232:a0ccb66f344d stable
hgweb: fix a crash when using web.archivesubrepos
A matcher is required when enabling the subrepo option on archival.archive(),
because that calls match.narrowmatcher(), which accesses fields on the object.
It's therefore probably a bad idea to default the matcher to None on archive(),
but that's a fix for default.
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Wed, 05 Nov 2014 21:33:45 -0500 |
parents | e48a5d3996c2 |
children | 4fedf2a9b538 |
line wrap: on
line diff
--- 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]]