# HG changeset patch # User Pierre-Yves David # Date 2021-07-19 03:43:43 # Node ID b66ae4468c9ab798083b900018b5f1803f0b0a09 # Parent 4d1ae9cba551b75fc5e0480cd8b79581579d1c67 copy: use `set_tracked` instead of `normallookup` in `dirstatecopy` This is the newer, more semantic API. Differential Revision: https://phab.mercurial-scm.org/D11171 diff --git a/mercurial/scmutil.py b/mercurial/scmutil.py --- a/mercurial/scmutil.py +++ b/mercurial/scmutil.py @@ -1456,7 +1456,7 @@ def dirstatecopy(ui, repo, wctx, src, ds origsrc = repo.dirstate.copied(src) or src if dst == origsrc: # copying back a copy? if repo.dirstate[dst] not in b'mn' and not dryrun: - repo.dirstate.normallookup(dst) + repo.dirstate.set_tracked(dst) else: if repo.dirstate[origsrc] == b'a' and origsrc == src: if not ui.quiet: