changeset 13058:5986f44ea63c stable

test-clone.t: add basic cases for destination '' The case $ hg clone a '' already aborted before 2649be11ab0b, whereas $ hg clone --pull a '' tripped the fixed issue2528. Both basic cases are expected to fail with an abort.
author Adrian Buehlmann <adrian@cadifra.com>
date Wed, 01 Dec 2010 04:21:47 +0100
parents 1cfaf11c6398
children f553024f1832 7e734ddad2e7
files tests/test-clone.t
diffstat 1 files changed, 12 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-clone.t	Wed Dec 01 10:52:31 2010 +0100
+++ b/tests/test-clone.t	Wed Dec 01 04:21:47 2010 +0100
@@ -41,6 +41,12 @@
   checking files
   2 files, 11 changesets, 11 total revisions
 
+Invalid dest '' must abort:
+
+  $ hg clone . ''
+  abort: No such file or directory
+  [255]
+
 No update, with debug option:
 
   $ hg --debug clone -U . ../c
@@ -99,6 +105,12 @@
   checking files
   2 files, 11 changesets, 11 total revisions
 
+Invalid dest '' with --pull must abort (issue2528):
+
+  $ hg clone --pull a ''
+  abort: No such file or directory
+  [255]
+
 Clone to '.':
 
   $ mkdir h