changeset 19330 | 867b9957d895 |
parent 19127 | d982edcfe7f0 |
child 19770 | 0361163efbaf |
19329:84dc9669bd71 | 19330:867b9957d895 |
---|---|
1534 |
1534 |
1535 Test the sub function of templating for expansion: |
1535 Test the sub function of templating for expansion: |
1536 |
1536 |
1537 $ hg log -R latesttag -r 10 --template '{sub("[0-9]", "x", "{rev}")}\n' |
1537 $ hg log -R latesttag -r 10 --template '{sub("[0-9]", "x", "{rev}")}\n' |
1538 xx |
1538 xx |
1539 |
|
1540 Test the strip function with chars specified: |
|
1541 |
|
1542 $ hg log -R latesttag --template '{desc}\n' |
|
1543 at3 |
|
1544 t5 |
|
1545 t3 |
|
1546 t2 |
|
1547 t1 |
|
1548 merge |
|
1549 h2e |
|
1550 h2d |
|
1551 h1c |
|
1552 b |
|
1553 a |
|
1554 |
|
1555 $ hg log -R latesttag --template '{strip(desc, "te")}\n' |
|
1556 at3 |
|
1557 5 |
|
1558 3 |
|
1559 2 |
|
1560 1 |
|
1561 merg |
|
1562 h2 |
|
1563 h2d |
|
1564 h1c |
|
1565 b |
|
1566 a |