Test that expansion is done filewise
Checks issue fixed in c5bba07dadd5.
--- a/tests/test-keyword Fri Jan 11 14:41:22 2008 +0100
+++ b/tests/test-keyword Fri Jan 11 23:36:56 2008 +0100
@@ -79,6 +79,19 @@
echo % cat
cat sym a b
+echo % check whether expansion is filewise
+echo '$Id$' > c
+echo 'tests for different changenodes' >> c
+echo % commit c
+hg commit -A -mcndiff -d '1 0' -u 'User Name <user@example.com>'
+echo % force expansion
+hg -v kwexpand
+echo % compare changenodes in a c
+cat a c
+echo % rollback and remove c
+hg rollback
+rm c
+
echo % copy
hg cp a c
--- a/tests/test-keyword.out Fri Jan 11 14:41:22 2008 +0100
+++ b/tests/test-keyword.out Fri Jan 11 23:36:56 2008 +0100
@@ -146,6 +146,20 @@
do not process $Id:
xxx $
ignore $Id$
+% check whether expansion is filewise
+% commit c
+adding c
+% force expansion
+overwriting a expanding keywords
+overwriting c expanding keywords
+% compare changenodes in a c
+expand $Id: a,v f782df5f9602 1970/01/01 00:00:00 user $
+do not process $Id:
+xxx $
+$Id: c,v ba4426d1938e 1970/01/01 00:00:01 user $
+tests for different changenodes
+% rollback and remove c
+rolling back last transaction
% copy
% kwfiles added
a