changeset 32135:347ab2d47463

annotate: use fctx.isbinary
author Jun Wu <quark@fb.com>
date Wed, 03 May 2017 18:03:38 -0700
parents 4240be02df79
children f238a483a1fd
files mercurial/commands.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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