changeset 47601:4dca29b00405

mq: use `set_untracked` in `qrename` This is the new shiny API. Differential Revision: https://phab.mercurial-scm.org/D11021
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Thu, 08 Jul 2021 04:26:30 +0200
parents f636dfe83554
children 8f0c3533e28c
files hgext/mq.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/mq.py	Thu Jul 08 01:06:46 2021 +0200
+++ b/hgext/mq.py	Thu Jul 08 04:26:30 2021 +0200
@@ -3640,7 +3640,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)