884 try: |
884 try: |
885 return orig(ui, repo.unfiltered(), dest, **opts) |
885 return orig(ui, repo.unfiltered(), dest, **opts) |
886 finally: |
886 finally: |
887 repo.unfiltered().lfstatus = False |
887 repo.unfiltered().lfstatus = False |
888 |
888 |
|
889 def hgwebarchive(orig, web, req, tmpl): |
|
890 web.repo.lfstatus = True |
|
891 |
|
892 try: |
|
893 return orig(web, req, tmpl) |
|
894 finally: |
|
895 web.repo.lfstatus = False |
|
896 |
889 def overridearchive(orig, repo, dest, node, kind, decode=True, matchfn=None, |
897 def overridearchive(orig, repo, dest, node, kind, decode=True, matchfn=None, |
890 prefix='', mtime=None, subrepos=None): |
898 prefix='', mtime=None, subrepos=None): |
891 if not repo.lfstatus: |
899 # For some reason setting repo.lfstatus in hgwebarchive only changes the |
|
900 # unfiltered repo's attr, so check that as well. |
|
901 if not repo.lfstatus and not repo.unfiltered().lfstatus: |
892 return orig(repo, dest, node, kind, decode, matchfn, prefix, mtime, |
902 return orig(repo, dest, node, kind, decode, matchfn, prefix, mtime, |
893 subrepos) |
903 subrepos) |
894 |
904 |
895 # No need to lock because we are only reading history and |
905 # No need to lock because we are only reading history and |
896 # largefile caches, neither of which are modified. |
906 # largefile caches, neither of which are modified. |