--- a/mercurial/commands.py Thu Mar 09 13:02:13 2023 -0600
+++ b/mercurial/commands.py Mon Mar 20 23:16:14 2023 +0100
@@ -2507,7 +2507,7 @@
"""
opts = pycompat.byteskwargs(opts)
- context = repo.dirstate.changing_files
+ context = lambda repo: repo.dirstate.changing_files(repo)
rev = opts.get(b'at_rev')
ctx = None
if rev:
@@ -6019,7 +6019,7 @@
Returns 0 on success, 1 if errors are encountered.
"""
opts = pycompat.byteskwargs(opts)
- context = repo.dirstate.changing_files
+ context = lambda repo: repo.dirstate.changing_files(repo)
rev = opts.get(b'at_rev')
ctx = None
if rev: