mercurial/commands.py
changeset 4958 9a2a73ea6135
parent 4950 30847b8af7ca
child 4959 97b734fb9c6f
--- a/mercurial/commands.py
+++ b/mercurial/commands.py
@@ -675,7 +675,7 @@ def copy(ui, repo, *pats, **opts):
     This command takes effect in the next commit. To undo a copy
     before that, see hg revert.
     """
-    wlock = repo.wlock(0)
+    wlock = repo.wlock(False)
     errs, copied = docopy(ui, repo, pats, opts, wlock)
     return errs
 
@@ -2247,7 +2247,7 @@ def rename(ui, repo, *pats, **opts):
     This command takes effect in the next commit. To undo a rename
     before that, see hg revert.
     """
-    wlock = repo.wlock(0)
+    wlock = repo.wlock(False)
     errs, copied = docopy(ui, repo, pats, opts, wlock)
     names = []
     for abs, rel, exact in copied: