D11528: dirstate-item: use `added` instead of the `state` in the `mq` extension
marmoute (Pierre-Yves David)
phabricator at mercurial-scm.org
Fri Oct 1 09:41:49 UTC 2021
marmoute created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.
REPOSITORY
rHG Mercurial
BRANCH
default
REVISION DETAIL
https://phab.mercurial-scm.org/D11528
AFFECTED FILES
hgext/mq.py
CHANGE DETAILS
diff --git a/hgext/mq.py b/hgext/mq.py
--- a/hgext/mq.py
+++ b/hgext/mq.py
@@ -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:
To: marmoute, #hg-reviewers
Cc: mercurial-patches, mercurial-devel
More information about the Mercurial-devel
mailing list