equal
deleted
inserted
replaced
1815 1------------------- {node|short} |
1815 1------------------- {node|short} |
1816 0------------------- test |
1816 0------------------- test |
1817 |
1817 |
1818 Test ifcontains function |
1818 Test ifcontains function |
1819 |
1819 |
|
1820 $ hg log --template '{rev} {ifcontains(rev, "2 two 0", "is in the string", "is not")}\n' |
|
1821 2 is in the string |
|
1822 1 is not |
|
1823 0 is in the string |
|
1824 |
1820 $ hg log --template '{rev} {ifcontains("a", file_adds, "added a", "did not add a")}\n' |
1825 $ hg log --template '{rev} {ifcontains("a", file_adds, "added a", "did not add a")}\n' |
1821 2 did not add a |
1826 2 did not add a |
1822 1 did not add a |
1827 1 did not add a |
1823 0 added a |
1828 0 added a |
1824 |
1829 |