annotate: use fctx.isbinary

This commit is contained in:
Jun Wu 2017-05-03 18:03:38 -07:00
parent 6e4fd814fb
commit 04c3104f68

View File

@ -452,7 +452,7 @@ def annotate(ui, repo, *pats, **opts):
whitespace=True)
for abs in ctx.walk(m):
fctx = ctx[abs]
if not opts.get('text') and util.binary(fctx.data()):
if not opts.get('text') and fctx.isbinary():
fm.plain(_("%s: binary file\n") % ((pats and m.rel(abs)) or abs))
continue