author | Pierre-Yves David <pierre-yves.david@octobus.net> |
Wed, 29 Sep 2021 14:56:05 +0200 | |
changeset 48103 | bac753df8021 |
parent 48102 | 5b6ffd6be480 |
child 48104 | 0dc9ced02a3b |
hgext/mq.py | file | annotate | diff | comparison | revisions |
--- 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: