diff tests/test-keyword @ 11252:56f306238256

keyword: force dirstate normal when all changes in a file are recorded Before this bugfix a file whose changes were entirely recorded was still considered modified by "hg status". Note: the test must use hg record -l/--logfile, because this is not reproducible with hg record -m/--message.
author Christian Ebert <blacktrash@gmx.net>
date Tue, 01 Jun 2010 01:05:45 +0200
parents 76d6c19aa8ef
children f5aa20e177c0
line wrap: on
line diff
--- a/tests/test-keyword	Mon May 31 13:47:51 2010 +0200
+++ b/tests/test-keyword	Tue Jun 01 01:05:45 2010 +0200
@@ -142,7 +142,7 @@
 echo % compare changenodes in a c
 cat a c
 
-echo % record
+echo % record chunk
 python -c \
 'l=open("a").readlines();l.insert(1,"foo\n");l.append("bar\n");open("a","w").writelines(l);'
 hg record -d '1 10' -m rectest<<EOF
@@ -157,6 +157,19 @@
 cat a
 hg diff | grep -v 'b/a'
 hg rollback
+
+echo % record file
+echo foo > msg
+# do not use "hg record -m" here!
+hg record -l msg -d '1 11'<<EOF
+y
+y
+y
+EOF
+echo % a should be clean
+hg status -A a
+rm msg
+hg rollback
 hg update -C
 
 echo % init --mq