view tests/test-subrepo-paths.t @ 11959:be33381882ad

test-subrepo-paths: moved comment lines to where they belong
author Martin Geisler <mg@lazybytes.net>
date Wed, 18 Aug 2010 11:59:35 +0200
parents e31e5eb8736c
children f3075ffa6b30
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

  $ cat > .hg/hgrc <<EOF
  > [subpaths]
  > http://example.net = ssh://localhost
  > EOF

  $ hg debugsub
  path sub
   source   ssh://localhost/libfoo
   revision 

test bad subpaths pattern

  $ cat > .hg/hgrc <<EOF
  > [subpaths]
  > .* = \1
  > EOF
  $ hg debugsub
  abort: bad subrepository pattern in .*/test-subrepo-paths.t/outer/.hg/hgrc:2: invalid group reference

  $ exit 0