context: use `dirstate.set_tracked` for `revert`
authorPierre-Yves David <pierre-yves.david@octobus.net>
Thu, 08 Jul 2021 01:20:46 +0200
changeset 47596 791e2333d3d3
parent 47595 14e2f4bd5f16
child 47597 4b76f5ca79c4
context: use `dirstate.set_tracked` for `revert` This is the new shiny API. Differential Revision: https://phab.mercurial-scm.org/D11016
mercurial/cmdutil.py
--- a/mercurial/cmdutil.py	Thu Jul 08 00:57:25 2021 +0200
+++ b/mercurial/cmdutil.py	Thu Jul 08 01:20:46 2021 +0200
@@ -3686,7 +3686,7 @@
         if f not in newlyaddedandmodifiedfiles:
             prntstatusmsg(b'add', f)
             checkout(f)
-            repo.dirstate.add(f)
+            repo.dirstate.set_tracked(f)
 
     normal = repo.dirstate.normallookup
     if node == parent and p2 == repo.nullid: