Mercurial > public > mercurial-scm > hg
comparison mercurial/commands.py @ 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 | bad05a6afdc8 |
comparison
equal
deleted
inserted
replaced
40716:d4c550c703d7 | 40717:92c574684f75 |
---|---|
410 for abs in ctx.walk(m): | 410 for abs in ctx.walk(m): |
411 fctx = ctx[abs] | 411 fctx = ctx[abs] |
412 rootfm.startitem() | 412 rootfm.startitem() |
413 rootfm.data(path=abs) | 413 rootfm.data(path=abs) |
414 if not opts.get('text') and fctx.isbinary(): | 414 if not opts.get('text') and fctx.isbinary(): |
415 rootfm.plain(_("%s: binary file\n") | 415 rootfm.plain(_("%s: binary file\n") % m.rel(abs)) |
416 % ((pats and m.rel(abs)) or abs)) | |
417 continue | 416 continue |
418 | 417 |
419 fm = rootfm.nested('lines', tmpl='{rev}: {line}') | 418 fm = rootfm.nested('lines', tmpl='{rev}: {line}') |
420 lines = fctx.annotate(follow=follow, skiprevs=skiprevs, | 419 lines = fctx.annotate(follow=follow, skiprevs=skiprevs, |
421 diffopts=diffopts) | 420 diffopts=diffopts) |