# HG changeset patch # User Pierre-Yves David # Date 2021-07-08 02:32:31 # Node ID 305356a7ec99502dfbbf5c4c2277f84f08dac972 # Parent 4b76f5ca79c44e9dd15cb252b2b4c616b58c4811 mq: use `set_tracked` in `qrename` This is the new shiny API. Differential Revision: https://phab.mercurial-scm.org/D11018 diff --git a/hgext/mq.py b/hgext/mq.py --- a/hgext/mq.py +++ b/hgext/mq.py @@ -3641,7 +3641,7 @@ def rename(ui, repo, patch, name=None, * 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])