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.
--- 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