test-paths.t
58 lines
| 1.1 KiB
| text/troff
|
Tads3Lexer
/ tests / test-paths.t
|
r11785 | $ hg init a | ||
$ hg clone a b | ||||
updating to branch default | ||||
0 files updated, 0 files merged, 0 files removed, 0 files unresolved | ||||
$ cd a | ||||
$ echo '[paths]' >> .hg/hgrc | ||||
$ echo 'dupe = ../b' >> .hg/hgrc | ||||
|
r12662 | $ echo 'expand = $SOMETHING/bar' >> .hg/hgrc | ||
|
r11785 | $ hg in dupe | ||
|
r12640 | comparing with $TESTTMP/b | ||
|
r11785 | no changes found | ||
|
r12316 | [1] | ||
|
r11785 | $ cd .. | ||
$ hg -R a in dupe | ||||
|
r12640 | comparing with $TESTTMP/b | ||
|
r11785 | no changes found | ||
|
r12316 | [1] | ||
|
r12662 | $ cd a | ||
$ hg paths | ||||
dupe = $TESTTMP/b | ||||
expand = $TESTTMP/a/$SOMETHING/bar | ||||
$ SOMETHING=foo hg paths | ||||
dupe = $TESTTMP/b | ||||
expand = $TESTTMP/a/foo/bar | ||||
$ SOMETHING=/foo hg paths | ||||
dupe = $TESTTMP/b | ||||
expand = /foo/bar | ||||
|
r14331 | $ hg paths -q | ||
dupe | ||||
expand | ||||
$ hg paths dupe | ||||
$TESTTMP/b | ||||
$ hg paths -q dupe | ||||
$ hg paths unknown | ||||
not found! | ||||
[1] | ||||
$ hg paths -q unknown | ||||
[1] | ||||
|
r13797 | $ 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 | ||||