D11177: fix: use `set_possibly_dirty` instead of `normallookup`
marmoute (Pierre-Yves David)
phabricator at mercurial-scm.org
Mon Jul 19 14:11:01 UTC 2021
marmoute created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.
REVISION SUMMARY
This is the newer, more semantic API.
REPOSITORY
rHG Mercurial
BRANCH
default
REVISION DETAIL
https://phab.mercurial-scm.org/D11177
AFFECTED FILES
hgext/fix.py
CHANGE DETAILS
diff --git a/hgext/fix.py b/hgext/fix.py
--- a/hgext/fix.py
+++ b/hgext/fix.py
@@ -757,7 +757,7 @@
fctx = ctx[path]
fctx.write(data, fctx.flags())
if repo.dirstate[path] == b'n':
- repo.dirstate.normallookup(path)
+ repo.dirstate.set_possibly_dirty(path)
oldparentnodes = repo.dirstate.parents()
newparentnodes = [replacements.get(n, n) for n in oldparentnodes]
To: marmoute, #hg-reviewers
Cc: mercurial-patches, mercurial-devel
More information about the Mercurial-devel
mailing list