mercurial/cmdutil.py
changeset 50038 6cdcab3ae3fa
parent 50029 28dfb2df4ab9
child 50042 237e9d2e1c71
--- a/mercurial/cmdutil.py	Wed Jan 25 12:46:22 2023 +0100
+++ b/mercurial/cmdutil.py	Tue Dec 13 15:01:59 2022 +0100
@@ -3392,7 +3392,7 @@
     names = {}
     uipathfn = scmutil.getuipathfn(repo, legacyrelativevalue=True)
 
-    with repo.wlock():
+    with repo.wlock(), repo.dirstate.changing_files(repo):
         ## filling of the `names` mapping
         # walk dirstate to fill `names`