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.
Showing
- hgext/keyword.py 2 additions, 2 deletionshgext/keyword.py
- mercurial/cmdutil.py 3 additions, 3 deletionsmercurial/cmdutil.py
- mercurial/commands.py 8 additions, 6 deletionsmercurial/commands.py
- mercurial/templates/map-cmdline.default 1 addition, 1 deletionmercurial/templates/map-cmdline.default
- tests/test-annotate.t 2 additions, 9 deletionstests/test-annotate.t
- tests/test-cat.t 1 addition, 5 deletionstests/test-cat.t
- tests/test-fastannotate-hg.t 1 addition, 4 deletionstests/test-fastannotate-hg.t
- tests/test-grep.t 17 additions, 17 deletionstests/test-grep.t
- tests/test-locate.t 1 addition, 1 deletiontests/test-locate.t
- tests/test-subrepo.t 3 additions, 4 deletionstests/test-subrepo.t
Loading
Please register or sign in to comment