# HG changeset patch # User Jun Wu # Date 1493859818 25200 # Node ID 347ab2d47463fce7a7ae17ee209fbb0e50e824e6 # Parent 4240be02df79f901b0bd4b249a1acb9f647694c8 annotate: use fctx.isbinary diff -r 4240be02df79 -r 347ab2d47463 mercurial/commands.py --- a/mercurial/commands.py Wed May 03 18:02:00 2017 -0700 +++ b/mercurial/commands.py Wed May 03 18:03:38 2017 -0700 @@ -452,7 +452,7 @@ 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