mercurial/dirstatemap.py
changeset 48124 08e04bb0bff3
parent 48123 771c90807a2b
child 48125 de793f249852
equal deleted inserted replaced
48123:771c90807a2b 48124:08e04bb0bff3
   477             return False
   477             return False
   478         else:
   478         else:
   479             self._dirs_decr(f, old_entry=entry, remove_variant=not entry.added)
   479             self._dirs_decr(f, old_entry=entry, remove_variant=not entry.added)
   480             if not entry.merged:
   480             if not entry.merged:
   481                 self.copymap.pop(f, None)
   481                 self.copymap.pop(f, None)
   482             if entry.added:
   482             entry.set_untracked()
       
   483             if not entry.any_tracked:
   483                 self._map.pop(f, None)
   484                 self._map.pop(f, None)
   484             else:
       
   485                 entry.set_untracked()
       
   486             return True
   485             return True
   487 
   486 
   488 
   487 
   489 if rustmod is not None:
   488 if rustmod is not None:
   490 
   489