tests/test-command-template.t
branchstable
changeset 24157 d091f62be5ae
parent 23735 b9d06fa10ef2
child 24240 bd504d90588d
child 24304 6136704b975d
equal deleted inserted replaced
24156:75a2df2bbde8 24157:d091f62be5ae
  2379   $ hg bookmarks --inactive bar
  2379   $ hg bookmarks --inactive bar
  2380   $ hg log --template "{rev} {currentbookmark}\n"
  2380   $ hg log --template "{rev} {currentbookmark}\n"
  2381   2 
  2381   2 
  2382   1 
  2382   1 
  2383   0 
  2383   0 
       
  2384   $ hg book -r1 baz
       
  2385   $ hg log --template "{rev} {join(bookmarks, ' ')}\n"
       
  2386   2 bar foo
       
  2387   1 baz
       
  2388   0 
  2384 
  2389 
  2385 Test stringify on sub expressions
  2390 Test stringify on sub expressions
  2386 
  2391 
  2387   $ cd ..
  2392   $ cd ..
  2388   $ hg log -R a -r 8 --template '{join(files, if("1", if("1", ", ")))}\n'
  2393   $ hg log -R a -r 8 --template '{join(files, if("1", if("1", ", ")))}\n'