This is an archive of the discontinued Mercurial Phabricator instance.

remotefilelog: check if RFL is enabled in getrenamedfn() override
ClosedPublic

Authored by martinvonz on Jun 19 2019, 2:31 PM.

Details

Summary

In 8a0e03f7baf4 (remotefilelog: move most setup from onetimesetup() to
uisetup(), 2019-05-01), I said:

All the wrappers moved in this patch check if remotefilelog is enabled
before they change behavior, so it's safe to always wrap.

That was clearly a lie, because getrenamedfn() didn't. That made
e.g. hg log -T {file_copies} unbearably slow. This patch fixes that.

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.