Mercurial > hg
diff 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 |
line wrap: on
line diff
--- a/mercurial/templates/map-cmdline.default Sun Aug 05 16:27:09 2018 +0900 +++ b/mercurial/templates/map-cmdline.default Sun Aug 05 16:44:16 2018 +0900 @@ -74,7 +74,7 @@ {label('ui.note log.description', '{desc|strip}')}\n\n")}' -status = '{status} {path}\n{if(copy, " {copy}\n")}' +status = '{status} {path|relpath}\n{if(copy, " {copy|relpath}\n")}' # Obsfate templates, it would be removed once we introduce the obsfate # template fragment