From patchwork Thu Jul 8 07:35:00 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: D11018: mq: use `set_tracked` in `qrename` From: phabricator X-Patchwork-Id: 49333 Message-Id: To: Phabricator Cc: mercurial-devel@mercurial-scm.org Date: Thu, 8 Jul 2021 07:35:00 +0000 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/D11018 AFFECTED FILES hgext/mq.py CHANGE DETAILS To: marmoute, #hg-reviewers Cc: mercurial-patches, mercurial-devel diff --git a/hgext/mq.py b/hgext/mq.py --- a/hgext/mq.py +++ b/hgext/mq.py @@ -3640,7 +3640,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])