Mercurial > hg
annotate tests/test-audit-subrepo.t @ 41506:3e89736b98ce
py3: conditionalize test-demandimport.py for Python 3
The Python 3 lazy importer uses the LazyLoader that is part of
importlib.
On Python 3 and later, LazyLoader is implemented using a custom module
type that defines a __getattribute__ which triggers module loading.
Furthermore, there are additional differences as well. For example,
it appears that Python 3 will return an existing sys.modules
entry instead of constructing a new module object.
This commit adds additional test coverage for lazy importing
behavior to cover the differences between Python 2 and 3. This
reveals that the test and some lazy import functionality is kinda
busted. For example, the test assumes "contextlib" will be lazy.
But in reality an import before it has already imported contextlib!
There's definitely room to improve the behavior of the demand
importer code, both for Python 2 and 3. But at least the test
passes on Python 3 now.
Differential Revision: https://phab.mercurial-scm.org/D5796
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Fri, 01 Feb 2019 16:47:29 -0800 |
parents | 4441705b7111 |
children | 31286c9282df |
rev | line source |
---|---|
34983
80d7dbda9294
tests: show symlink traversal across subrepo mount point (SEC)
Yuya Nishihara <yuya@tcha.org>
parents:
diff
changeset
|
1 Test illegal name |
80d7dbda9294
tests: show symlink traversal across subrepo mount point (SEC)
Yuya Nishihara <yuya@tcha.org>
parents:
diff
changeset
|
2 ----------------- |
80d7dbda9294
tests: show symlink traversal across subrepo mount point (SEC)
Yuya Nishihara <yuya@tcha.org>
parents:
diff
changeset
|
3 |
80d7dbda9294
tests: show symlink traversal across subrepo mount point (SEC)
Yuya Nishihara <yuya@tcha.org>
parents:
diff
changeset
|
4 on commit: |
80d7dbda9294
tests: show symlink traversal across subrepo mount point (SEC)
Yuya Nishihara <yuya@tcha.org>
parents:
diff
changeset
|
5 |
80d7dbda9294
tests: show symlink traversal across subrepo mount point (SEC)
Yuya Nishihara <yuya@tcha.org>
parents:
diff
changeset
|
6 $ hg init hgname |
80d7dbda9294
tests: show symlink traversal across subrepo mount point (SEC)
Yuya Nishihara <yuya@tcha.org>
parents:
diff
changeset
|
7 $ cd hgname |
80d7dbda9294
tests: show symlink traversal across subrepo mount point (SEC)
Yuya Nishihara <yuya@tcha.org>
parents:
diff
changeset
|
8 $ mkdir sub |
80d7dbda9294
tests: show symlink traversal across subrepo mount point (SEC)
Yuya Nishihara <yuya@tcha.org>
parents:
diff
changeset
|
9 $ hg init sub/.hg |
80d7dbda9294
tests: show symlink traversal across subrepo mount point (SEC)
Yuya Nishihara <yuya@tcha.org>
parents:
diff
changeset
|
10 $ echo 'sub/.hg = sub/.hg' >> .hgsub |
80d7dbda9294
tests: show symlink traversal across subrepo mount point (SEC)
Yuya Nishihara <yuya@tcha.org>
parents:
diff
changeset
|
11 $ hg ci -qAm 'add subrepo "sub/.hg"' |
35393
4441705b7111
tests: remove (glob) annotations that were only for '\' matches
Matt Harbison <matt_harbison@yahoo.com>
parents:
35166
diff
changeset
|
12 abort: path 'sub/.hg' is inside nested repo 'sub' |
34983
80d7dbda9294
tests: show symlink traversal across subrepo mount point (SEC)
Yuya Nishihara <yuya@tcha.org>
parents:
diff
changeset
|
13 [255] |
80d7dbda9294
tests: show symlink traversal across subrepo mount point (SEC)
Yuya Nishihara <yuya@tcha.org>
parents:
diff
changeset
|
14 |
80d7dbda9294
tests: show symlink traversal across subrepo mount point (SEC)
Yuya Nishihara <yuya@tcha.org>
parents:
diff
changeset
|
15 prepare tampered repo (including the commit above): |
80d7dbda9294
tests: show symlink traversal across subrepo mount point (SEC)
Yuya Nishihara <yuya@tcha.org>
parents:
diff
changeset
|
16 |
80d7dbda9294
tests: show symlink traversal across subrepo mount point (SEC)
Yuya Nishihara <yuya@tcha.org>
parents:
diff
changeset
|
17 $ hg import --bypass -qm 'add subrepo "sub/.hg"' - <<'EOF' |
80d7dbda9294
tests: show symlink traversal across subrepo mount point (SEC)
Yuya Nishihara <yuya@tcha.org>
parents:
diff
changeset
|
18 > diff --git a/.hgsub b/.hgsub |
80d7dbda9294
tests: show symlink traversal across subrepo mount point (SEC)
Yuya Nishihara <yuya@tcha.org>
parents:
diff
changeset
|
19 > new file mode 100644 |
80d7dbda9294
tests: show symlink traversal across subrepo mount point (SEC)
Yuya Nishihara <yuya@tcha.org>
parents:
diff
changeset
|
20 > --- /dev/null |
80d7dbda9294
tests: show symlink traversal across subrepo mount point (SEC)
Yuya Nishihara <yuya@tcha.org>
parents:
diff
changeset
|
21 > +++ b/.hgsub |
80d7dbda9294
tests: show symlink traversal across subrepo mount point (SEC)
Yuya Nishihara <yuya@tcha.org>
parents:
diff
changeset
|
22 > @@ -0,0 +1,1 @@ |
80d7dbda9294
tests: show symlink traversal across subrepo mount point (SEC)
Yuya Nishihara <yuya@tcha.org>
parents:
diff
changeset
|
23 > +sub/.hg = sub/.hg |
80d7dbda9294
tests: show symlink traversal across subrepo mount point (SEC)
Yuya Nishihara <yuya@tcha.org>
parents:
diff
changeset
|
24 > diff --git a/.hgsubstate b/.hgsubstate |
80d7dbda9294
tests: show symlink traversal across subrepo mount point (SEC)
Yuya Nishihara <yuya@tcha.org>
parents:
diff
changeset
|
25 > new file mode 100644 |
80d7dbda9294
tests: show symlink traversal across subrepo mount point (SEC)
Yuya Nishihara <yuya@tcha.org>
parents:
diff
changeset
|
26 > --- /dev/null |
80d7dbda9294
tests: show symlink traversal across subrepo mount point (SEC)
Yuya Nishihara <yuya@tcha.org>
parents:
diff
changeset
|
27 > +++ b/.hgsubstate |
80d7dbda9294
tests: show symlink traversal across subrepo mount point (SEC)
Yuya Nishihara <yuya@tcha.org>
parents:
diff
changeset
|
28 > @@ -0,0 +1,1 @@ |
80d7dbda9294
tests: show symlink traversal across subrepo mount point (SEC)
Yuya Nishihara <yuya@tcha.org>
parents:
diff
changeset
|
29 > +0000000000000000000000000000000000000000 sub/.hg |
80d7dbda9294
tests: show symlink traversal across subrepo mount point (SEC)
Yuya Nishihara <yuya@tcha.org>
parents:
diff
changeset
|
30 > EOF |
80d7dbda9294
tests: show symlink traversal across subrepo mount point (SEC)
Yuya Nishihara <yuya@tcha.org>
parents:
diff
changeset
|
31 $ cd .. |
80d7dbda9294
tests: show symlink traversal across subrepo mount point (SEC)
Yuya Nishihara <yuya@tcha.org>
parents:
diff
changeset
|
32 |
80d7dbda9294
tests: show symlink traversal across subrepo mount point (SEC)
Yuya Nishihara <yuya@tcha.org>
parents:
diff
changeset
|
33 on clone (and update): |
80d7dbda9294
tests: show symlink traversal across subrepo mount point (SEC)
Yuya Nishihara <yuya@tcha.org>
parents:
diff
changeset
|
34 |
80d7dbda9294
tests: show symlink traversal across subrepo mount point (SEC)
Yuya Nishihara <yuya@tcha.org>
parents:
diff
changeset
|
35 $ hg clone -q hgname hgname2 |
35393
4441705b7111
tests: remove (glob) annotations that were only for '\' matches
Matt Harbison <matt_harbison@yahoo.com>
parents:
35166
diff
changeset
|
36 abort: path 'sub/.hg' is inside nested repo 'sub' |
34983
80d7dbda9294
tests: show symlink traversal across subrepo mount point (SEC)
Yuya Nishihara <yuya@tcha.org>
parents:
diff
changeset
|
37 [255] |
80d7dbda9294
tests: show symlink traversal across subrepo mount point (SEC)
Yuya Nishihara <yuya@tcha.org>
parents:
diff
changeset
|
38 |
80d7dbda9294
tests: show symlink traversal across subrepo mount point (SEC)
Yuya Nishihara <yuya@tcha.org>
parents:
diff
changeset
|
39 Test direct symlink traversal |
80d7dbda9294
tests: show symlink traversal across subrepo mount point (SEC)
Yuya Nishihara <yuya@tcha.org>
parents:
diff
changeset
|
40 ----------------------------- |
80d7dbda9294
tests: show symlink traversal across subrepo mount point (SEC)
Yuya Nishihara <yuya@tcha.org>
parents:
diff
changeset
|
41 |
80d7dbda9294
tests: show symlink traversal across subrepo mount point (SEC)
Yuya Nishihara <yuya@tcha.org>
parents:
diff
changeset
|
42 #if symlink |
80d7dbda9294
tests: show symlink traversal across subrepo mount point (SEC)
Yuya Nishihara <yuya@tcha.org>
parents:
diff
changeset
|
43 |
80d7dbda9294
tests: show symlink traversal across subrepo mount point (SEC)
Yuya Nishihara <yuya@tcha.org>
parents:
diff
changeset
|
44 on commit: |
80d7dbda9294
tests: show symlink traversal across subrepo mount point (SEC)
Yuya Nishihara <yuya@tcha.org>
parents:
diff
changeset
|
45 |
80d7dbda9294
tests: show symlink traversal across subrepo mount point (SEC)
Yuya Nishihara <yuya@tcha.org>
parents:
diff
changeset
|
46 $ mkdir hgsymdir |
80d7dbda9294
tests: show symlink traversal across subrepo mount point (SEC)
Yuya Nishihara <yuya@tcha.org>
parents:
diff
changeset
|
47 $ hg init hgsymdir/root |
80d7dbda9294
tests: show symlink traversal across subrepo mount point (SEC)
Yuya Nishihara <yuya@tcha.org>
parents:
diff
changeset
|
48 $ cd hgsymdir/root |
80d7dbda9294
tests: show symlink traversal across subrepo mount point (SEC)
Yuya Nishihara <yuya@tcha.org>
parents:
diff
changeset
|
49 $ ln -s ../out |
80d7dbda9294
tests: show symlink traversal across subrepo mount point (SEC)
Yuya Nishihara <yuya@tcha.org>
parents:
diff
changeset
|
50 $ hg ci -qAm 'add symlink "out"' |
80d7dbda9294
tests: show symlink traversal across subrepo mount point (SEC)
Yuya Nishihara <yuya@tcha.org>
parents:
diff
changeset
|
51 $ hg init ../out |
80d7dbda9294
tests: show symlink traversal across subrepo mount point (SEC)
Yuya Nishihara <yuya@tcha.org>
parents:
diff
changeset
|
52 $ echo 'out = out' >> .hgsub |
80d7dbda9294
tests: show symlink traversal across subrepo mount point (SEC)
Yuya Nishihara <yuya@tcha.org>
parents:
diff
changeset
|
53 $ hg ci -qAm 'add subrepo "out"' |
34984
071cbeba4212
subrepo: disallow symlink traversal across subrepo mount point (SEC)
Yuya Nishihara <yuya@tcha.org>
parents:
34983
diff
changeset
|
54 abort: subrepo 'out' traverses symbolic link |
071cbeba4212
subrepo: disallow symlink traversal across subrepo mount point (SEC)
Yuya Nishihara <yuya@tcha.org>
parents:
34983
diff
changeset
|
55 [255] |
071cbeba4212
subrepo: disallow symlink traversal across subrepo mount point (SEC)
Yuya Nishihara <yuya@tcha.org>
parents:
34983
diff
changeset
|
56 |
071cbeba4212
subrepo: disallow symlink traversal across subrepo mount point (SEC)
Yuya Nishihara <yuya@tcha.org>
parents:
34983
diff
changeset
|
57 prepare tampered repo (including the commit above): |
071cbeba4212
subrepo: disallow symlink traversal across subrepo mount point (SEC)
Yuya Nishihara <yuya@tcha.org>
parents:
34983
diff
changeset
|
58 |
071cbeba4212
subrepo: disallow symlink traversal across subrepo mount point (SEC)
Yuya Nishihara <yuya@tcha.org>
parents:
34983
diff
changeset
|
59 $ hg import --bypass -qm 'add subrepo "out"' - <<'EOF' |
071cbeba4212
subrepo: disallow symlink traversal across subrepo mount point (SEC)
Yuya Nishihara <yuya@tcha.org>
parents:
34983
diff
changeset
|
60 > diff --git a/.hgsub b/.hgsub |
071cbeba4212
subrepo: disallow symlink traversal across subrepo mount point (SEC)
Yuya Nishihara <yuya@tcha.org>
parents:
34983
diff
changeset
|
61 > new file mode 100644 |
071cbeba4212
subrepo: disallow symlink traversal across subrepo mount point (SEC)
Yuya Nishihara <yuya@tcha.org>
parents:
34983
diff
changeset
|
62 > --- /dev/null |
071cbeba4212
subrepo: disallow symlink traversal across subrepo mount point (SEC)
Yuya Nishihara <yuya@tcha.org>
parents:
34983
diff
changeset
|
63 > +++ b/.hgsub |
071cbeba4212
subrepo: disallow symlink traversal across subrepo mount point (SEC)
Yuya Nishihara <yuya@tcha.org>
parents:
34983
diff
changeset
|
64 > @@ -0,0 +1,1 @@ |
071cbeba4212
subrepo: disallow symlink traversal across subrepo mount point (SEC)
Yuya Nishihara <yuya@tcha.org>
parents:
34983
diff
changeset
|
65 > +out = out |
071cbeba4212
subrepo: disallow symlink traversal across subrepo mount point (SEC)
Yuya Nishihara <yuya@tcha.org>
parents:
34983
diff
changeset
|
66 > diff --git a/.hgsubstate b/.hgsubstate |
071cbeba4212
subrepo: disallow symlink traversal across subrepo mount point (SEC)
Yuya Nishihara <yuya@tcha.org>
parents:
34983
diff
changeset
|
67 > new file mode 100644 |
071cbeba4212
subrepo: disallow symlink traversal across subrepo mount point (SEC)
Yuya Nishihara <yuya@tcha.org>
parents:
34983
diff
changeset
|
68 > --- /dev/null |
071cbeba4212
subrepo: disallow symlink traversal across subrepo mount point (SEC)
Yuya Nishihara <yuya@tcha.org>
parents:
34983
diff
changeset
|
69 > +++ b/.hgsubstate |
071cbeba4212
subrepo: disallow symlink traversal across subrepo mount point (SEC)
Yuya Nishihara <yuya@tcha.org>
parents:
34983
diff
changeset
|
70 > @@ -0,0 +1,1 @@ |
071cbeba4212
subrepo: disallow symlink traversal across subrepo mount point (SEC)
Yuya Nishihara <yuya@tcha.org>
parents:
34983
diff
changeset
|
71 > +0000000000000000000000000000000000000000 out |
071cbeba4212
subrepo: disallow symlink traversal across subrepo mount point (SEC)
Yuya Nishihara <yuya@tcha.org>
parents:
34983
diff
changeset
|
72 > EOF |
34983
80d7dbda9294
tests: show symlink traversal across subrepo mount point (SEC)
Yuya Nishihara <yuya@tcha.org>
parents:
diff
changeset
|
73 $ cd ../.. |
80d7dbda9294
tests: show symlink traversal across subrepo mount point (SEC)
Yuya Nishihara <yuya@tcha.org>
parents:
diff
changeset
|
74 |
80d7dbda9294
tests: show symlink traversal across subrepo mount point (SEC)
Yuya Nishihara <yuya@tcha.org>
parents:
diff
changeset
|
75 on clone (and update): |
80d7dbda9294
tests: show symlink traversal across subrepo mount point (SEC)
Yuya Nishihara <yuya@tcha.org>
parents:
diff
changeset
|
76 |
80d7dbda9294
tests: show symlink traversal across subrepo mount point (SEC)
Yuya Nishihara <yuya@tcha.org>
parents:
diff
changeset
|
77 $ mkdir hgsymdir2 |
80d7dbda9294
tests: show symlink traversal across subrepo mount point (SEC)
Yuya Nishihara <yuya@tcha.org>
parents:
diff
changeset
|
78 $ hg clone -q hgsymdir/root hgsymdir2/root |
34984
071cbeba4212
subrepo: disallow symlink traversal across subrepo mount point (SEC)
Yuya Nishihara <yuya@tcha.org>
parents:
34983
diff
changeset
|
79 abort: subrepo 'out' traverses symbolic link |
071cbeba4212
subrepo: disallow symlink traversal across subrepo mount point (SEC)
Yuya Nishihara <yuya@tcha.org>
parents:
34983
diff
changeset
|
80 [255] |
34983
80d7dbda9294
tests: show symlink traversal across subrepo mount point (SEC)
Yuya Nishihara <yuya@tcha.org>
parents:
diff
changeset
|
81 $ ls hgsymdir2 |
80d7dbda9294
tests: show symlink traversal across subrepo mount point (SEC)
Yuya Nishihara <yuya@tcha.org>
parents:
diff
changeset
|
82 root |
80d7dbda9294
tests: show symlink traversal across subrepo mount point (SEC)
Yuya Nishihara <yuya@tcha.org>
parents:
diff
changeset
|
83 |
80d7dbda9294
tests: show symlink traversal across subrepo mount point (SEC)
Yuya Nishihara <yuya@tcha.org>
parents:
diff
changeset
|
84 #endif |
80d7dbda9294
tests: show symlink traversal across subrepo mount point (SEC)
Yuya Nishihara <yuya@tcha.org>
parents:
diff
changeset
|
85 |
80d7dbda9294
tests: show symlink traversal across subrepo mount point (SEC)
Yuya Nishihara <yuya@tcha.org>
parents:
diff
changeset
|
86 Test indirect symlink traversal |
80d7dbda9294
tests: show symlink traversal across subrepo mount point (SEC)
Yuya Nishihara <yuya@tcha.org>
parents:
diff
changeset
|
87 ------------------------------- |
80d7dbda9294
tests: show symlink traversal across subrepo mount point (SEC)
Yuya Nishihara <yuya@tcha.org>
parents:
diff
changeset
|
88 |
80d7dbda9294
tests: show symlink traversal across subrepo mount point (SEC)
Yuya Nishihara <yuya@tcha.org>
parents:
diff
changeset
|
89 #if symlink |
80d7dbda9294
tests: show symlink traversal across subrepo mount point (SEC)
Yuya Nishihara <yuya@tcha.org>
parents:
diff
changeset
|
90 |
80d7dbda9294
tests: show symlink traversal across subrepo mount point (SEC)
Yuya Nishihara <yuya@tcha.org>
parents:
diff
changeset
|
91 on commit: |
80d7dbda9294
tests: show symlink traversal across subrepo mount point (SEC)
Yuya Nishihara <yuya@tcha.org>
parents:
diff
changeset
|
92 |
80d7dbda9294
tests: show symlink traversal across subrepo mount point (SEC)
Yuya Nishihara <yuya@tcha.org>
parents:
diff
changeset
|
93 $ mkdir hgsymin |
80d7dbda9294
tests: show symlink traversal across subrepo mount point (SEC)
Yuya Nishihara <yuya@tcha.org>
parents:
diff
changeset
|
94 $ hg init hgsymin/root |
80d7dbda9294
tests: show symlink traversal across subrepo mount point (SEC)
Yuya Nishihara <yuya@tcha.org>
parents:
diff
changeset
|
95 $ cd hgsymin/root |
80d7dbda9294
tests: show symlink traversal across subrepo mount point (SEC)
Yuya Nishihara <yuya@tcha.org>
parents:
diff
changeset
|
96 $ ln -s ../out |
80d7dbda9294
tests: show symlink traversal across subrepo mount point (SEC)
Yuya Nishihara <yuya@tcha.org>
parents:
diff
changeset
|
97 $ hg ci -qAm 'add symlink "out"' |
80d7dbda9294
tests: show symlink traversal across subrepo mount point (SEC)
Yuya Nishihara <yuya@tcha.org>
parents:
diff
changeset
|
98 $ mkdir ../out |
80d7dbda9294
tests: show symlink traversal across subrepo mount point (SEC)
Yuya Nishihara <yuya@tcha.org>
parents:
diff
changeset
|
99 $ hg init ../out/sub |
80d7dbda9294
tests: show symlink traversal across subrepo mount point (SEC)
Yuya Nishihara <yuya@tcha.org>
parents:
diff
changeset
|
100 $ echo 'out/sub = out/sub' >> .hgsub |
80d7dbda9294
tests: show symlink traversal across subrepo mount point (SEC)
Yuya Nishihara <yuya@tcha.org>
parents:
diff
changeset
|
101 $ hg ci -qAm 'add subrepo "out/sub"' |
80d7dbda9294
tests: show symlink traversal across subrepo mount point (SEC)
Yuya Nishihara <yuya@tcha.org>
parents:
diff
changeset
|
102 abort: path 'out/sub' traverses symbolic link 'out' |
80d7dbda9294
tests: show symlink traversal across subrepo mount point (SEC)
Yuya Nishihara <yuya@tcha.org>
parents:
diff
changeset
|
103 [255] |
80d7dbda9294
tests: show symlink traversal across subrepo mount point (SEC)
Yuya Nishihara <yuya@tcha.org>
parents:
diff
changeset
|
104 |
80d7dbda9294
tests: show symlink traversal across subrepo mount point (SEC)
Yuya Nishihara <yuya@tcha.org>
parents:
diff
changeset
|
105 prepare tampered repo (including the commit above): |
80d7dbda9294
tests: show symlink traversal across subrepo mount point (SEC)
Yuya Nishihara <yuya@tcha.org>
parents:
diff
changeset
|
106 |
80d7dbda9294
tests: show symlink traversal across subrepo mount point (SEC)
Yuya Nishihara <yuya@tcha.org>
parents:
diff
changeset
|
107 $ hg import --bypass -qm 'add subrepo "out/sub"' - <<'EOF' |
80d7dbda9294
tests: show symlink traversal across subrepo mount point (SEC)
Yuya Nishihara <yuya@tcha.org>
parents:
diff
changeset
|
108 > diff --git a/.hgsub b/.hgsub |
80d7dbda9294
tests: show symlink traversal across subrepo mount point (SEC)
Yuya Nishihara <yuya@tcha.org>
parents:
diff
changeset
|
109 > new file mode 100644 |
80d7dbda9294
tests: show symlink traversal across subrepo mount point (SEC)
Yuya Nishihara <yuya@tcha.org>
parents:
diff
changeset
|
110 > --- /dev/null |
80d7dbda9294
tests: show symlink traversal across subrepo mount point (SEC)
Yuya Nishihara <yuya@tcha.org>
parents:
diff
changeset
|
111 > +++ b/.hgsub |
80d7dbda9294
tests: show symlink traversal across subrepo mount point (SEC)
Yuya Nishihara <yuya@tcha.org>
parents:
diff
changeset
|
112 > @@ -0,0 +1,1 @@ |
80d7dbda9294
tests: show symlink traversal across subrepo mount point (SEC)
Yuya Nishihara <yuya@tcha.org>
parents:
diff
changeset
|
113 > +out/sub = out/sub |
80d7dbda9294
tests: show symlink traversal across subrepo mount point (SEC)
Yuya Nishihara <yuya@tcha.org>
parents:
diff
changeset
|
114 > diff --git a/.hgsubstate b/.hgsubstate |
80d7dbda9294
tests: show symlink traversal across subrepo mount point (SEC)
Yuya Nishihara <yuya@tcha.org>
parents:
diff
changeset
|
115 > new file mode 100644 |
80d7dbda9294
tests: show symlink traversal across subrepo mount point (SEC)
Yuya Nishihara <yuya@tcha.org>
parents:
diff
changeset
|
116 > --- /dev/null |
80d7dbda9294
tests: show symlink traversal across subrepo mount point (SEC)
Yuya Nishihara <yuya@tcha.org>
parents:
diff
changeset
|
117 > +++ b/.hgsubstate |
80d7dbda9294
tests: show symlink traversal across subrepo mount point (SEC)
Yuya Nishihara <yuya@tcha.org>
parents:
diff
changeset
|
118 > @@ -0,0 +1,1 @@ |
80d7dbda9294
tests: show symlink traversal across subrepo mount point (SEC)
Yuya Nishihara <yuya@tcha.org>
parents:
diff
changeset
|
119 > +0000000000000000000000000000000000000000 out/sub |
80d7dbda9294
tests: show symlink traversal across subrepo mount point (SEC)
Yuya Nishihara <yuya@tcha.org>
parents:
diff
changeset
|
120 > EOF |
80d7dbda9294
tests: show symlink traversal across subrepo mount point (SEC)
Yuya Nishihara <yuya@tcha.org>
parents:
diff
changeset
|
121 $ cd ../.. |
80d7dbda9294
tests: show symlink traversal across subrepo mount point (SEC)
Yuya Nishihara <yuya@tcha.org>
parents:
diff
changeset
|
122 |
80d7dbda9294
tests: show symlink traversal across subrepo mount point (SEC)
Yuya Nishihara <yuya@tcha.org>
parents:
diff
changeset
|
123 on clone (and update): |
80d7dbda9294
tests: show symlink traversal across subrepo mount point (SEC)
Yuya Nishihara <yuya@tcha.org>
parents:
diff
changeset
|
124 |
80d7dbda9294
tests: show symlink traversal across subrepo mount point (SEC)
Yuya Nishihara <yuya@tcha.org>
parents:
diff
changeset
|
125 $ mkdir hgsymin2 |
80d7dbda9294
tests: show symlink traversal across subrepo mount point (SEC)
Yuya Nishihara <yuya@tcha.org>
parents:
diff
changeset
|
126 $ hg clone -q hgsymin/root hgsymin2/root |
80d7dbda9294
tests: show symlink traversal across subrepo mount point (SEC)
Yuya Nishihara <yuya@tcha.org>
parents:
diff
changeset
|
127 abort: path 'out/sub' traverses symbolic link 'out' |
80d7dbda9294
tests: show symlink traversal across subrepo mount point (SEC)
Yuya Nishihara <yuya@tcha.org>
parents:
diff
changeset
|
128 [255] |
80d7dbda9294
tests: show symlink traversal across subrepo mount point (SEC)
Yuya Nishihara <yuya@tcha.org>
parents:
diff
changeset
|
129 $ ls hgsymin2 |
80d7dbda9294
tests: show symlink traversal across subrepo mount point (SEC)
Yuya Nishihara <yuya@tcha.org>
parents:
diff
changeset
|
130 root |
80d7dbda9294
tests: show symlink traversal across subrepo mount point (SEC)
Yuya Nishihara <yuya@tcha.org>
parents:
diff
changeset
|
131 |
80d7dbda9294
tests: show symlink traversal across subrepo mount point (SEC)
Yuya Nishihara <yuya@tcha.org>
parents:
diff
changeset
|
132 #endif |