changeset 50094:6cdcab3ae3fa

dirstate: use `dirstate.change_files` to scope the change in `revert` This is the way.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Tue, 13 Dec 2022 15:01:59 +0100
parents 46883d91e2b0
children 7b289a70c2c8
files mercurial/cmdutil.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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`