diff mercurial/cmdutil.py @ 28384:3356bf61fa25

formatter: make labels work with templated output To describe the bug this fix is addressing, one can do ``$ hg status -T "{label('red', path)}\n" --color=debug`` and observe that the label is not applied before my fix and applied with it.
author Kostia Balytskyi <ikostia@fb.com>
date Tue, 08 Mar 2016 04:08:33 -0800
parents 97cb1aeaca78
children 6a4a4ca21907
line wrap: on
line diff
--- a/mercurial/cmdutil.py	Tue Mar 08 14:32:03 2016 +0000
+++ b/mercurial/cmdutil.py	Tue Mar 08 04:08:33 2016 -0800
@@ -1502,6 +1502,7 @@
         props['templ'] = self.t
         props['ctx'] = ctx
         props['repo'] = self.repo
+        props['ui'] = self.repo.ui
         props['revcache'] = {'copies': copies}
         props['cache'] = self.cache