D11021: mq: use `set_untracked` in `qrename`
marmoute (Pierre-Yves David)
phabricator at mercurial-scm.org
Thu Jul 8 07:35:33 UTC 2021
marmoute created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.
REVISION SUMMARY
This is the new shinny API.
REPOSITORY
rHG Mercurial
BRANCH
default
REVISION DETAIL
https://phab.mercurial-scm.org/D11021
AFFECTED FILES
hgext/mq.py
CHANGE DETAILS
diff --git a/hgext/mq.py b/hgext/mq.py
--- a/hgext/mq.py
+++ b/hgext/mq.py
@@ -3639,7 +3639,7 @@
wctx = r[None]
with r.wlock():
if r.dirstate[patch] == b'a':
- r.dirstate.drop(patch)
+ r.dirstate.set_untracked(patch)
r.dirstate.set_tracked(name)
else:
wctx.copy(patch, name)
To: marmoute, #hg-reviewers
Cc: mercurial-patches, mercurial-devel
More information about the Mercurial-devel
mailing list