diff tests/test-inotify @ 9854:95e1867f765b

inotify: mark directories visited during lookup (issue1844) Emulate the match.dir calls that are made in dirstate.walk: * first mark the visited directories on the server side * then extend the transmitted response to include this directory list * and lastly call match.dir on each directory
author Nicolas Dumazet <nicdumz.commits@gmail.com>
date Fri, 13 Nov 2009 08:31:10 +0900
parents a87bc6e2a907
children 2c2f7593ffc4
line wrap: on
line diff
--- a/tests/test-inotify	Fri Nov 13 06:36:26 2009 +0100
+++ b/tests/test-inotify	Fri Nov 13 08:31:10 2009 +0900
@@ -70,4 +70,14 @@
 
 HGMERGE=internal:local hg up
 hg st
+
+# Test for 1844: "hg ci folder" will not commit all changes beneath "folder"
+mkdir 1844
+echo a > 1844/foo
+hg add 1844
+hg ci -m 'working'
+
+echo b >> 1844/foo
+hg ci 1844 -m 'broken'
+
 kill `cat hg.pid`