changeset 7020:5e9965407d53

make test-mq-qdelete work reliably (issue1180) if after a and b has been applied, their hash starts with c, then the test would fail (because there would be a rev c which would be seen as "applied") so probability of failure would be 2*1/16.
author Benoit Boissinot <benoit.boissinot@ens-lyon.org>
date Wed, 10 Sep 2008 17:55:49 +0200
parents 6b1ece890f9a
children 75ce89ed3b6e
files tests/test-mq-qdelete
diffstat 1 files changed, 7 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-mq-qdelete	Fri Aug 29 20:36:55 2008 +0100
+++ b/tests/test-mq-qdelete	Wed Sep 10 17:55:49 2008 +0200
@@ -9,9 +9,9 @@
 echo 'base' > base
 hg ci -Ambase -d '1 0'
 
-hg qnew a
-hg qnew b
-hg qnew c
+hg qnew -d '1 0' a
+hg qnew -d '1 0' b
+hg qnew -d '1 0' c
 
 hg qdel
 
@@ -41,14 +41,14 @@
 cd b
 
 echo 'base' > base
-hg ci -Ambase
+hg ci -Ambase -d '1 0'
 
 hg qfinish
 hg qfinish -a
 
-hg qnew a
-hg qnew b
-hg qnew c
+hg qnew -d '1 0' a
+hg qnew -d '1 0' b
+hg qnew c # XXX fails to apply by /usr/bin/patch if we put a date
 
 hg qfinish 0
 hg qfinish b