largefile: use `update_file` instead of `remove` in `mergerecordupdates`
This is the newer, more semantic API.
Differential Revision: https://phab.mercurial-scm.org/D11140
--- a/hgext/largefiles/overrides.py Sat Jul 17 00:15:31 2021 +0200
+++ b/hgext/largefiles/overrides.py Mon Jul 19 03:20:04 2021 +0200
@@ -654,7 +654,9 @@
]:
# this should be executed before 'orig', to execute 'remove'
# before all other actions
- repo.dirstate.remove(lfile)
+ repo.dirstate.update_file(
+ lfile, p1_tracked=True, wc_tracked=False
+ )
# make sure lfile doesn't get synclfdirstate'd as normal
lfdirstate.add(lfile)
lfdirstate.write()