mercurial/help/templates.txt
changeset 30008 e83f89d3b1f7
parent 29717 a12d13eac513
child 30115 8e42dfde93d1
equal deleted inserted replaced
30007:aca0954d3739 30008:e83f89d3b1f7
    93 
    93 
    94 - Join the list of files with a ", "::
    94 - Join the list of files with a ", "::
    95 
    95 
    96    $ hg log -r 0 --template "files: {join(files, ', ')}\n"
    96    $ hg log -r 0 --template "files: {join(files, ', ')}\n"
    97 
    97 
       
    98 - Join the list of files ending with ".py" with a ", "::
       
    99 
       
   100    $ hg log -r 0 --template "pythonfiles: {join(files('**.py'), ', ')}\n"
       
   101 
    98 - Separate non-empty arguments by a " "::
   102 - Separate non-empty arguments by a " "::
    99 
   103 
   100    $ hg log -r 0 --template "{separate(' ', node, bookmarks, tags}\n"
   104    $ hg log -r 0 --template "{separate(' ', node, bookmarks, tags}\n"
   101 
   105 
   102 - Modify each line of a commit description::
   106 - Modify each line of a commit description::