Mercurial > hg
changeset 48091:bac753df8021
dirstate-item: use `added` instead of the `state` in the `mq` extension
Differential Revision: https://phab.mercurial-scm.org/D11528
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Wed, 29 Sep 2021 14:56:05 +0200 |
parents | 5b6ffd6be480 |
children | 0dc9ced02a3b |
files | hgext/mq.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/hgext/mq.py Wed Sep 29 14:55:29 2021 +0200 +++ b/hgext/mq.py Wed Sep 29 14:56:05 2021 +0200 @@ -3638,7 +3638,7 @@ if r and patch in r.dirstate: wctx = r[None] with r.wlock(): - if r.dirstate[patch] == b'a': + if r.dirstate.get_entry(patch).added: r.dirstate.set_untracked(patch) r.dirstate.set_tracked(name) else: