hgext/largefiles/overrides.py
branchstable
changeset 26417 9a466b9f9792
parent 25811 7699d3212994
child 26427 97dc6ab42aad
--- a/hgext/largefiles/overrides.py	Thu Oct 01 11:09:36 2015 -0300
+++ b/hgext/largefiles/overrides.py	Tue Sep 29 23:29:44 2015 -0400
@@ -886,9 +886,19 @@
     finally:
         repo.unfiltered().lfstatus = False
 
+def hgwebarchive(orig, web, req, tmpl):
+    web.repo.lfstatus = True
+
+    try:
+        return orig(web, req, tmpl)
+    finally:
+        web.repo.lfstatus = False
+
 def overridearchive(orig, repo, dest, node, kind, decode=True, matchfn=None,
             prefix='', mtime=None, subrepos=None):
-    if not repo.lfstatus:
+    # For some reason setting repo.lfstatus in hgwebarchive only changes the
+    # unfiltered repo's attr, so check that as well.
+    if not repo.lfstatus and not repo.unfiltered().lfstatus:
         return orig(repo, dest, node, kind, decode, matchfn, prefix, mtime,
                     subrepos)