Patchwork D11021: mq: use `set_untracked` in `qrename`

login
register
mail settings
Submitter phabricator
Date July 8, 2021, 7:35 a.m.
Message ID <differential-rev-PHID-DREV-mnkjjzczltanp7qiychs-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/49336/
State Superseded
Headers show

Comments

phabricator - July 8, 2021, 7:35 a.m.
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




To: marmoute, #hg-reviewers
Cc: mercurial-patches, mercurial-devel

Patch

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)