largefile: use `set_tracked` in the `hg copy` overwrite
This is the new shiny API.
Differential Revision: https://phab.mercurial-scm.org/D11106
--- a/hgext/largefiles/overrides.py Thu Jul 08 01:24:11 2021 +0200
+++ b/hgext/largefiles/overrides.py Thu Jul 08 01:24:29 2021 +0200
@@ -863,7 +863,7 @@
else:
util.copyfile(repo.wjoin(srclfile), repo.wjoin(destlfile))
- lfdirstate.add(destlfile)
+ lfdirstate.set_tracked(destlfile)
lfdirstate.write()
except error.Abort as e:
if e.message != _(b'no files to copy'):