Commit Graph

11 Commits

Author SHA1 Message Date
Steve Borho
63d4e6092c on clone failure, only remove directories we created
If the user created the clone target directory before running
the clone command, only cleanup the .hg/ repository when errors
occur.  Leave the empty target directory in place.
2009-03-31 21:21:53 -05:00
Steve Borho
ad54f46fa2 allow clone into existing but empty directories 2009-03-29 16:15:06 -05:00
Thomas Arendsen Hein
731e6e0280 Show the destionation for clone if not specified manually. 2006-12-09 14:19:52 +01:00
Matt Mackall
cce771d25f Move empty local repo logic for pull into findincoming
This fixes a silly attempt to pull a changegroup from an empty repo.
2006-04-21 15:33:51 -05:00
Thomas Arendsen Hein
acf533e3b4 Never exit directly from commands.dispatch(), but pass return code to caller.
Usually the caller is commands.run().
Some extensions still use sys.exit(), this is catched, too.
Fixed wrong return statement in commands.recover() yielding a zero exit code.
2006-04-11 08:42:07 +02:00
Thomas Arendsen Hein
f18f0c7a93 Better error message (without /.hg appended) when repository is not found.
This makes the error for missing default or default-push more readable.
2005-12-15 16:19:23 +01:00
mpm@selenic.com
ea7bd9ea6f run-tests: remove '+ hg' trick
This was causing me a fair amount of debugging confusion. Let's just
forget it entirely. Updated tests to match.
2005-08-16 19:03:01 -08:00
Thomas Arendsen Hein
87aabef405 Updated output of tests. 2005-07-29 15:21:02 +01:00
mpm@selenic.com
907e714bb6 Fix up test results
No more errnos
diff | sed changes
.out message ok
2005-07-26 19:23:59 -08:00
Matt Mackall
cc73c7d4df Update tests 2005-07-06 22:27:25 -08:00
mpm@selenic.com
8e37c21463 [PATCH] Tests for clone command
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

[PATCH] Tests for clone command

From: Bryan O'Sullivan <bos@serpentine.com>

This patch adds two new tests.  One tests clone's correct operation, the
other that clone fails when it should.

This patch depends on oserror.patch.

manifest hash: a0c9c4932baf29e7b33b2bd2003ddd2254ce65d3
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)

iD8DBQFCxPX9ywK+sNU5EO8RAmSNAJ9esixtATdkszwLltu65dzpKf6P4gCcCqGT
+Z7CTbXRTFcJvmXFlvEo0xE=
=6fqz
-----END PGP SIGNATURE-----
2005-06-30 23:51:25 -08:00