Show More
@@ -1,27 +1,35 b'' | |||||
1 | #!/bin/sh |
|
1 | $ hg init outer | |
|
2 | $ cd outer | |||
2 |
|
3 | |||
3 | hg init outer |
|
4 | $ echo 'sub = http://example.net/libfoo' > .hgsub | |
4 | cd outer |
|
5 | $ hg add .hgsub | |
|
6 | ||||
|
7 | hg debugsub with no remapping | |||
5 |
|
8 | |||
6 | echo 'sub = http://example.net/libfoo' > .hgsub |
|
9 | $ hg debugsub | |
7 | hg add .hgsub |
|
10 | path sub | |
|
11 | source http://example.net/libfoo | |||
|
12 | revision | |||
8 |
|
13 | |||
9 | echo '% hg debugsub with no remapping' |
|
14 | $ cat > .hg/hgrc <<EOF | |
10 | hg debugsub |
|
15 | > [subpaths] | |
|
16 | > http://example.net = ssh://localhost | |||
|
17 | > EOF | |||
11 |
|
18 | |||
12 | cat > .hg/hgrc <<EOF |
|
19 | hg debugsub with remapping | |
13 | [subpaths] |
|
|||
14 | http://example.net = ssh://localhost |
|
|||
15 | EOF |
|
|||
16 |
|
20 | |||
17 | echo '% hg debugsub with remapping' |
|
21 | $ hg debugsub | |
18 | hg debugsub |
|
22 | path sub | |
|
23 | source ssh://localhost/libfoo | |||
|
24 | revision | |||
|
25 | ||||
|
26 | test bad subpaths pattern | |||
19 |
|
27 | |||
20 | echo '% test bad subpaths pattern' |
|
28 | $ cat > .hg/hgrc <<EOF | |
21 | cat > .hg/hgrc <<EOF |
|
29 | > [subpaths] | |
22 | [subpaths] |
|
30 | > .* = \1 | |
23 | .* = \1 |
|
31 | > EOF | |
24 | EOF |
|
32 | $ hg debugsub | |
25 | hg debugsub 2>&1 | "$TESTDIR/filtertmp.py" |
|
33 | abort: bad subrepository pattern in .*/test-subrepo-paths.t/outer/.hg/hgrc:2: invalid group reference | |
26 |
|
34 | |||
27 | exit 0 |
|
35 | $ exit 0 |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed |
General Comments 0
You need to be logged in to leave comments.
Login now