Mercurial > hg-stable
view tests/test-subrepo-paths.t @ 13883:fc83d2ca9cfb
bugzilla: fix reST error introduced in 22d200e49b10
All blocks must be indented. Here we can use a field list instead of a
verbatim block for a real list layout.
author | Martin Geisler <mg@aragost.com> |
---|---|
date | Tue, 05 Apr 2011 10:20:59 +0200 |
parents | 4f5b269f4ce6 |
children | 91dc8878f888 |
line wrap: on
line source
$ hg init outer $ cd outer hg debugsub with no remapping $ echo 'sub = http://example.net/libfoo' > .hgsub $ hg add .hgsub $ hg debugsub path sub source http://example.net/libfoo revision hg debugsub with remapping $ echo '[subpaths]' > .hg/hgrc $ printf 'http://example.net/lib(.*) = C:\\libs\\\\1-lib\\\n' >> .hg/hgrc $ hg debugsub path sub source C:\libs\foo-lib\ revision test cumulative remapping, the $HGRCPATH file is loaded first $ echo '[subpaths]' >> $HGRCPATH $ echo 'libfoo = libbar' >> $HGRCPATH $ hg debugsub path sub source C:\libs\bar-lib\ revision test bad subpaths pattern $ cat > .hg/hgrc <<EOF > [subpaths] > .* = \1 > EOF $ hg debugsub abort: bad subrepository pattern in $TESTTMP/outer/.hg/hgrc:2: invalid group reference [255]