changeset 47672 | 0efaa1bbad2b |
parent 47668 | 724a77979b47 |
child 47674 | ff97e793ed36 |
--- a/mercurial/dirstatemap.py Thu Jul 15 00:27:29 2021 +0200 +++ b/mercurial/dirstatemap.py Wed Jul 14 23:32:35 2021 +0200 @@ -222,7 +222,7 @@ elif entry.from_p2: size = FROM_P2 self.otherparentset.add(f) - if size == 0: + if entry is not None and not (entry.merged or entry.from_p2): self.copymap.pop(f, None) if entry is not None and not entry.removed and "_dirs" in self.__dict__: