##// END OF EJS Templates
tests: add a new commit to test-commandline-template...
Jordi Gutiérrez Hermoso -
r24985:20bff5d0 default
parent child Browse files
Show More
@@ -1993,6 +1993,15 b' Upper/lower filters:'
1993 abort: template filter 'upper' is not compatible with keyword 'date'
1993 abort: template filter 'upper' is not compatible with keyword 'date'
1994 [255]
1994 [255]
1995
1995
1996 Add a commit that does all possible modifications at once
1997
1998 $ echo modify >> third
1999 $ touch b
2000 $ hg add b
2001 $ hg mv fourth fifth
2002 $ hg rm a
2003 $ hg ci -m "Modify, add, remove, rename"
2004
1996 Error on syntax:
2005 Error on syntax:
1997
2006
1998 $ echo 'x = "f' >> t
2007 $ echo 'x = "f' >> t
@@ -2606,7 +2615,9 b' Test stringify on sub expressions'
2606 Test splitlines
2615 Test splitlines
2607
2616
2608 $ hg log -Gv -R a --template "{splitlines(desc) % 'foo {line}\n'}"
2617 $ hg log -Gv -R a --template "{splitlines(desc) % 'foo {line}\n'}"
2609 @ foo future
2618 @ foo Modify, add, remove, rename
2619 |
2620 o foo future
2610 |
2621 |
2611 o foo third
2622 o foo third
2612 |
2623 |
@@ -2640,6 +2651,8 b' Test startswith'
2640 o
2651 o
2641 |
2652 |
2642 o
2653 o
2654 |
2655 o
2643
2656
2644 o
2657 o
2645 |\
2658 |\
@@ -2665,7 +2678,9 b' Test bad template with better error mess'
2665 Test word function (including index out of bounds graceful failure)
2678 Test word function (including index out of bounds graceful failure)
2666
2679
2667 $ hg log -Gv -R a --template "{word('1', desc)}"
2680 $ hg log -Gv -R a --template "{word('1', desc)}"
2668 @
2681 @ add,
2682 |
2683 o
2669 |
2684 |
2670 o
2685 o
2671 |
2686 |
@@ -2689,7 +2704,9 b' Test word function (including index out '
2689 Test word third parameter used as splitter
2704 Test word third parameter used as splitter
2690
2705
2691 $ hg log -Gv -R a --template "{word('0', desc, 'o')}"
2706 $ hg log -Gv -R a --template "{word('0', desc, 'o')}"
2692 @ future
2707 @ M
2708 |
2709 o future
2693 |
2710 |
2694 o third
2711 o third
2695 |
2712 |
General Comments 0
You need to be logged in to leave comments. Login now