test-subrepo-paths.t
41 lines
| 830 B
| text/troff
|
Tads3Lexer
/ tests / test-subrepo-paths.t
|
r11914 | $ hg init outer | ||
$ cd outer | ||||
|
r11959 | hg debugsub with no remapping | ||
|
r11914 | $ echo 'sub = http://example.net/libfoo' > .hgsub | ||
$ hg add .hgsub | ||||
$ hg debugsub | ||||
path sub | ||||
source http://example.net/libfoo | ||||
revision | ||||
|
r11959 | hg debugsub with remapping | ||
|
r11961 | $ echo '[subpaths]' > .hg/hgrc | ||
|
r11964 | $ printf 'http://example.net/lib(.*) = C:\\libs\\\\1-lib\\\n' >> .hg/hgrc | ||
|
r11914 | |||
$ hg debugsub | ||||
path sub | ||||
|
r11961 | source C:\libs\foo-lib\ | ||
|
r11914 | revision | ||
|
r13578 | test cummulative remapping, the $HGRCPATH file is loaded first | ||
$ echo '[subpaths]' >> $HGRCPATH | ||||
$ echo 'libfoo = libbar' >> $HGRCPATH | ||||
$ hg debugsub | ||||
path sub | ||||
source C:\libs\bar-lib\ | ||||
revision | ||||
|
r11914 | test bad subpaths pattern | ||
$ cat > .hg/hgrc <<EOF | ||||
> [subpaths] | ||||
> .* = \1 | ||||
> EOF | ||||
$ hg debugsub | ||||
|
r12640 | abort: bad subrepository pattern in $TESTTMP/outer/.hg/hgrc:2: invalid group reference | ||
|
r12316 | [255] | ||