Mercurial > public > mercurial-scm > hg
diff tests/test-tag.t @ 25727:b8245386ab40
templatekw: make {latesttag} a hybrid list
This maintains the previous behavior of expanding {latesttag} to a string
containing all of the tags, joined by ':'. But now it also allows list type
operations.
I'm unsure if the plural handling is correct (i.e. it seems like it is usually
"{foos % '{foo}'}"), but I guess we are stuck with this because the singular
form previously existed.
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Mon, 06 Jul 2015 23:23:22 -0400 |
parents | 4474a750413f |
children | 43bf9471fae9 |
line wrap: on
line diff
--- a/tests/test-tag.t Mon Jul 06 23:12:24 2015 -0400 +++ b/tests/test-tag.t Mon Jul 06 23:23:22 2015 -0400 @@ -458,6 +458,9 @@ $ echo c4 > f4 $ hg log -r '.' -T "{changessincelatesttag} changes since {latesttag}\n" 2 changes since t4:t6 + $ hg log -r '.' -T "{latesttag % '{latesttag}\n'}" + t4 + t6 $ hg ci -A -m4 adding f4 $ hg log -r 'wdir()' -T "{changessincelatesttag} changes since {latesttag}\n"