##// END OF EJS Templates
cat: migrate to the fileprefetch callback mechanism
Matt Harbison -
r36157:3a90159c default
parent child Browse files
Show More
@@ -2187,14 +2187,14 b' def cat(ui, repo, ctx, matcher, basefm, '
2187 mfnode = ctx.manifestnode()
2187 mfnode = ctx.manifestnode()
2188 try:
2188 try:
2189 if mfnode and mfl[mfnode].find(file)[0]:
2189 if mfnode and mfl[mfnode].find(file)[0]:
2190 _prefetchfiles(repo, ctx, [file])
2190 scmutil.fileprefetchhooks(repo, ctx, [file])
2191 write(file)
2191 write(file)
2192 return 0
2192 return 0
2193 except KeyError:
2193 except KeyError:
2194 pass
2194 pass
2195
2195
2196 files = [f for f in ctx.walk(matcher)]
2196 files = [f for f in ctx.walk(matcher)]
2197 _prefetchfiles(repo, ctx, files)
2197 scmutil.fileprefetchhooks(repo, ctx, files)
2198
2198
2199 for abs in files:
2199 for abs in files:
2200 write(abs)
2200 write(abs)
General Comments 0
You need to be logged in to leave comments. Login now