Mercurial > hg
comparison hgext/largefiles/overrides.py @ 47653:00d70f61d856
largefile: directly use set_untracked() for removing files
This is new shiny API.
Differential Revision: https://phab.mercurial-scm.org/D11109
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Thu, 08 Jul 2021 03:33:56 +0200 |
parents | 12300ee6840b |
children | 2af9709ea13c |
comparison
equal
deleted
inserted
replaced
47652:12300ee6840b | 47653:00d70f61d856 |
---|---|
225 for f in remove: | 225 for f in remove: |
226 repo.wvfs.unlinkpath(f, ignoremissing=True) | 226 repo.wvfs.unlinkpath(f, ignoremissing=True) |
227 repo[None].forget(remove) | 227 repo[None].forget(remove) |
228 | 228 |
229 for f in remove: | 229 for f in remove: |
230 lfutil.synclfdirstate( | 230 lfdirstate.set_untracked(lfutil.splitstandin(f)) |
231 repo, lfdirstate, lfutil.splitstandin(f), False | |
232 ) | |
233 | 231 |
234 lfdirstate.write() | 232 lfdirstate.write() |
235 | 233 |
236 return result | 234 return result |
237 | 235 |