( )⚙ D6418 copies: split up _chain() in naive chaining and filtering steps

This is an archive of the discontinued Mercurial Phabricator instance.

copies: split up _chain() in naive chaining and filtering steps
ClosedPublic

Authored by martinvonz on May 21 2019, 8:32 PM.

Details

Summary

The function now has two clearly defined steps. The first step is the
actual chaining. This step is very cheap. The second step is filtering
out invalid copies. This step is expensive. For changeset-centric copy
tracing, I want to do the filtering step only at the end. This patch
prepares for 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.