hgext/mq.py
changeset 47598 305356a7ec99
parent 47597 4b76f5ca79c4
child 47601 4dca29b00405
--- 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])