# HG changeset patch # User Matt Harbison # Date 1518328282 18000 # Node ID 3a90159c2c2e42feee5f641de2e49b93dcf888a7 # Parent b72c6ff4e4c0ba90d72fab0e51da53d7931d96bd cat: migrate to the fileprefetch callback mechanism diff -r b72c6ff4e4c0 -r 3a90159c2c2e mercurial/cmdutil.py --- a/mercurial/cmdutil.py Sun Feb 11 00:49:43 2018 -0500 +++ b/mercurial/cmdutil.py Sun Feb 11 00:51:22 2018 -0500 @@ -2187,14 +2187,14 @@ mfnode = ctx.manifestnode() try: if mfnode and mfl[mfnode].find(file)[0]: - _prefetchfiles(repo, ctx, [file]) + scmutil.fileprefetchhooks(repo, ctx, [file]) write(file) return 0 except KeyError: pass files = [f for f in ctx.walk(matcher)] - _prefetchfiles(repo, ctx, files) + scmutil.fileprefetchhooks(repo, ctx, files) for abs in files: write(abs)