largefile: use `update_file` instead of `add` in `synclfdirstate`
This is the newer, more semantic API.
Differential Revision: https://phab.mercurial-scm.org/D11197
--- a/hgext/largefiles/lfutil.py Mon Jul 19 03:19:06 2021 +0200
+++ b/hgext/largefiles/lfutil.py Mon Jul 19 08:59:00 2021 +0200
@@ -575,7 +575,7 @@
elif state == b'r':
lfdirstate.update_file(lfile, p1_tracked=True, wc_tracked=False)
elif state == b'a':
- lfdirstate.add(lfile)
+ lfdirstate.update_file(lfile, p1_tracked=False, wc_tracked=True)
def markcommitted(orig, ctx, node):