From patchwork Sun Feb 11 20:30:17 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [4,of,6] cat: migrate to the fileprefetch callback mechanism From: Matt Harbison X-Patchwork-Id: 27580 Message-Id: <10a1e5ef22e820e5b64d.1518381017@Envy> To: mercurial-devel@mercurial-scm.org Date: Sun, 11 Feb 2018 15:30:17 -0500 # HG changeset patch # User Matt Harbison # Date 1518328282 18000 # Sun Feb 11 00:51:22 2018 -0500 # Node ID 10a1e5ef22e820e5b64da9010cb54b597e68d400 # Parent e4d461d1b9d71253a4563cc6ed7401b6bad32764 cat: migrate to the fileprefetch callback mechanism diff --git a/mercurial/cmdutil.py b/mercurial/cmdutil.py --- a/mercurial/cmdutil.py +++ b/mercurial/cmdutil.py @@ -2188,14 +2188,14 @@ mfnode = ctx.manifestnode() try: if mfnode and mfl[mfnode].find(file)[0]: - _prefetchfiles(repo, ctx, [file]) + fileprefetchhooks(repo, ctx, [file]) write(file) return 0 except KeyError: pass files = [f for f in ctx.walk(matcher)] - _prefetchfiles(repo, ctx, files) + fileprefetchhooks(repo, ctx, files) for abs in files: write(abs)