changeset 24241 | e7baf88c29c3 |
parent 24240 | bd504d90588d |
child 24280 | 6c55e37ba5f2 |
--- a/tests/test-command-template.t Wed Feb 18 23:01:33 2015 +0900 +++ b/tests/test-command-template.t Wed Feb 18 23:17:52 2015 +0900 @@ -2286,6 +2286,14 @@ $ hg log -r 0 --template '{if(branches, "yes", "no")}\n' no +Test get function: + + $ hg log -r 0 --template '{get(extras, "branch")}\n' + default + $ hg log -r 0 --template '{get(files, "should_fail")}\n' + hg: parse error: get() expects a dict as first argument + [255] + Test shortest(node) function: $ echo b > b