equal
deleted
inserted
replaced
1624 |
1624 |
1625 Test branches inside if statement: |
1625 Test branches inside if statement: |
1626 |
1626 |
1627 $ hg log -r 0 --template '{if(branches, "yes", "no")}\n' |
1627 $ hg log -r 0 --template '{if(branches, "yes", "no")}\n' |
1628 no |
1628 no |
|
1629 |
|
1630 Test shortest(node) function: |
|
1631 |
|
1632 $ echo b > b |
|
1633 $ hg ci -qAm b |
|
1634 $ hg log --template '{shortest(node)}\n' |
|
1635 d97c |
|
1636 f776 |
|
1637 $ hg log --template '{shortest(node, 10)}\n' |
|
1638 d97c383ae3 |
|
1639 f7769ec2ab |