largefile: use `update_file` instead of `add` in `mergerecordupdates`
This is the newer, more semantic API.
Differential Revision: https://phab.mercurial-scm.org/D11196
--- a/hgext/largefiles/overrides.py Mon Jul 19 09:05:25 2021 +0200
+++ b/hgext/largefiles/overrides.py Mon Jul 19 03:19:06 2021 +0200
@@ -658,7 +658,7 @@
lfile, p1_tracked=True, wc_tracked=False
)
# make sure lfile doesn't get synclfdirstate'd as normal
- lfdirstate.add(lfile)
+ lfdirstate.update_file(lfile, p1_tracked=False, wc_tracked=True)
lfdirstate.write()
return orig(repo, actions, branchmerge, getfiledata)