[Updated] D8464: locking: wait for locks in `hg cp` and `hg mv`

spectral (Kyle Lippincott) phabricator at mercurial-scm.org
Thu May 7 18:21:56 UTC 2020


Closed by commit rHGa9ff0742c8ea: locking: wait for locks in `hg cp` and `hg mv` (authored by spectral).
This revision was automatically updated to reflect the committed changes.
This revision was not accepted when it landed; it landed in state "Needs Review".

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D8464?vs=21166&id=21307

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D8464/new/

REVISION DETAIL
  https://phab.mercurial-scm.org/D8464

AFFECTED FILES
  mercurial/commands.py

CHANGE DETAILS

diff --git a/mercurial/commands.py b/mercurial/commands.py
--- a/mercurial/commands.py
+++ b/mercurial/commands.py
@@ -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)
 
 



To: spectral, #hg-reviewers, marmoute
Cc: marmoute, mercurial-patches
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mercurial-scm.org/pipermail/mercurial-patches/attachments/20200507/5bea2f66/attachment-0001.html>


More information about the Mercurial-patches mailing list