largefile: use `set_tracked` in the `hg copy` overwrite
authorPierre-Yves David <pierre-yves.david@octobus.net>
Thu, 08 Jul 2021 01:24:29 +0200
changeset 47650 1e5a9783bba8
parent 47649 4b17971f0181
child 47651 40811cc7fa56
largefile: use `set_tracked` in the `hg copy` overwrite This is the new shiny API. Differential Revision: https://phab.mercurial-scm.org/D11106
hgext/largefiles/overrides.py
--- 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'):