changeset 47598:305356a7ec99

mq: use `set_tracked` in `qrename` This is the new shiny API. Differential Revision: https://phab.mercurial-scm.org/D11018
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Thu, 08 Jul 2021 04:32:31 +0200
parents 4b76f5ca79c4
children cce51119bfe6
files hgext/mq.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/mq.py	Thu Jul 08 03:42:14 2021 +0200
+++ b/hgext/mq.py	Thu Jul 08 04:32:31 2021 +0200
@@ -3641,7 +3641,7 @@
         with r.wlock():
             if r.dirstate[patch] == b'a':
                 r.dirstate.drop(patch)
-                r.dirstate.add(name)
+                r.dirstate.set_tracked(name)
             else:
                 wctx.copy(patch, name)
                 wctx.forget([patch])