HomePhabricator

prefetch: use scmutil.fileprefetchhooks if cmdutil._revertprefetch unavailable

Authored by spectral.

Description

prefetch: use scmutil.fileprefetchhooks if cmdutil._revertprefetch unavailable

Mercurial commit f1f8b655da32 removed cmdutil._revertprefetch, preferring
scmutil.fileprefetchhooks instead. This commit only uses fileprefetchhooks if
cmdutil._revertprefetch is not available, preferring the more focused mechanism
to attempt to reduce potential duplicate effort.

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