[Updated] D11016: context: use `dirstate.set_tracked` for `revert`
marmoute (Pierre-Yves David)
phabricator at mercurial-scm.org
Sat Jul 10 21:03:04 UTC 2021
marmoute edited the summary of this revision.
marmoute updated this revision to Diff 29149.
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D11016?vs=28953&id=29149
BRANCH
default
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/20210710/d8c95921/attachment-0002.html>
More information about the Mercurial-patches
mailing list