[PATCH] test-clone.t: add basic cases for destination ''

Adrian Buehlmann adrian at cadifra.com
Tue Nov 30 21:27:08 CST 2010


# HG changeset patch
# User Adrian Buehlmann <adrian at cadifra.com>
# Date 1291173707 -3600
# Node ID 080e5c35d83d93b1e926724617df45bd4269301f
# Parent  e2b8c7a6ff4d2fa783066c0e79f970ef3590aeeb
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.

diff --git a/tests/test-clone.t b/tests/test-clone.t
--- a/tests/test-clone.t
+++ b/tests/test-clone.t
@@ -41,6 +41,12 @@ Default operation:
   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 @@ Use --pull:
   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


More information about the Mercurial-devel mailing list