Patchwork D11442: dirstate: use `reset_state` instead of `dropfile` in test-rebuildstate.t

login
register
mail settings
Submitter phabricator
Date Sept. 16, 2021, 2:46 p.m.
Message ID <differential-rev-PHID-DREV-ayipah5mfvixanc6iiit-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/49758/
State Superseded
Headers show

Comments

phabricator - Sept. 16, 2021, 2:46 p.m.
marmoute created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.

REVISION SUMMARY
  As `dirstatemap.dropfile` is on its way out.

REPOSITORY
  rHG Mercurial

BRANCH
  default

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

AFFECTED FILES
  tests/test-rebuildstate.t

CHANGE DETAILS




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

Patch

diff --git a/tests/test-rebuildstate.t b/tests/test-rebuildstate.t
--- a/tests/test-rebuildstate.t
+++ b/tests/test-rebuildstate.t
@@ -25,7 +25,7 @@ 
   >                 possibly_dirty=True,
   >             )
   >       else:
-  >         repo.dirstate._map.dropfile(file)
+  >         repo.dirstate._map.reset_state(file)
   >         repo.dirstate._dirty = True
   > 
   >     repo.dirstate.write(repo.currenttransaction())