test-clone.t: add basic cases for destination '' stable
authorAdrian Buehlmann <adrian@cadifra.com>
Wed, 01 Dec 2010 04:21:47 +0100
branchstable
changeset 13058 5986f44ea63c
parent 13057 1cfaf11c6398
child 13059 f553024f1832
child 13061 7e734ddad2e7
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.
tests/test-clone.t
--- 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