##// END OF EJS Templates
test-subrepo-paths: moved comment lines to where they belong
Martin Geisler -
r11959:be333818 default
parent child Browse files
Show More
@@ -1,35 +1,35 b''
1 $ hg init outer
1 $ hg init outer
2 $ cd outer
2 $ cd outer
3
3
4 hg debugsub with no remapping
5
4 $ echo 'sub = http://example.net/libfoo' > .hgsub
6 $ echo 'sub = http://example.net/libfoo' > .hgsub
5 $ hg add .hgsub
7 $ hg add .hgsub
6
8
7 hg debugsub with no remapping
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
15
14 $ cat > .hg/hgrc <<EOF
16 $ cat > .hg/hgrc <<EOF
15 > [subpaths]
17 > [subpaths]
16 > http://example.net = ssh://localhost
18 > http://example.net = ssh://localhost
17 > EOF
19 > EOF
18
20
19 hg debugsub with remapping
20
21 $ hg debugsub
21 $ hg debugsub
22 path sub
22 path sub
23 source ssh://localhost/libfoo
23 source ssh://localhost/libfoo
24 revision
24 revision
25
25
26 test bad subpaths pattern
26 test bad subpaths pattern
27
27
28 $ cat > .hg/hgrc <<EOF
28 $ cat > .hg/hgrc <<EOF
29 > [subpaths]
29 > [subpaths]
30 > .* = \1
30 > .* = \1
31 > EOF
31 > EOF
32 $ hg debugsub
32 $ hg debugsub
33 abort: bad subrepository pattern in .*/test-subrepo-paths.t/outer/.hg/hgrc:2: invalid group reference
33 abort: bad subrepository pattern in .*/test-subrepo-paths.t/outer/.hg/hgrc:2: invalid group reference
34
34
35 $ exit 0
35 $ exit 0
General Comments 0
You need to be logged in to leave comments. Login now