##// END OF EJS Templates
test-subrepo-paths: test cummulative remapping
Martin Geisler -
r13578:e720b332 default
parent child Browse files
Show More
@@ -1,32 +1,41 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 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 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 33 test bad subpaths pattern
25 34
26 35 $ cat > .hg/hgrc <<EOF
27 36 > [subpaths]
28 37 > .* = \1
29 38 > EOF
30 39 $ hg debugsub
31 40 abort: bad subrepository pattern in $TESTTMP/outer/.hg/hgrc:2: invalid group reference
32 41 [255]
General Comments 0
You need to be logged in to leave comments. Login now