##// END OF EJS Templates
test-subrepo-paths: use printf instead of echo...
Martin Geisler -
r11964:79bd860b default
parent child Browse files
Show More
@@ -1,33 +1,33 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 $ echo 'http://example.net/lib(.*) = C:\libs\\1-lib\' >> .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 bad subpaths pattern
24 test bad subpaths pattern
25
25
26 $ cat > .hg/hgrc <<EOF
26 $ cat > .hg/hgrc <<EOF
27 > [subpaths]
27 > [subpaths]
28 > .* = \1
28 > .* = \1
29 > EOF
29 > EOF
30 $ hg debugsub
30 $ hg debugsub
31 abort: bad subrepository pattern in .*/test-subrepo-paths.t/outer/.hg/hgrc:2: invalid group reference
31 abort: bad subrepository pattern in .*/test-subrepo-paths.t/outer/.hg/hgrc:2: invalid group reference
32
32
33 $ exit 0
33 $ exit 0
General Comments 0
You need to be logged in to leave comments. Login now