comparison tests/test-subrepo-paths.t @ 11914:e31e5eb8736c

tests: unify test-subrepo-paths
author Martin Geisler <mg@lazybytes.net>
date Tue, 17 Aug 2010 16:52:42 +0200
parents tests/test-subrepo-paths@a8614c5a5e9a
children be33381882ad
comparison
equal deleted inserted replaced
11913:628cdd158ec0 11914:e31e5eb8736c
1 $ hg init outer
2 $ cd outer
3
4 $ echo 'sub = http://example.net/libfoo' > .hgsub
5 $ hg add .hgsub
6
7 hg debugsub with no remapping
8
9 $ hg debugsub
10 path sub
11 source http://example.net/libfoo
12 revision
13
14 $ cat > .hg/hgrc <<EOF
15 > [subpaths]
16 > http://example.net = ssh://localhost
17 > EOF
18
19 hg debugsub with remapping
20
21 $ hg debugsub
22 path sub
23 source ssh://localhost/libfoo
24 revision
25
26 test bad subpaths pattern
27
28 $ cat > .hg/hgrc <<EOF
29 > [subpaths]
30 > .* = \1
31 > EOF
32 $ hg debugsub
33 abort: bad subrepository pattern in .*/test-subrepo-paths.t/outer/.hg/hgrc:2: invalid group reference
34
35 $ exit 0