##// 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 1 $ hg init outer
2 2 $ cd outer
3 3
4 4 hg debugsub with no remapping
5 5
6 6 $ echo 'sub = http://example.net/libfoo' > .hgsub
7 7 $ hg add .hgsub
8 8
9 9 $ hg debugsub
10 10 path sub
11 11 source http://example.net/libfoo
12 12 revision
13 13
14 14 hg debugsub with remapping
15 15
16 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 19 $ hg debugsub
20 20 path sub
21 21 source C:\libs\foo-lib\
22 22 revision
23 23
24 24 test bad subpaths pattern
25 25
26 26 $ cat > .hg/hgrc <<EOF
27 27 > [subpaths]
28 28 > .* = \1
29 29 > EOF
30 30 $ hg debugsub
31 31 abort: bad subrepository pattern in .*/test-subrepo-paths.t/outer/.hg/hgrc:2: invalid group reference
32 32
33 33 $ exit 0
General Comments 0
You need to be logged in to leave comments. Login now