Mercurial > hg
changeset 47603:7c64688e554d
revert: use `set_untracked` instead of `drop` when applicable
This is the new shiny API.
Differential Revision: https://phab.mercurial-scm.org/D11026
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Thu, 08 Jul 2021 18:30:24 +0200 |
parents | 8f0c3533e28c |
children | 090fc6a95e50 |
files | mercurial/cmdutil.py |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/cmdutil.py Thu Jul 08 04:47:36 2021 +0200 +++ b/mercurial/cmdutil.py Thu Jul 08 18:30:24 2021 +0200 @@ -3564,12 +3564,12 @@ ) if choice == 0: prntstatusmsg(b'forget', f) - repo.dirstate.drop(f) + repo.dirstate.set_untracked(f) else: excluded_files.append(f) else: prntstatusmsg(b'forget', f) - repo.dirstate.drop(f) + repo.dirstate.set_untracked(f) for f in actions[b'remove'][0]: audit_path(f) if interactive: