Test if debug flag influences expansion
authorChristian Ebert <blacktrash@gmx.net>
Fri, 05 Oct 2007 15:49:32 +0200
changeset 256 7b7e5858d8cd
parent 255 c4f37735be9b
child 257 1090221301cf
Test if debug flag influences expansion
tests/test-keyword
tests/test-keyword.out
--- a/tests/test-keyword	Fri Oct 05 14:52:39 2007 +0200
+++ b/tests/test-keyword	Fri Oct 05 15:49:32 2007 +0200
@@ -22,6 +22,9 @@
 
 hg --quiet kwdemo "Branch = {branches}"
 
+echo % do not expand debug templates
+hg --debug kwdemo "ADD = empty{file_adds}" | grep 'ADD'
+
 hg init Test
 cd Test
 
--- a/tests/test-keyword.out	Fri Oct 05 14:52:39 2007 +0200
+++ b/tests/test-keyword.out	Fri Oct 05 15:49:32 2007 +0200
@@ -65,6 +65,10 @@
 [keywordmaps]
 Branch = {branches}
 $Branch: demobranch $
+% do not expand debug templates
+ADD = empty{file_adds}
+$ADD$
+$ADD: empty $
 % kwshrink should exit silently in empty/invalid repo
 % cat
 expand $Id$