tests/test-audit-subrepo.t
changeset 35393 4441705b7111
parent 35166 ba6324ee49e9
child 41456 31286c9282df
equal deleted inserted replaced
35392:5feb782c7a95 35393:4441705b7111
     7   $ cd hgname
     7   $ cd hgname
     8   $ mkdir sub
     8   $ mkdir sub
     9   $ hg init sub/.hg
     9   $ hg init sub/.hg
    10   $ echo 'sub/.hg = sub/.hg' >> .hgsub
    10   $ echo 'sub/.hg = sub/.hg' >> .hgsub
    11   $ hg ci -qAm 'add subrepo "sub/.hg"'
    11   $ hg ci -qAm 'add subrepo "sub/.hg"'
    12   abort: path 'sub/.hg' is inside nested repo 'sub' (glob)
    12   abort: path 'sub/.hg' is inside nested repo 'sub'
    13   [255]
    13   [255]
    14 
    14 
    15 prepare tampered repo (including the commit above):
    15 prepare tampered repo (including the commit above):
    16 
    16 
    17   $ hg import --bypass -qm 'add subrepo "sub/.hg"' - <<'EOF'
    17   $ hg import --bypass -qm 'add subrepo "sub/.hg"' - <<'EOF'
    31   $ cd ..
    31   $ cd ..
    32 
    32 
    33 on clone (and update):
    33 on clone (and update):
    34 
    34 
    35   $ hg clone -q hgname hgname2
    35   $ hg clone -q hgname hgname2
    36   abort: path 'sub/.hg' is inside nested repo 'sub' (glob)
    36   abort: path 'sub/.hg' is inside nested repo 'sub'
    37   [255]
    37   [255]
    38 
    38 
    39 Test direct symlink traversal
    39 Test direct symlink traversal
    40 -----------------------------
    40 -----------------------------
    41 
    41