# HG changeset patch # User Pierre-Yves David # Date 1626677940 -7200 # Node ID 9e9c82d6f96fd3986c6b53fcee479a572331aa0f # Parent 4d845260a71340d678d4b218928e64c0aba33c01 largefile: use `update_file` instead of `add` in `synclfdirstate` This is the newer, more semantic API. Differential Revision: https://phab.mercurial-scm.org/D11197 diff -r 4d845260a713 -r 9e9c82d6f96f hgext/largefiles/lfutil.py --- 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):