# HG changeset patch # User Adrian Buehlmann # Date 2011-03-29 17:20:28 # Node ID 16d5e80876de57e7aa469ac58d1b61149134f274 # Parent 6337149fc07c61e7794f7d441c61427c1537721b 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 < [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 +