mercurial/commands.py
changeset 32135 347ab2d47463
parent 32131 35a69efbf190
child 32142 d90ffee93df6
--- 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