mercurial/commands.py
changeset 44800 a9ff0742c8ea
parent 44725 16c361152133
child 44808 aac816f584ad
--- a/mercurial/commands.py	Tue Apr 14 05:37:54 2020 +0200
+++ b/mercurial/commands.py	Tue Apr 21 13:37:45 2020 -0700
@@ -2350,7 +2350,7 @@
     Returns 0 on success, 1 if errors are encountered.
     """
     opts = pycompat.byteskwargs(opts)
-    with repo.wlock(False):
+    with repo.wlock():
         return cmdutil.copy(ui, repo, pats, opts)
 
 
@@ -5807,7 +5807,7 @@
     Returns 0 on success, 1 if errors are encountered.
     """
     opts = pycompat.byteskwargs(opts)
-    with repo.wlock(False):
+    with repo.wlock():
         return cmdutil.copy(ui, repo, pats, opts, rename=True)