branch | stable |
changeset 20662 | a54c0d830499 |
parent 20661 | 7e627fe63e5e |
child 20663 | 5ab28a2e9962 |
--- a/tests/test-command-template.t Mon Mar 10 01:01:42 2014 +0900 +++ b/tests/test-command-template.t Mon Mar 10 01:01:43 2014 +0900 @@ -1659,3 +1659,12 @@ $ hg log -r 0 --template '{if(branches, "yes", "no")}\n' no + + $ cd .. + +Test stringify on sub expressions + + $ hg log -R a -r 8 --template '{join(files, if("1", if("1", ", ")))}\n' + fourth, second, third + $ hg log -R a -r 8 --template '{strip(if("1", if("1", "-abc-")), if("1", if("1", "-")))}\n' + abc