Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/hgweb/webcommands.py @ 40483:3d76a8e627a6
archive: change "matcnfn" argument to a real matcher
All callers seem to be passing a real matcher, not just a function. We
were also passing it into match.subdirmatcher(), which assumes it is a
matcher.
Differential Revision: https://phab.mercurial-scm.org/D5176
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Tue, 05 Sep 2017 15:21:21 -0700 |
parents | fa88170c10bb |
children | e06719b7544d |
comparison
equal
deleted
inserted
replaced
40403:bf249bb60087 | 40483:3d76a8e627a6 |
---|---|
1214 raise error.ProgrammingError('sendresponse() should not emit data ' | 1214 raise error.ProgrammingError('sendresponse() should not emit data ' |
1215 'if writing later') | 1215 'if writing later') |
1216 | 1216 |
1217 bodyfh = web.res.getbodyfile() | 1217 bodyfh = web.res.getbodyfile() |
1218 | 1218 |
1219 archival.archive(web.repo, bodyfh, cnode, artype, prefix=name, | 1219 archival.archive(web.repo, bodyfh, cnode, artype, prefix=name, match=match, |
1220 matchfn=match, | |
1221 subrepos=web.configbool("web", "archivesubrepos")) | 1220 subrepos=web.configbool("web", "archivesubrepos")) |
1222 | 1221 |
1223 return [] | 1222 return [] |
1224 | 1223 |
1225 @webcommand('static') | 1224 @webcommand('static') |