changeset 36140:3a90159c2c2e

cat: migrate to the fileprefetch callback mechanism
author Matt Harbison <matt_harbison@yahoo.com>
date Sun, 11 Feb 2018 00:51:22 -0500
parents b72c6ff4e4c0
children 62719115875d
files mercurial/cmdutil.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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)