equal
deleted
inserted
replaced
4164 $ hg log --debug -T '{rev}{ifcontains(1, parents, " is parent of 1")}\n' |
4164 $ hg log --debug -T '{rev}{ifcontains(1, parents, " is parent of 1")}\n' |
4165 2 is parent of 1 |
4165 2 is parent of 1 |
4166 1 |
4166 1 |
4167 0 |
4167 0 |
4168 |
4168 |
|
4169 $ hg log -l1 -T '{ifcontains("branch", extras, "t", "f")}\n' |
|
4170 t |
|
4171 $ hg log -l1 -T '{ifcontains("branch", extras % "{key}", "t", "f")}\n' |
|
4172 t |
|
4173 $ hg log -l1 -T '{ifcontains("branc", extras % "{key}", "t", "f")}\n' |
|
4174 f |
|
4175 $ hg log -l1 -T '{ifcontains("branc", stringify(extras % "{key}"), "t", "f")}\n' |
|
4176 t |
|
4177 |
4169 Test revset function |
4178 Test revset function |
4170 |
4179 |
4171 $ hg log --template '{rev} {ifcontains(rev, revset("."), "current rev", "not current rev")}\n' |
4180 $ hg log --template '{rev} {ifcontains(rev, revset("."), "current rev", "not current rev")}\n' |
4172 2 current rev |
4181 2 current rev |
4173 1 not current rev |
4182 1 not current rev |