tests/test-command-template.t
changeset 34659 3edfd472f3cb
parent 34581 ee0d74083a22
child 34714 f4aeb952ab77
equal deleted inserted replaced
34658:dbe1f5118864 34659:3edfd472f3cb
  3946   $ hg log --template '{rev} {ifcontains(rev, revset(". + .^"), "match rev", "not match rev")}\n'
  3946   $ hg log --template '{rev} {ifcontains(rev, revset(". + .^"), "match rev", "not match rev")}\n'
  3947   2 match rev
  3947   2 match rev
  3948   1 match rev
  3948   1 match rev
  3949   0 not match rev
  3949   0 not match rev
  3950 
  3950 
       
  3951   $ hg log -T '{ifcontains(desc, revset(":"), "", "type not match")}\n' -l1
       
  3952   type not match
       
  3953 
  3951   $ hg log --template '{rev} Parents: {revset("parents(%s)", rev)}\n'
  3954   $ hg log --template '{rev} Parents: {revset("parents(%s)", rev)}\n'
  3952   2 Parents: 1
  3955   2 Parents: 1
  3953   1 Parents: 0
  3956   1 Parents: 0
  3954   0 Parents: 
  3957   0 Parents: 
  3955 
  3958