[PATCH 4 of 6 V3] cat: migrate to the fileprefetch callback mechanism

Matt Harbison mharbison72 at gmail.com
Tue Feb 13 00:39:17 EST 2018


# HG changeset patch
# User Matt Harbison <matt_harbison at yahoo.com>
# Date 1518328282 18000
#      Sun Feb 11 00:51:22 2018 -0500
# Node ID c63a31b38a09c007b3e4e7f09de8c3b591b55d0b
# Parent  243fe0926905286bbce9078de38ea1565b03028a
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
@@ -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)


More information about the Mercurial-devel mailing list