Mercurial > hg
diff hgext/largefiles/overrides.py @ 47650:1e5a9783bba8
largefile: use `set_tracked` in the `hg copy` overwrite
This is the new shiny API.
Differential Revision: https://phab.mercurial-scm.org/D11106
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Thu, 08 Jul 2021 01:24:29 +0200 |
parents | 4b17971f0181 |
children | 12300ee6840b |
line wrap: on
line diff
--- 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'):