mirror of
https://github.com/facebook/sapling.git
synced 2024-10-07 15:27:13 +03:00
annotate: use fctx.isbinary
This commit is contained in:
parent
6e4fd814fb
commit
04c3104f68
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user