hgext/largefiles/overrides.py
changeset 41760 1eb2fc21da12
parent 41676 0531dff73d0b
child 42456 87a34c767384
--- a/hgext/largefiles/overrides.py	Wed Feb 20 19:28:51 2019 -0500
+++ b/hgext/largefiles/overrides.py	Wed Feb 20 18:02:28 2019 -0500
@@ -664,9 +664,9 @@
                                   _('destination largefile already exists'))
             copiedfiles.append((src, dest))
             orig(src, dest, *args, **kwargs)
-        with extensions.wrappedfunction(util, 'copyfile', overridecopyfile), \
-             extensions.wrappedfunction(scmutil, 'match', overridematch):
-            result += orig(ui, repo, listpats, opts, rename)
+        with extensions.wrappedfunction(util, 'copyfile', overridecopyfile):
+            with extensions.wrappedfunction(scmutil, 'match', overridematch):
+                result += orig(ui, repo, listpats, opts, rename)
 
         lfdirstate = lfutil.openlfdirstate(ui, repo)
         for (src, dest) in copiedfiles: