##// END OF EJS Templates
grep: reuse the first "util.binary()" result for efficiency...
FUJIWARA Katsunori -
r20836:a8b4541b default
parent child Browse files
Show More
@@ -3344,6 +3344,7 b' def grep(ui, repo, pattern, *pats, **opt'
3344 datefunc = ui.quiet and util.shortdate or util.datestr
3344 datefunc = ui.quiet and util.shortdate or util.datestr
3345 found = False
3345 found = False
3346 filerevmatches = {}
3346 filerevmatches = {}
3347 @util.cachefunc
3347 def binary():
3348 def binary():
3348 flog = getfile(fn)
3349 flog = getfile(fn)
3349 return util.binary(flog.read(ctx.filenode(fn)))
3350 return util.binary(flog.read(ctx.filenode(fn)))
General Comments 0
You need to be logged in to leave comments. Login now