tests/test-template-keywords.t
changeset 39368 5b1d406b39f1
parent 39367 83f8f7b9fa60
child 39587 918944f53aac
equal deleted inserted replaced
39367:83f8f7b9fa60 39368:5b1d406b39f1
   767   b
   767   b
   768   fifth
   768   fifth
   769   fourth
   769   fourth
   770   third
   770   third
   771 
   771 
       
   772 Test file copies dict:
       
   773 
       
   774   $ hg log -r8 -T '{join(file_copies, " ")}\n'
       
   775   fourth (second)
       
   776   $ hg log -r8 -T '{file_copies % "{name} <- {source}\n"}'
       
   777   fourth <- second
       
   778   $ hg log -r8 -T '{file_copies % "{path} <- {source}\n"}'
       
   779   fourth <- second
       
   780 
       
   781   $ hg log -r8 -T '{join(file_copies_switch, " ")}\n'
       
   782   
       
   783   $ hg log -r8 -C -T '{join(file_copies_switch, " ")}\n'
       
   784   fourth (second)
       
   785   $ hg log -r8 -C -T '{file_copies_switch % "{name} <- {source}\n"}'
       
   786   fourth <- second
       
   787   $ hg log -r8 -C -T '{file_copies_switch % "{path} <- {source}\n"}'
       
   788   fourth <- second
       
   789 
   772 Test index keyword:
   790 Test index keyword:
   773 
   791 
   774   $ hg log -l 2 -T '{index + 10}{files % " {index}:{file}"}\n'
   792   $ hg log -l 2 -T '{index + 10}{files % " {index}:{file}"}\n'
   775   10 0:a 1:b 2:fifth 3:fourth 4:third
   793   10 0:a 1:b 2:fifth 3:fourth 4:third
   776   11 0:a
   794   11 0:a