Mercurial > hg-stable
changeset 13797:16d5e80876de
test-paths.t: 'file:' disables [paths] entries for clone dest
author | Adrian Buehlmann <adrian@cadifra.com> |
---|---|
date | Tue, 29 Mar 2011 19:20:28 +0200 |
parents | 6337149fc07c |
children | 9c9fa78f4e2d |
files | tests/test-paths.t |
diffstat | 1 files changed, 20 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/test-paths.t Tue Mar 29 16:33:10 2011 +0000 +++ b/tests/test-paths.t Tue Mar 29 19:20:28 2011 +0200 @@ -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 +