changeset 10710:47fbbc4845ff stable

mq: test for init --mq with a destination argument
author Cédric Duval <cedricduval@free.fr>
date Mon, 15 Mar 2010 20:52:22 +0100
parents 67cb29dbb66e
children 67ba66070aee 00d46934ee35
files tests/test-mq tests/test-mq.out
diffstat 2 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-mq	Tue Mar 16 17:39:12 2010 +0100
+++ b/tests/test-mq	Mon Mar 15 20:52:22 2010 +0100
@@ -86,6 +86,11 @@
 hg init --mq
 cd ..
 
+echo '% init --mq with repo path'
+hg init g
+hg init --mq g
+test -d g/.hg/patches/.hg && echo "ok" || echo "failed"
+
 echo '% init --mq with nonexistent directory'
 hg init --mq nonexistentdir
 
--- a/tests/test-mq.out	Tue Mar 16 17:39:12 2010 +0100
+++ b/tests/test-mq.out	Mon Mar 15 20:52:22 2010 +0100
@@ -91,6 +91,8 @@
 B
 % init --mq without repo
 abort: There is no Mercurial repository here (.hg not found)
+% init --mq with repo path
+ok
 % init --mq with nonexistent directory
 abort: repository nonexistentdir not found!
 % init --mq with bundle (non "local")