narrow: stop using `drop` in the `updateworkingcopy`
authorPierre-Yves David <pierre-yves.david@octobus.net>
Mon, 19 Jul 2021 17:33:45 +0200
changeset 47752 5bcd305389c7
parent 47751 d25eb277e925
child 47753 aca197f5ef7d
narrow: stop using `drop` in the `updateworkingcopy` Let us use the new API instead. Differential Revision: https://phab.mercurial-scm.org/D11194
mercurial/narrowspec.py
--- a/mercurial/narrowspec.py	Sun Jul 18 22:32:55 2021 +0200
+++ b/mercurial/narrowspec.py	Mon Jul 19 17:33:45 2021 +0200
@@ -343,7 +343,7 @@
     for f in sorted(status.ignored):
         repo.ui.status(_(b'not deleting ignored file %s\n') % uipathfn(f))
     for f in clean + trackeddirty:
-        ds.drop(f)
+        ds.update_file(f, p1_tracked=False, wc_tracked=False)
 
     pctx = repo[b'.']