diff mercurial/cmdutil.py @ 38540:b1bbff1dd99a

cat: add support for log-like template keywords and functions
author Yuya Nishihara <yuya@tcha.org>
date Sun, 01 Jul 2018 21:47:43 +0900
parents da2a7d8354b2
children 475f5f86eaed
line wrap: on
line diff
--- a/mercurial/cmdutil.py	Sun Jul 01 22:22:07 2018 +0900
+++ b/mercurial/cmdutil.py	Sun Jul 01 21:47:43 2018 +0900
@@ -2290,6 +2290,7 @@
     if decode:
         data = ctx.repo().wwritedata(path, data)
     fm.startitem()
+    fm.context(ctx=ctx)
     fm.write('data', '%s', data)
     fm.data(abspath=path, path=matcher.rel(path))