Show More
@@ -1,32 +1,41 b'' | |||||
1 | $ hg init outer |
|
1 | $ hg init outer | |
2 | $ cd outer |
|
2 | $ cd outer | |
3 |
|
3 | |||
4 | hg debugsub with no remapping |
|
4 | hg debugsub with no remapping | |
5 |
|
5 | |||
6 | $ echo 'sub = http://example.net/libfoo' > .hgsub |
|
6 | $ echo 'sub = http://example.net/libfoo' > .hgsub | |
7 | $ hg add .hgsub |
|
7 | $ hg add .hgsub | |
8 |
|
8 | |||
9 | $ hg debugsub |
|
9 | $ hg debugsub | |
10 | path sub |
|
10 | path sub | |
11 | source http://example.net/libfoo |
|
11 | source http://example.net/libfoo | |
12 | revision |
|
12 | revision | |
13 |
|
13 | |||
14 | hg debugsub with remapping |
|
14 | hg debugsub with remapping | |
15 |
|
15 | |||
16 | $ echo '[subpaths]' > .hg/hgrc |
|
16 | $ echo '[subpaths]' > .hg/hgrc | |
17 | $ printf 'http://example.net/lib(.*) = C:\\libs\\\\1-lib\\\n' >> .hg/hgrc |
|
17 | $ printf 'http://example.net/lib(.*) = C:\\libs\\\\1-lib\\\n' >> .hg/hgrc | |
18 |
|
18 | |||
19 | $ hg debugsub |
|
19 | $ hg debugsub | |
20 | path sub |
|
20 | path sub | |
21 | source C:\libs\foo-lib\ |
|
21 | source C:\libs\foo-lib\ | |
22 | revision |
|
22 | revision | |
23 |
|
23 | |||
|
24 | test cummulative remapping, the $HGRCPATH file is loaded first | |||
|
25 | ||||
|
26 | $ echo '[subpaths]' >> $HGRCPATH | |||
|
27 | $ echo 'libfoo = libbar' >> $HGRCPATH | |||
|
28 | $ hg debugsub | |||
|
29 | path sub | |||
|
30 | source C:\libs\bar-lib\ | |||
|
31 | revision | |||
|
32 | ||||
24 | test bad subpaths pattern |
|
33 | test bad subpaths pattern | |
25 |
|
34 | |||
26 | $ cat > .hg/hgrc <<EOF |
|
35 | $ cat > .hg/hgrc <<EOF | |
27 | > [subpaths] |
|
36 | > [subpaths] | |
28 | > .* = \1 |
|
37 | > .* = \1 | |
29 | > EOF |
|
38 | > EOF | |
30 | $ hg debugsub |
|
39 | $ hg debugsub | |
31 | abort: bad subrepository pattern in $TESTTMP/outer/.hg/hgrc:2: invalid group reference |
|
40 | abort: bad subrepository pattern in $TESTTMP/outer/.hg/hgrc:2: invalid group reference | |
32 | [255] |
|
41 | [255] |
General Comments 0
You need to be logged in to leave comments.
Login now