Mercurial > hg
view tests/test-subrepo-paths.t @ 13965:ac1c75a7c6b5
merge with stable
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Wed, 20 Apr 2011 12:44:32 -0500 |
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]