diff tests/test-mq-qqueue @ 11271:d1aca0863a9d

mq: prevent the creation of a queue whose name is already taken Each check is moved under the code handling the relevant option, and a new one is added for --create. This fixes duplicated entries being added to the queues list.
author C?dric Duval <cedricduval@free.fr>
date Thu, 03 Jun 2010 20:40:23 +0200
parents 457813cb3024
children e8a66a40474d
line wrap: on
line diff
--- a/tests/test-mq-qqueue	Wed Jun 02 19:39:45 2010 +0200
+++ b/tests/test-mq-qqueue	Thu Jun 03 20:40:23 2010 +0200
@@ -28,6 +28,10 @@
 hg qqueue foo
 hg qqueue
 
+echo %% fail creating queue with already existing name
+hg qqueue --create foo
+hg qqueue
+
 echo %% unapplied patches
 hg qun
 echo c > a