Mercurial > hg
comparison tests/test-template-keywords.t @ 38948:390287321b4b
templatekw: copy {author} to {user} and document {author} as an alias
In other places including "log -Tjson" and revset, "user" is the canonical
name. Let's standardize it.
This is a part of the name unification of the Generic Templating Plan.
https://www.mercurial-scm.org/wiki/GenericTemplatingPlan#Dictionary
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Tue, 24 Jul 2018 22:13:21 +0900 |
parents | da4508cdef37 |
children | 83f8f7b9fa60 |
comparison
equal
deleted
inserted
replaced
38947:f9a98075a37e | 38948:390287321b4b |
---|---|
89 Keys work: | 89 Keys work: |
90 | 90 |
91 $ for key in author branch branches date desc file_adds file_dels file_mods \ | 91 $ for key in author branch branches date desc file_adds file_dels file_mods \ |
92 > file_copies file_copies_switch files \ | 92 > file_copies file_copies_switch files \ |
93 > manifest node parents rev tags diffstat extras \ | 93 > manifest node parents rev tags diffstat extras \ |
94 > p1rev p2rev p1node p2node; do | 94 > p1rev p2rev p1node p2node user; do |
95 > for mode in '' --verbose --debug; do | 95 > for mode in '' --verbose --debug; do |
96 > hg log $mode --template "$key$mode: {$key}\n" | 96 > hg log $mode --template "$key$mode: {$key}\n" |
97 > done | 97 > done |
98 > done | 98 > done |
99 author: test | 99 author: test |
700 p2node--debug: 0000000000000000000000000000000000000000 | 700 p2node--debug: 0000000000000000000000000000000000000000 |
701 p2node--debug: 0000000000000000000000000000000000000000 | 701 p2node--debug: 0000000000000000000000000000000000000000 |
702 p2node--debug: 0000000000000000000000000000000000000000 | 702 p2node--debug: 0000000000000000000000000000000000000000 |
703 p2node--debug: 0000000000000000000000000000000000000000 | 703 p2node--debug: 0000000000000000000000000000000000000000 |
704 p2node--debug: 0000000000000000000000000000000000000000 | 704 p2node--debug: 0000000000000000000000000000000000000000 |
705 user: test | |
706 user: User Name <user@hostname> | |
707 user: person | |
708 user: person | |
709 user: person | |
710 user: person | |
711 user: other@place | |
712 user: A. N. Other <other@place> | |
713 user: User Name <user@hostname> | |
714 user--verbose: test | |
715 user--verbose: User Name <user@hostname> | |
716 user--verbose: person | |
717 user--verbose: person | |
718 user--verbose: person | |
719 user--verbose: person | |
720 user--verbose: other@place | |
721 user--verbose: A. N. Other <other@place> | |
722 user--verbose: User Name <user@hostname> | |
723 user--debug: test | |
724 user--debug: User Name <user@hostname> | |
725 user--debug: person | |
726 user--debug: person | |
727 user--debug: person | |
728 user--debug: person | |
729 user--debug: other@place | |
730 user--debug: A. N. Other <other@place> | |
731 user--debug: User Name <user@hostname> | |
705 | 732 |
706 Add a dummy commit to make up for the instability of the above: | 733 Add a dummy commit to make up for the instability of the above: |
707 | 734 |
708 $ echo a > a | 735 $ echo a > a |
709 $ hg add a | 736 $ hg add a |