[Updated] D11016: context: use `dirstate.set_tracked` for `revert`

marmoute (Pierre-Yves David) phabricator at mercurial-scm.org
Thu Jul 15 16:55:27 UTC 2021


Closed by commit rHG791e2333d3d3: context: use `dirstate.set_tracked` for `revert` (authored by marmoute).
This revision was automatically updated to reflect the committed changes.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D11016?vs=29252&id=29274

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D11016/new/

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

AFFECTED FILES
  mercurial/cmdutil.py

CHANGE DETAILS

diff --git a/mercurial/cmdutil.py b/mercurial/cmdutil.py
--- a/mercurial/cmdutil.py
+++ b/mercurial/cmdutil.py
@@ -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:



To: marmoute, #hg-reviewers, Alphare
Cc: mercurial-patches
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial-patches/attachments/20210715/8f21a575/attachment-0002.html>


More information about the Mercurial-patches mailing list