diff mercurial/hgweb/webcommands.py @ 40407: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
line wrap: on
line diff
--- a/mercurial/hgweb/webcommands.py	Mon Oct 22 11:34:35 2018 -0700
+++ b/mercurial/hgweb/webcommands.py	Tue Sep 05 15:21:21 2017 -0700
@@ -1216,8 +1216,7 @@
 
     bodyfh = web.res.getbodyfile()
 
-    archival.archive(web.repo, bodyfh, cnode, artype, prefix=name,
-                     matchfn=match,
+    archival.archive(web.repo, bodyfh, cnode, artype, prefix=name, match=match,
                      subrepos=web.configbool("web", "archivesubrepos"))
 
     return []