HomePhabricator

getrenamedfn: get copy data from context object if configured

Authored by martinvonz.

Description

getrenamedfn: get copy data from context object if configured

The function returned from getrenamedfn() calls
filelog.renamed(). That won't work when storing copy metadata in the
changeset.

I've just switched to a simple implementation here. We may or may not
need to optimize it later, possibly by optimizing the callers.

No more tests fail with "--extra-config-opt
experimental.copies.read-from=compatibility)" than they did before
this patch.

Differential Revision: https://phab.mercurial-scm.org/D6162

Details

Committed
martinvonzJan 18 2019, 4:13 PM
Differential Revision
D6162: getrenamedfn: get copy data from context object if configured
Parents
rHGf0def07fa82f: branchmap: implement __contains__()
Branches
Unknown
Tags
Unknown