changeset 40717:92c574684f75

annotate: remove dead code to not convert path to relative path It's annotate. There should be at least one file path specified.
author Yuya Nishihara <yuya@tcha.org>
date Sat, 24 Nov 2018 20:05:55 +0900
parents d4c550c703d7
children 5bcf264bb1a0
files mercurial/commands.py
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/commands.py	Sat Nov 24 18:41:44 2018 +0900
+++ b/mercurial/commands.py	Sat Nov 24 20:05:55 2018 +0900
@@ -412,8 +412,7 @@
         rootfm.startitem()
         rootfm.data(path=abs)
         if not opts.get('text') and fctx.isbinary():
-            rootfm.plain(_("%s: binary file\n")
-                         % ((pats and m.rel(abs)) or abs))
+            rootfm.plain(_("%s: binary file\n") % m.rel(abs))
             continue
 
         fm = rootfm.nested('lines', tmpl='{rev}: {line}')