Mercurial > public > mercurial-scm > hg
comparison mercurial/commands.py @ 39370:46f3ff64bea7
status: rename {copy} to {source} for compatibility with {file_copies} (BC)
.. bc::
``{copy}`` in status command template is renamed to ``{source}``.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sun, 05 Aug 2018 16:51:25 +0900 |
parents | 34ba47117164 |
children | 5d00e6061ba2 |
comparison
equal
deleted
inserted
replaced
39369:34ba47117164 | 39370:46f3ff64bea7 |
---|---|
5189 fm.context(ctx=ctx2) | 5189 fm.context(ctx=ctx2) |
5190 fm.data(path=f) | 5190 fm.data(path=f) |
5191 fm.condwrite(showchar, 'status', '%s ', char, label=label) | 5191 fm.condwrite(showchar, 'status', '%s ', char, label=label) |
5192 fm.plain(fmt % repo.pathto(f, cwd), label=label) | 5192 fm.plain(fmt % repo.pathto(f, cwd), label=label) |
5193 if f in copy: | 5193 if f in copy: |
5194 fm.data(copy=copy[f]) | 5194 fm.data(source=copy[f]) |
5195 fm.plain((' %s' + end) % repo.pathto(copy[f], cwd), | 5195 fm.plain((' %s' + end) % repo.pathto(copy[f], cwd), |
5196 label='status.copied') | 5196 label='status.copied') |
5197 | 5197 |
5198 if ((ui.verbose or ui.configbool('commands', 'status.verbose')) | 5198 if ((ui.verbose or ui.configbool('commands', 'status.verbose')) |
5199 and not ui.plain()): | 5199 and not ui.plain()): |