Mercurial > hg
diff hgext/largefiles/overrides.py @ 47655:0ab58b1f228f
largefile: use `set_untracked` in the override of copy/rename
This is the new shiny API
Differential Revision: https://phab.mercurial-scm.org/D11111
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Thu, 08 Jul 2021 03:54:54 +0200 |
parents | 2af9709ea13c |
children | 9fa1085fbd63 |
line wrap: on
line diff
--- a/hgext/largefiles/overrides.py Thu Jul 08 03:50:08 2021 +0200 +++ b/hgext/largefiles/overrides.py Thu Jul 08 03:54:54 2021 +0200 @@ -857,7 +857,7 @@ # The file is gone, but this deletes any empty parent # directories as a side-effect. repo.wvfs.unlinkpath(srclfile, ignoremissing=True) - lfdirstate.remove(srclfile) + lfdirstate.set_untracked(srclfile) else: util.copyfile(repo.wjoin(srclfile), repo.wjoin(destlfile))