Mercurial > hg-stable
changeset 47596:791e2333d3d3
context: use `dirstate.set_tracked` for `revert`
This is the new shiny API.
Differential Revision: https://phab.mercurial-scm.org/D11016
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Thu, 08 Jul 2021 01:20:46 +0200 |
parents | 14e2f4bd5f16 |
children | 4b76f5ca79c4 |
files | mercurial/cmdutil.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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: