diff -r 034979d24c7b -r 9217ab0ecdb8 hgext/largefiles/lfutil.py --- a/hgext/largefiles/lfutil.py Mon Jul 19 03:25:21 2021 +0200 +++ b/hgext/largefiles/lfutil.py Mon Jul 19 03:20:28 2021 +0200 @@ -564,7 +564,7 @@ elif state == b'm': lfdirstate.normallookup(lfile) elif state == b'r': - lfdirstate.remove(lfile) + lfdirstate.update_file(lfile, p1_tracked=True, wc_tracked=False) elif state == b'a': lfdirstate.add(lfile)