Mercurial > hg
annotate tests/test-audit-subrepo.t @ 37048:fc5e261915b9
wireproto: require POST for all HTTPv2 requests
Wire protocol version 1 transfers argument data via request
headers by default. This has historically caused problems because
servers institute limits on the length of individual HTTP headers
as well as the total size of all request headers. Mercurial servers
can advertise the maximum length of an individual header. But
there's no guarantee any intermediate HTTP agents will accept
headers up to that length.
In the existing wire protocol, server operators typically also
key off the HTTP request method to implement authentication.
For example, GET requests translate to read-only requests and
can be allowed. But read-write commands must use POST and require
authentication. This has typically worked because the only wire
protocol commands that use POST modify the repo (e.g. the
"unbundle" command).
There is an experimental feature to enable clients to transmit
argument data via POST request bodies. This is technically a
better and more robust solution. But we can't enable it by default
because of servers assuming POST means write access.
In version 2 of the wire protocol, the permissions of a request
are encoded in the URL. And with it being a new protocol in a new
URL space, we're not constrained by backwards compatibility
requirements.
This commit adopts the technically superior mechanism of using
HTTP request bodies to send argument data by requiring POST for
all commands. Strictly speaking, it may be possible to send
request bodies on GET requests. But my experience is that not all
HTTP stacks support this. POST pretty much always works. Using POST
for read-only operations does sacrifice some RESTful design
purity. But this API cares about practicality, not about being
in Roy T. Fielding's REST ivory tower.
There's a chance we may relax this restriction in the future. But
for now, I want to see how far we can get with a POST only API.
Differential Revision: https://phab.mercurial-scm.org/D2837
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Tue, 13 Mar 2018 11:57:43 -0700 |
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 |