test-subrepo-paths.t
35 lines
| 626 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 | ||
|
r11914 | $ cat > .hg/hgrc <<EOF | ||
> [subpaths] | ||||
> http://example.net = ssh://localhost | ||||
> EOF | ||||
$ hg debugsub | ||||
path sub | ||||
source ssh://localhost/libfoo | ||||
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 | ||||