mercurial/help/templates.txt
changeset 26234 e4609ec959f8
parent 26128 51f6940d3b4f
child 26485 43bf9471fae9
equal deleted inserted replaced
26233:d3dbb65c8dc6 26234:e4609ec959f8
   104 
   104 
   105 - Mark the working copy parent with '@'::
   105 - Mark the working copy parent with '@'::
   106 
   106 
   107    $ hg log --template "{ifcontains(rev, revset('.'), '@')}\n"
   107    $ hg log --template "{ifcontains(rev, revset('.'), '@')}\n"
   108 
   108 
       
   109 - Show details of parent revisions::
       
   110 
       
   111    $ hg log --template "{revset('parents(%d)', rev) % '{desc|firstline}\n'}"
       
   112 
   109 - Show only commit descriptions that start with "template"::
   113 - Show only commit descriptions that start with "template"::
   110 
   114 
   111    $ hg log --template "{startswith('template', firstline(desc))}\n"
   115    $ hg log --template "{startswith('template', firstline(desc))}\n"
   112 
   116 
   113 - Print the first word of each line of a commit message::
   117 - Print the first word of each line of a commit message::