getrenamedfn: get copy data from context object if configured
ClosedPublic

Authored by martinvonz on Mar 20 2019, 3:03 PM.

Details

Summary

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.

Diff Detail

Repository
rHG Mercurial
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.