[PATCH] test-paths.t: 'file:' disables [paths] entries for clone dest
Adrian Buehlmann
adrian at cadifra.com
Tue Mar 29 12:23:57 CDT 2011
# HG changeset patch
# User Adrian Buehlmann <adrian at cadifra.com>
# Date 1301419228 -7200
# Node ID 77c58e2da7f58166299d5ecc85438254fb757bdf
# Parent ba58c5a615038ac661a3fdedf127b61b3c4963f4
test-paths.t: 'file:' disables [paths] entries for clone dest
diff --git a/tests/test-paths.t b/tests/test-paths.t
--- a/tests/test-paths.t
+++ b/tests/test-paths.t
@@ -25,3 +25,23 @@
$ SOMETHING=/foo hg paths
dupe = $TESTTMP/b
expand = /foo/bar
+ $ cd ..
+
+'file:' disables [paths] entries for clone destination
+
+ $ cat >> $HGRCPATH <<EOF
+ > [paths]
+ > gpath1 = http://hg.example.com
+ > EOF
+
+ $ hg clone a gpath1
+ abort: cannot create new http repository
+ [255]
+
+ $ hg clone a file:gpath1
+ updating to branch default
+ 0 files updated, 0 files merged, 0 files removed, 0 files unresolved
+ $ cd gpath1
+ $ hg -q id
+ 000000000000
+
More information about the Mercurial-devel
mailing list