equal
deleted
inserted
replaced
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 |