mercurial/cmdutil.py
changeset 49084 ea98850a136e
parent 49032 3f6ef67e7a60
parent 49067 770e1352e9f9
child 49144 f45e1618cbf6
--- a/mercurial/cmdutil.py	Fri Apr 15 11:20:49 2022 -0400
+++ b/mercurial/cmdutil.py	Tue Apr 19 10:53:58 2022 -0400
@@ -2934,7 +2934,7 @@
             def filectxfn(repo, ctx_, path):
                 try:
                     # Return None for removed files.
-                    if path in wctx.removed():
+                    if path in wctx.removed() and path in filestoamend:
                         return None
 
                     # If the file being considered is not amongst the files