test-paths.t
27 lines
| 628 B
| text/troff
|
Tads3Lexer
/ tests / test-paths.t
Nicolas Dumazet
|
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 | ||||
Benoit Boissinot
|
r12662 | $ echo 'expand = $SOMETHING/bar' >> .hg/hgrc | ||
Nicolas Dumazet
|
r11785 | $ hg in dupe | ||
Mads Kiilerich
|
r12640 | comparing with $TESTTMP/b | ||
Nicolas Dumazet
|
r11785 | no changes found | ||
Matt Mackall
|
r12316 | [1] | ||
Nicolas Dumazet
|
r11785 | $ cd .. | ||
$ hg -R a in dupe | ||||
Mads Kiilerich
|
r12640 | comparing with $TESTTMP/b | ||
Nicolas Dumazet
|
r11785 | no changes found | ||
Matt Mackall
|
r12316 | [1] | ||
Benoit Boissinot
|
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 | ||||