Mercurial > hg
comparison mercurial/templates/map-cmdline.default @ 39369:34ba47117164
formatter: rename {abspath}/{file} to {path}, and drop relative {path} (BC)
Note that {path} in status is either relative-to-cwd or repository-absolute
depending on the command argument and config knob, which can't be reproduced
by using the {path|relpath} filter. The default template is updated to always
use a relative path.
.. bc::
``{abspath}`` and ``{file}`` in generic templates are renamed to ``{path}``.
Any ``{path}`` is a repository-absolute path. Use ``{path|relpath}`` to
convert it to a filesystem path.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sun, 05 Aug 2018 16:44:16 +0900 |
parents | f9a98075a37e |
children | 46f3ff64bea7 |
comparison
equal
deleted
inserted
replaced
39368:5b1d406b39f1 | 39369:34ba47117164 |
---|---|
72 description = '{if(desc|strip, "{label('ui.note log.description', | 72 description = '{if(desc|strip, "{label('ui.note log.description', |
73 'description:')} | 73 'description:')} |
74 {label('ui.note log.description', | 74 {label('ui.note log.description', |
75 '{desc|strip}')}\n\n")}' | 75 '{desc|strip}')}\n\n")}' |
76 | 76 |
77 status = '{status} {path}\n{if(copy, " {copy}\n")}' | 77 status = '{status} {path|relpath}\n{if(copy, " {copy|relpath}\n")}' |
78 | 78 |
79 # Obsfate templates, it would be removed once we introduce the obsfate | 79 # Obsfate templates, it would be removed once we introduce the obsfate |
80 # template fragment | 80 # template fragment |
81 lobsfate = '{if(obsfate, "{label('log.obsfate', '{obsfate % "obsolete: {fate}\n"}')}")}' | 81 lobsfate = '{if(obsfate, "{label('log.obsfate', '{obsfate % "obsolete: {fate}\n"}')}")}' |
82 | 82 |