tests/test-command-template.t
changeset 20518 1e43f15a647f
parent 20370 aa51392da507
child 20519 cda9d2b6beab
equal deleted inserted replaced
20517:2158e8f3cbd2 20518:1e43f15a647f
  1649                      0 test
  1649                      0 test
  1650 
  1650 
  1651   $ hg log --template '{pad(rev, 20, "-", False)} {author|user}\n'
  1651   $ hg log --template '{pad(rev, 20, "-", False)} {author|user}\n'
  1652   1------------------- test
  1652   1------------------- test
  1653   0------------------- test
  1653   0------------------- test
       
  1654 
       
  1655 Test ifcontains function
       
  1656 
       
  1657   $ hg log --template '{rev} {ifcontains("a", file_adds, "added a", "did not add a")}\n'
       
  1658   1 did not add a
       
  1659   0 added a