# HG changeset patch # User Pierre-Yves David # Date 2021-07-19 15:33:45 # Node ID 5bcd305389c77351797f5527048364aed315e507 # Parent d25eb277e9255f19a49d687cf90fd3af82efc4c2 narrow: stop using `drop` in the `updateworkingcopy` Let us use the new API instead. Differential Revision: https://phab.mercurial-scm.org/D11194 diff --git a/mercurial/narrowspec.py b/mercurial/narrowspec.py --- a/mercurial/narrowspec.py +++ b/mercurial/narrowspec.py @@ -343,7 +343,7 @@ def updateworkingcopy(repo, assumeclean= 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'.']