mercurial/help/templates.txt
changeset 26485 43bf9471fae9
parent 26234 e4609ec959f8
child 28040 6db47740e681
--- a/mercurial/help/templates.txt	Mon Aug 24 23:07:00 2015 -0400
+++ b/mercurial/help/templates.txt	Sun Aug 23 23:44:58 2015 -0400
@@ -102,6 +102,10 @@
 
    $ hg log --template "{bookmarks % '{bookmark}{ifeq(bookmark, active, '*')} '}\n"
 
+- Find the previous release candidate tag, the distance and changes since the tag::
+
+   $ hg log -r . --template "{latesttag('re:^.*-rc$') % '{tag}, {changes}, {distance}'}\n"
+
 - Mark the working copy parent with '@'::
 
    $ hg log --template "{ifcontains(rev, revset('.'), '@')}\n"