Patchwork D11194: narrow: stop using `drop` in the `updateworkingcopy`

login
register
mail settings
Submitter phabricator
Date July 19, 2021, 3:44 p.m.
Message ID <differential-rev-PHID-DREV-jff2lkhxinkgxrj2l2et-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/49505/
State Superseded
Headers show

Comments

phabricator - July 19, 2021, 3:44 p.m.
marmoute created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.

REVISION SUMMARY
  Let us use the new API instead.

REPOSITORY
  rHG Mercurial

BRANCH
  default

REVISION DETAIL
  https://phab.mercurial-scm.org/D11194

AFFECTED FILES
  mercurial/narrowspec.py

CHANGE DETAILS




To: marmoute, #hg-reviewers
Cc: mercurial-patches, mercurial-devel

Patch

diff --git a/mercurial/narrowspec.py b/mercurial/narrowspec.py
--- a/mercurial/narrowspec.py
+++ b/mercurial/narrowspec.py
@@ -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'.']