test-subrepo-paths.t
33 lines
| 640 B
| text/troff
|
Tads3Lexer
/ tests / test-subrepo-paths.t
Martin Geisler
|
r11914 | $ hg init outer | ||
$ cd outer | ||||
Martin Geisler
|
r11959 | hg debugsub with no remapping | ||
Martin Geisler
|
r11914 | $ echo 'sub = http://example.net/libfoo' > .hgsub | ||
$ hg add .hgsub | ||||
$ hg debugsub | ||||
path sub | ||||
source http://example.net/libfoo | ||||
revision | ||||
Martin Geisler
|
r11959 | hg debugsub with remapping | ||
Martin Geisler
|
r11961 | $ echo '[subpaths]' > .hg/hgrc | ||
Martin Geisler
|
r11964 | $ printf 'http://example.net/lib(.*) = C:\\libs\\\\1-lib\\\n' >> .hg/hgrc | ||
Martin Geisler
|
r11914 | |||
$ hg debugsub | ||||
path sub | ||||
Martin Geisler
|
r11961 | source C:\libs\foo-lib\ | ||
Martin Geisler
|
r11914 | revision | ||
test bad subpaths pattern | ||||
$ cat > .hg/hgrc <<EOF | ||||
> [subpaths] | ||||
> .* = \1 | ||||
> EOF | ||||
$ hg debugsub | ||||
abort: bad subrepository pattern in .*/test-subrepo-paths.t/outer/.hg/hgrc:2: invalid group reference | ||||
$ exit 0 | ||||