Mercurial > public > mercurial-scm > hg-stable
comparison 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 |
comparison
equal
deleted
inserted
replaced
28383:e13e0e189990 | 28384:3356bf61fa25 |
---|---|
1500 props = props.copy() | 1500 props = props.copy() |
1501 props.update(templatekw.keywords) | 1501 props.update(templatekw.keywords) |
1502 props['templ'] = self.t | 1502 props['templ'] = self.t |
1503 props['ctx'] = ctx | 1503 props['ctx'] = ctx |
1504 props['repo'] = self.repo | 1504 props['repo'] = self.repo |
1505 props['ui'] = self.repo.ui | |
1505 props['revcache'] = {'copies': copies} | 1506 props['revcache'] = {'copies': copies} |
1506 props['cache'] = self.cache | 1507 props['cache'] = self.cache |
1507 | 1508 |
1508 try: | 1509 try: |
1509 # write header | 1510 # write header |