Mercurial > public > mercurial-scm > hg-stable
diff tests/test-keyword.t @ 28694:9a6fa1d93bc8
keyword: use templatefilter to mark a function as template filter
This patch also adds test for filter 'svnisodate' and 'svnutcdate' for
safety, because there is no test using them, yet.
author | FUJIWARA Katsunori <foozy@lares.dti.ne.jp> |
---|---|
date | Wed, 30 Mar 2016 02:10:44 +0900 |
parents | ce76c4d2b85c |
children | 8421cbebc783 |
line wrap: on
line diff
--- a/tests/test-keyword.t Wed Mar 30 02:10:44 2016 +0900 +++ b/tests/test-keyword.t Wed Mar 30 02:10:44 2016 +0900 @@ -51,6 +51,31 @@ Branch = {branches} $Branch: demobranch $ +(test template filter svnisodate and svnutcdate) + + $ hg --quiet kwdemo --config keywordset.svn=True + [extensions] + keyword = + [keyword] + demo.txt = + [keywordset] + svn = True + [keywordmaps] + Author = {author|user} + Date = {date|svnisodate} + Id = {file|basename},v {node|short} {date|svnutcdate} {author|user} + LastChangedBy = {author|user} + LastChangedDate = {date|svnisodate} + LastChangedRevision = {node|short} + Revision = {node|short} + $Author: test $ + $Date: ????-??-?? ??:??:?? ????? (???, ?? ??? ????) $ (glob) + $Id: demo.txt,v ???????????? ????-??-?? ??:??:??Z test $ (glob) + $LastChangedBy: test $ + $LastChangedDate: ????-??-?? ??:??:?? ????? (???, ?? ??? ????) $ (glob) + $LastChangedRevision: ???????????? $ (glob) + $Revision: ???????????? $ (glob) + $ cat <<EOF >> $HGRCPATH > [keyword] > ** =