diff -r b0a4de6c14f8 -r ca7bde5dbafb mercurial/metadata.py --- a/mercurial/metadata.py Thu Jul 18 12:03:29 2024 +0200 +++ b/mercurial/metadata.py Thu Jul 18 12:36:12 2024 +0200 @@ -433,14 +433,12 @@ # Iteration over d1 content will deal with all cases, but the one in the # first column of the table. for filename, d1 in diff_p1.items(): - d2 = diff_p2.pop(filename, None) if d2 is None: # this deal with the first line of the table. _process_other_unchanged(md, mas, filename, d1) else: - if d1[0][0] is None and d2[0][0] is None: # case 🄼 — both deleted the file. md.mark_added(filename)