cat: migrate to the fileprefetch callback mechanism
authorMatt Harbison <matt_harbison@yahoo.com>
Sun, 11 Feb 2018 00:51:22 -0500
changeset 36140 3a90159c2c2e
parent 36139 b72c6ff4e4c0
child 36141 62719115875d
cat: migrate to the fileprefetch callback mechanism
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)