# HG changeset patch # User Pierre-Yves David # Date 1625712456 -7200 # Node ID 8f0c3533e28c71d147b9dd6a3ce5e1c799005974 # Parent 4dca29b00405b2b8677cfc50d6a02865cebb29dd revert: use `set_untracked` when performing a revert This is the new shiny API. Differential Revision: https://phab.mercurial-scm.org/D11022 diff -r 4dca29b00405 -r 8f0c3533e28c mercurial/cmdutil.py --- a/mercurial/cmdutil.py Thu Jul 08 04:26:30 2021 +0200 +++ b/mercurial/cmdutil.py Thu Jul 08 04:47:36 2021 +0200 @@ -3549,7 +3549,7 @@ repo.wvfs.unlinkpath(f, rmdir=rmdir) except OSError: pass - repo.dirstate.remove(f) + repo.dirstate.set_untracked(f) def prntstatusmsg(action, f): exact = names[f] @@ -3587,7 +3587,7 @@ for f in actions[b'drop'][0]: audit_path(f) prntstatusmsg(b'drop', f) - repo.dirstate.remove(f) + repo.dirstate.set_untracked(f) normal = None if node == parent: