tests/test-subrepo-paths.t
changeset 11959 be33381882ad
parent 11914 e31e5eb8736c
child 11961 f3075ffa6b30
equal deleted inserted replaced
11958:60bfb876dc45 11959:be33381882ad
     1   $ hg init outer
     1   $ hg init outer
     2   $ cd outer
     2   $ cd outer
     3 
     3 
       
     4 hg debugsub with no remapping
       
     5 
     4   $ echo 'sub = http://example.net/libfoo' > .hgsub
     6   $ echo 'sub = http://example.net/libfoo' > .hgsub
     5   $ hg add .hgsub
     7   $ hg add .hgsub
     6 
       
     7 hg debugsub with no remapping
       
     8 
     8 
     9   $ hg debugsub
     9   $ hg debugsub
    10   path sub
    10   path sub
    11    source   http://example.net/libfoo
    11    source   http://example.net/libfoo
    12    revision 
    12    revision 
    13 
    13 
       
    14 hg debugsub with remapping
       
    15 
    14   $ cat > .hg/hgrc <<EOF
    16   $ cat > .hg/hgrc <<EOF
    15   > [subpaths]
    17   > [subpaths]
    16   > http://example.net = ssh://localhost
    18   > http://example.net = ssh://localhost
    17   > EOF
    19   > EOF
    18 
       
    19 hg debugsub with remapping
       
    20 
    20 
    21   $ hg debugsub
    21   $ hg debugsub
    22   path sub
    22   path sub
    23    source   ssh://localhost/libfoo
    23    source   ssh://localhost/libfoo
    24    revision 
    24    revision