dirstate: use `reset_state` instead of `dropfile` in test-rebuildstate.t
authorPierre-Yves David <pierre-yves.david@octobus.net>
Thu, 16 Sep 2021 15:21:22 +0200
changeset 48002 44fc75bd1580
parent 48001 af84aa1a66f1
child 48003 5e7eea915019
dirstate: use `reset_state` instead of `dropfile` in test-rebuildstate.t As `dirstatemap.dropfile` is on its way out. Differential Revision: https://phab.mercurial-scm.org/D11442
tests/test-rebuildstate.t
--- a/tests/test-rebuildstate.t	Thu Sep 16 15:20:28 2021 +0200
+++ b/tests/test-rebuildstate.t	Thu Sep 16 15:21:22 2021 +0200
@@ -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())