Mercurial > public > mercurial-scm > hg-stable
diff tests/test-command-template.t @ 37229:9bcf096a2da2
templatefilters: declare input type as date where appropriate
I'm not sure if the templateutil.date type can be a thing. Currently it's
just a constant.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sun, 18 Mar 2018 16:12:44 +0900 |
parents | 08e042f0a67c |
children | 05db42732fce |
line wrap: on
line diff
--- a/tests/test-command-template.t Tue Mar 20 22:57:36 2018 +0900 +++ b/tests/test-command-template.t Sun Mar 18 16:12:44 2018 +0900 @@ -2806,7 +2806,8 @@ Behind the scenes, this will throw a ValueError $ hg log -l 3 --template 'line: {desc|shortdate}\n' - abort: template filter 'shortdate' is not compatible with keyword 'desc' + hg: parse error: invalid date: 'Modify, add, remove, rename' + (template filter 'shortdate' is not compatible with keyword 'desc') [255] Behind the scenes, this would throw AttributeError without intype=bytes @@ -2827,11 +2828,13 @@ [255] $ hg tip -T '{author|email|shortdate}\n' - abort: template filter 'shortdate' is not compatible with keyword 'author' + hg: parse error: invalid date: 'test' + (template filter 'shortdate' is not compatible with keyword 'author') [255] $ hg tip -T '{get(extras, "branch")|shortdate}\n' - abort: incompatible use of template filter 'shortdate' + hg: parse error: invalid date: 'default' + (incompatible use of template filter 'shortdate') [255] Error in nested template: