[Updated] D11022: revert: use `set_untracked` when performing a revert
marmoute (Pierre-Yves David)
phabricator at mercurial-scm.org
Sat Jul 10 21:03:35 UTC 2021
marmoute edited the summary of this revision.
marmoute updated this revision to Diff 29153.
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D11022?vs=28959&id=29153
BRANCH
default
CHANGES SINCE LAST ACTION
https://phab.mercurial-scm.org/D11022/new/
REVISION DETAIL
https://phab.mercurial-scm.org/D11022
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
@@ -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:
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/b8cf65e7/attachment-0002.html>
More information about the Mercurial-patches
mailing list