Show More
@@ -1,481 +1,481 b'' | |||||
1 | #require serve no-reposimplestore no-chg |
|
1 | #require serve no-reposimplestore no-chg | |
2 |
|
2 | |||
3 | $ cat >> $HGRCPATH <<EOF |
|
3 | $ cat >> $HGRCPATH <<EOF | |
4 | > [extensions] |
|
4 | > [extensions] | |
5 | > lfs= |
|
5 | > lfs= | |
6 | > [lfs] |
|
6 | > [lfs] | |
7 | > track=all() |
|
7 | > track=all() | |
8 | > [web] |
|
8 | > [web] | |
9 | > push_ssl = False |
|
9 | > push_ssl = False | |
10 | > allow-push = * |
|
10 | > allow-push = * | |
11 | > EOF |
|
11 | > EOF | |
12 |
|
12 | |||
13 | Serving LFS files can experimentally be turned off. The long term solution is |
|
13 | Serving LFS files can experimentally be turned off. The long term solution is | |
14 | to support the 'verify' action in both client and server, so that the server can |
|
14 | to support the 'verify' action in both client and server, so that the server can | |
15 | tell the client to store files elsewhere. |
|
15 | tell the client to store files elsewhere. | |
16 |
|
16 | |||
17 | $ hg init server |
|
17 | $ hg init server | |
18 | $ hg --config "lfs.usercache=$TESTTMP/servercache" \ |
|
18 | $ hg --config "lfs.usercache=$TESTTMP/servercache" \ | |
19 | > --config experimental.lfs.serve=False -R server serve -d \ |
|
19 | > --config experimental.lfs.serve=False -R server serve -d \ | |
20 | > -p $HGPORT --pid-file=hg.pid -A $TESTTMP/access.log -E $TESTTMP/errors.log |
|
20 | > -p $HGPORT --pid-file=hg.pid -A $TESTTMP/access.log -E $TESTTMP/errors.log | |
21 | $ cat hg.pid >> $DAEMON_PIDS |
|
21 | $ cat hg.pid >> $DAEMON_PIDS | |
22 |
|
22 | |||
23 | Uploads fail... |
|
23 | Uploads fail... | |
24 |
|
24 | |||
25 | $ hg init client |
|
25 | $ hg init client | |
26 | $ echo 'this-is-an-lfs-file' > client/lfs.bin |
|
26 | $ echo 'this-is-an-lfs-file' > client/lfs.bin | |
27 | $ hg -R client ci -Am 'initial commit' |
|
27 | $ hg -R client ci -Am 'initial commit' | |
28 | adding lfs.bin |
|
28 | adding lfs.bin | |
29 | $ hg -R client push http://localhost:$HGPORT |
|
29 | $ hg -R client push http://localhost:$HGPORT | |
30 | pushing to http://localhost:$HGPORT/ |
|
30 | pushing to http://localhost:$HGPORT/ | |
31 | searching for changes |
|
31 | searching for changes | |
32 | abort: LFS HTTP error: HTTP Error 400: no such method: .git! |
|
32 | abort: LFS HTTP error: HTTP Error 400: no such method: .git! | |
33 | (check that lfs serving is enabled on http://localhost:$HGPORT/.git/info/lfs and "upload" is supported) |
|
33 | (check that lfs serving is enabled on http://localhost:$HGPORT/.git/info/lfs and "upload" is supported) | |
34 | [255] |
|
34 | [255] | |
35 |
|
35 | |||
36 | ... so do a local push to make the data available. Remove the blob from the |
|
36 | ... so do a local push to make the data available. Remove the blob from the | |
37 | default cache, so it attempts to download. |
|
37 | default cache, so it attempts to download. | |
38 | $ hg --config "lfs.usercache=$TESTTMP/servercache" \ |
|
38 | $ hg --config "lfs.usercache=$TESTTMP/servercache" \ | |
39 | > --config "lfs.url=null://" \ |
|
39 | > --config "lfs.url=null://" \ | |
40 | > -R client push -q server |
|
40 | > -R client push -q server | |
41 | $ mv `hg config lfs.usercache` $TESTTMP/servercache |
|
41 | $ mv `hg config lfs.usercache` $TESTTMP/servercache | |
42 |
|
42 | |||
43 | Downloads fail... |
|
43 | Downloads fail... | |
44 |
|
44 | |||
45 | $ hg clone http://localhost:$HGPORT httpclone |
|
45 | $ hg clone http://localhost:$HGPORT httpclone | |
46 | (remote is using large file support (lfs); lfs will be enabled for this repository) |
|
46 | (remote is using large file support (lfs); lfs will be enabled for this repository) | |
47 | requesting all changes |
|
47 | requesting all changes | |
48 | adding changesets |
|
48 | adding changesets | |
49 | adding manifests |
|
49 | adding manifests | |
50 | adding file changes |
|
50 | adding file changes | |
51 | added 1 changesets with 1 changes to 1 files |
|
51 | added 1 changesets with 1 changes to 1 files | |
52 | new changesets 525251863cad |
|
52 | new changesets 525251863cad | |
53 | updating to branch default |
|
53 | updating to branch default | |
54 | abort: LFS HTTP error: HTTP Error 400: no such method: .git! |
|
54 | abort: LFS HTTP error: HTTP Error 400: no such method: .git! | |
55 | (check that lfs serving is enabled on http://localhost:$HGPORT/.git/info/lfs and "download" is supported) |
|
55 | (check that lfs serving is enabled on http://localhost:$HGPORT/.git/info/lfs and "download" is supported) | |
56 | [255] |
|
56 | [255] | |
57 |
|
57 | |||
58 | $ "$PYTHON" $RUNTESTDIR/killdaemons.py $DAEMON_PIDS |
|
58 | $ "$PYTHON" $RUNTESTDIR/killdaemons.py $DAEMON_PIDS | |
59 |
|
59 | |||
60 | $ cat $TESTTMP/access.log $TESTTMP/errors.log |
|
60 | $ cat $TESTTMP/access.log $TESTTMP/errors.log | |
61 | $LOCALIP - - [$LOGDATE$] "GET /?cmd=capabilities HTTP/1.1" 200 - (glob) |
|
61 | $LOCALIP - - [$LOGDATE$] "GET /?cmd=capabilities HTTP/1.1" 200 - (glob) | |
62 | $LOCALIP - - [$LOGDATE$] "GET /?cmd=batch HTTP/1.1" 200 - x-hgarg-1:cmds=heads+%3Bknown+nodes%3D525251863cad618e55d483555f3d00a2ca99597e x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull (glob) |
|
62 | $LOCALIP - - [$LOGDATE$] "GET /?cmd=batch HTTP/1.1" 200 - x-hgarg-1:cmds=heads+%3Bknown+nodes%3D525251863cad618e55d483555f3d00a2ca99597e x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull (glob) | |
63 | $LOCALIP - - [$LOGDATE$] "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=phases x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull (glob) |
|
63 | $LOCALIP - - [$LOGDATE$] "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=phases x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull (glob) | |
64 | $LOCALIP - - [$LOGDATE$] "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=bookmarks x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull (glob) |
|
64 | $LOCALIP - - [$LOGDATE$] "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=bookmarks x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull (glob) | |
65 | $LOCALIP - - [$LOGDATE$] "POST /.git/info/lfs/objects/batch HTTP/1.1" 400 - (glob) |
|
65 | $LOCALIP - - [$LOGDATE$] "POST /.git/info/lfs/objects/batch HTTP/1.1" 400 - (glob) | |
66 | $LOCALIP - - [$LOGDATE$] "GET /?cmd=capabilities HTTP/1.1" 200 - (glob) |
|
66 | $LOCALIP - - [$LOGDATE$] "GET /?cmd=capabilities HTTP/1.1" 200 - (glob) | |
67 | $LOCALIP - - [$LOGDATE$] "GET /?cmd=batch HTTP/1.1" 200 - x-hgarg-1:cmds=heads+%3Bknown+nodes%3D x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull (glob) |
|
67 | $LOCALIP - - [$LOGDATE$] "GET /?cmd=batch HTTP/1.1" 200 - x-hgarg-1:cmds=heads+%3Bknown+nodes%3D x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull (glob) | |
68 | $LOCALIP - - [$LOGDATE$] "GET /?cmd=getbundle HTTP/1.1" 200 - x-hgarg-1:bookmarks=1&bundlecaps=HG20%2Cbundle2%3DHG20%250Abookmarks%250Achangegroup%253D01%252C02%252C03%250Adigests%253Dmd5%252Csha1%252Csha512%250Aerror%253Dabort%252Cunsupportedcontent%252Cpushraced%252Cpushkey%250Ahgtagsfnodes%250Alistkeys%250Aphases%253Dheads%250Apushkey%250Aremote-changegroup%253Dhttp%252Chttps%250Arev-branch-cache%250Astream%253Dv2&cg=1&common=0000000000000000000000000000000000000000&heads=525251863cad618e55d483555f3d00a2ca99597e&listkeys=bookmarks&phases=1 x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull (glob) |
|
68 | $LOCALIP - - [$LOGDATE$] "GET /?cmd=getbundle HTTP/1.1" 200 - x-hgarg-1:bookmarks=1&bundlecaps=HG20%2Cbundle2%3DHG20%250Abookmarks%250Achangegroup%253D01%252C02%252C03%250Adigests%253Dmd5%252Csha1%252Csha512%250Aerror%253Dabort%252Cunsupportedcontent%252Cpushraced%252Cpushkey%250Ahgtagsfnodes%250Alistkeys%250Aphases%253Dheads%250Apushkey%250Aremote-changegroup%253Dhttp%252Chttps%250Arev-branch-cache%250Astream%253Dv2&cg=1&common=0000000000000000000000000000000000000000&heads=525251863cad618e55d483555f3d00a2ca99597e&listkeys=bookmarks&phases=1 x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull (glob) | |
69 | $LOCALIP - - [$LOGDATE$] "POST /.git/info/lfs/objects/batch HTTP/1.1" 400 - (glob) |
|
69 | $LOCALIP - - [$LOGDATE$] "POST /.git/info/lfs/objects/batch HTTP/1.1" 400 - (glob) | |
70 |
|
70 | |||
71 | $ rm -f $TESTTMP/access.log $TESTTMP/errors.log |
|
71 | $ rm -f $TESTTMP/access.log $TESTTMP/errors.log | |
72 | $ hg --config "lfs.usercache=$TESTTMP/servercache" -R server serve -d \ |
|
72 | $ hg --config "lfs.usercache=$TESTTMP/servercache" -R server serve -d \ | |
73 | > -p $HGPORT --pid-file=hg.pid --prefix=subdir/mount/point \ |
|
73 | > -p $HGPORT --pid-file=hg.pid --prefix=subdir/mount/point \ | |
74 | > -A $TESTTMP/access.log -E $TESTTMP/errors.log |
|
74 | > -A $TESTTMP/access.log -E $TESTTMP/errors.log | |
75 | $ cat hg.pid >> $DAEMON_PIDS |
|
75 | $ cat hg.pid >> $DAEMON_PIDS | |
76 |
|
76 | |||
77 | Reasonable hint for a misconfigured blob server |
|
77 | Reasonable hint for a misconfigured blob server | |
78 |
|
78 | |||
79 | $ hg -R httpclone update default --config lfs.url=http://localhost:$HGPORT/missing |
|
79 | $ hg -R httpclone update default --config lfs.url=http://localhost:$HGPORT/missing | |
80 | abort: LFS HTTP error: HTTP Error 404: Not Found! |
|
80 | abort: LFS HTTP error: HTTP Error 404: Not Found! | |
81 | (the "lfs.url" config may be used to override http://localhost:$HGPORT/missing) |
|
81 | (the "lfs.url" config may be used to override http://localhost:$HGPORT/missing) | |
82 | [255] |
|
82 | [255] | |
83 |
|
83 | |||
84 | $ hg -R httpclone update default --config lfs.url=http://localhost:$HGPORT2/missing |
|
84 | $ hg -R httpclone update default --config lfs.url=http://localhost:$HGPORT2/missing | |
85 | abort: LFS error: *onnection *refused*! (glob) (?) |
|
85 | abort: LFS error: *onnection *refused*! (glob) (?) | |
86 | abort: LFS error: $EADDRNOTAVAIL$! (glob) (?) |
|
86 | abort: LFS error: $EADDRNOTAVAIL$! (glob) (?) | |
87 | (the "lfs.url" config may be used to override http://localhost:$HGPORT2/missing) |
|
87 | (the "lfs.url" config may be used to override http://localhost:$HGPORT2/missing) | |
88 | [255] |
|
88 | [255] | |
89 |
|
89 | |||
90 | Blob URIs are correct when --prefix is used |
|
90 | Blob URIs are correct when --prefix is used | |
91 |
|
91 | |||
92 | $ hg clone --debug http://localhost:$HGPORT/subdir/mount/point cloned2 |
|
92 | $ hg clone --debug http://localhost:$HGPORT/subdir/mount/point cloned2 | |
93 | using http://localhost:$HGPORT/subdir/mount/point |
|
93 | using http://localhost:$HGPORT/subdir/mount/point | |
94 | sending capabilities command |
|
94 | sending capabilities command | |
95 | (remote is using large file support (lfs); lfs will be enabled for this repository) |
|
95 | (remote is using large file support (lfs); lfs will be enabled for this repository) | |
96 | query 1; heads |
|
96 | query 1; heads | |
97 | sending batch command |
|
97 | sending batch command | |
98 | requesting all changes |
|
98 | requesting all changes | |
99 | sending getbundle command |
|
99 | sending getbundle command | |
100 | bundle2-input-bundle: with-transaction |
|
100 | bundle2-input-bundle: with-transaction | |
101 | bundle2-input-part: "changegroup" (params: 1 mandatory 1 advisory) supported |
|
101 | bundle2-input-part: "changegroup" (params: 1 mandatory 1 advisory) supported | |
102 | adding changesets |
|
102 | adding changesets | |
103 | add changeset 525251863cad |
|
103 | add changeset 525251863cad | |
104 | adding manifests |
|
104 | adding manifests | |
105 | adding file changes |
|
105 | adding file changes | |
106 | adding lfs.bin revisions |
|
106 | adding lfs.bin revisions | |
107 | added 1 changesets with 1 changes to 1 files |
|
107 | added 1 changesets with 1 changes to 1 files | |
108 | bundle2-input-part: total payload size 648 |
|
108 | bundle2-input-part: total payload size 648 | |
109 | bundle2-input-part: "listkeys" (params: 1 mandatory) supported |
|
109 | bundle2-input-part: "listkeys" (params: 1 mandatory) supported | |
110 | bundle2-input-part: "phase-heads" supported |
|
110 | bundle2-input-part: "phase-heads" supported | |
111 | bundle2-input-part: total payload size 24 |
|
111 | bundle2-input-part: total payload size 24 | |
112 | bundle2-input-part: "cache:rev-branch-cache" (advisory) supported |
|
112 | bundle2-input-part: "cache:rev-branch-cache" (advisory) supported | |
113 | bundle2-input-part: total payload size 39 |
|
113 | bundle2-input-part: total payload size 39 | |
114 | bundle2-input-bundle: 3 parts total |
|
114 | bundle2-input-bundle: 3 parts total | |
115 | checking for updated bookmarks |
|
115 | checking for updated bookmarks | |
116 | updating the branch cache |
|
116 | updating the branch cache | |
117 | new changesets 525251863cad |
|
117 | new changesets 525251863cad | |
118 | updating to branch default |
|
118 | updating to branch default | |
119 | resolving manifests |
|
119 | resolving manifests | |
120 | branchmerge: False, force: False, partial: False |
|
120 | branchmerge: False, force: False, partial: False | |
121 | ancestor: 000000000000, local: 000000000000+, remote: 525251863cad |
|
121 | ancestor: 000000000000, local: 000000000000+, remote: 525251863cad | |
122 | lfs: assuming remote store: http://localhost:$HGPORT/subdir/mount/point/.git/info/lfs |
|
122 | lfs: assuming remote store: http://localhost:$HGPORT/subdir/mount/point/.git/info/lfs | |
123 | Status: 200 |
|
123 | Status: 200 | |
124 | Content-Length: 371 |
|
124 | Content-Length: 371 | |
125 | Content-Type: application/vnd.git-lfs+json |
|
125 | Content-Type: application/vnd.git-lfs+json | |
126 | Date: $HTTP_DATE$ |
|
126 | Date: $HTTP_DATE$ | |
127 | Server: testing stub value |
|
127 | Server: testing stub value | |
128 | { |
|
128 | { | |
129 | "objects": [ |
|
129 | "objects": [ | |
130 | { |
|
130 | { | |
131 | "actions": { |
|
131 | "actions": { | |
132 | "download": { |
|
132 | "download": { | |
133 | "expires_at": "$ISO_8601_DATE_TIME$" |
|
133 | "expires_at": "$ISO_8601_DATE_TIME$" | |
134 | "header": { |
|
134 | "header": { | |
135 | "Accept": "application/vnd.git-lfs" |
|
135 | "Accept": "application/vnd.git-lfs" | |
136 | } |
|
136 | } | |
137 | "href": "http://localhost:$HGPORT/subdir/mount/point/.hg/lfs/objects/f03217a32529a28a42d03b1244fe09b6e0f9fd06d7b966d4d50567be2abe6c0e" |
|
137 | "href": "http://localhost:$HGPORT/subdir/mount/point/.hg/lfs/objects/f03217a32529a28a42d03b1244fe09b6e0f9fd06d7b966d4d50567be2abe6c0e" | |
138 | } |
|
138 | } | |
139 | } |
|
139 | } | |
140 | "oid": "f03217a32529a28a42d03b1244fe09b6e0f9fd06d7b966d4d50567be2abe6c0e" |
|
140 | "oid": "f03217a32529a28a42d03b1244fe09b6e0f9fd06d7b966d4d50567be2abe6c0e" | |
141 | "size": 20 |
|
141 | "size": 20 | |
142 | } |
|
142 | } | |
143 | ] |
|
143 | ] | |
144 | "transfer": "basic" |
|
144 | "transfer": "basic" | |
145 | } |
|
145 | } | |
146 | lfs: downloading f03217a32529a28a42d03b1244fe09b6e0f9fd06d7b966d4d50567be2abe6c0e (20 bytes) |
|
146 | lfs: downloading f03217a32529a28a42d03b1244fe09b6e0f9fd06d7b966d4d50567be2abe6c0e (20 bytes) | |
147 | Status: 200 |
|
147 | Status: 200 | |
148 | Content-Length: 20 |
|
148 | Content-Length: 20 | |
149 | Content-Type: application/octet-stream |
|
149 | Content-Type: application/octet-stream | |
150 | Date: $HTTP_DATE$ |
|
150 | Date: $HTTP_DATE$ | |
151 | Server: testing stub value |
|
151 | Server: testing stub value | |
152 | lfs: adding f03217a32529a28a42d03b1244fe09b6e0f9fd06d7b966d4d50567be2abe6c0e to the usercache |
|
152 | lfs: adding f03217a32529a28a42d03b1244fe09b6e0f9fd06d7b966d4d50567be2abe6c0e to the usercache | |
153 | lfs: processed: f03217a32529a28a42d03b1244fe09b6e0f9fd06d7b966d4d50567be2abe6c0e |
|
153 | lfs: processed: f03217a32529a28a42d03b1244fe09b6e0f9fd06d7b966d4d50567be2abe6c0e | |
154 | lfs: downloaded 1 files (20 bytes) |
|
154 | lfs: downloaded 1 files (20 bytes) | |
155 | lfs.bin: remote created -> g |
|
155 | lfs.bin: remote created -> g | |
156 | getting lfs.bin |
|
156 | getting lfs.bin | |
157 | lfs: found f03217a32529a28a42d03b1244fe09b6e0f9fd06d7b966d4d50567be2abe6c0e in the local lfs store |
|
157 | lfs: found f03217a32529a28a42d03b1244fe09b6e0f9fd06d7b966d4d50567be2abe6c0e in the local lfs store | |
158 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
158 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
159 | (sent 3 HTTP requests and * bytes; received * bytes in responses) (glob) |
|
159 | (sent 3 HTTP requests and * bytes; received * bytes in responses) (glob) | |
160 |
|
160 | |||
161 | $ "$PYTHON" $RUNTESTDIR/killdaemons.py $DAEMON_PIDS |
|
161 | $ "$PYTHON" $RUNTESTDIR/killdaemons.py $DAEMON_PIDS | |
162 |
|
162 | |||
163 | $ cat $TESTTMP/access.log $TESTTMP/errors.log |
|
163 | $ cat $TESTTMP/access.log $TESTTMP/errors.log | |
164 | $LOCALIP - - [$LOGDATE$] "POST /missing/objects/batch HTTP/1.1" 404 - (glob) |
|
164 | $LOCALIP - - [$LOGDATE$] "POST /missing/objects/batch HTTP/1.1" 404 - (glob) | |
165 | $LOCALIP - - [$LOGDATE$] "GET /subdir/mount/point?cmd=capabilities HTTP/1.1" 200 - (glob) |
|
165 | $LOCALIP - - [$LOGDATE$] "GET /subdir/mount/point?cmd=capabilities HTTP/1.1" 200 - (glob) | |
166 | $LOCALIP - - [$LOGDATE$] "GET /subdir/mount/point?cmd=batch HTTP/1.1" 200 - x-hgarg-1:cmds=heads+%3Bknown+nodes%3D x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull (glob) |
|
166 | $LOCALIP - - [$LOGDATE$] "GET /subdir/mount/point?cmd=batch HTTP/1.1" 200 - x-hgarg-1:cmds=heads+%3Bknown+nodes%3D x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull (glob) | |
167 | $LOCALIP - - [$LOGDATE$] "GET /subdir/mount/point?cmd=getbundle HTTP/1.1" 200 - x-hgarg-1:bookmarks=1&bundlecaps=HG20%2Cbundle2%3DHG20%250Abookmarks%250Achangegroup%253D01%252C02%252C03%250Adigests%253Dmd5%252Csha1%252Csha512%250Aerror%253Dabort%252Cunsupportedcontent%252Cpushraced%252Cpushkey%250Ahgtagsfnodes%250Alistkeys%250Aphases%253Dheads%250Apushkey%250Aremote-changegroup%253Dhttp%252Chttps%250Arev-branch-cache%250Astream%253Dv2&cg=1&common=0000000000000000000000000000000000000000&heads=525251863cad618e55d483555f3d00a2ca99597e&listkeys=bookmarks&phases=1 x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull (glob) |
|
167 | $LOCALIP - - [$LOGDATE$] "GET /subdir/mount/point?cmd=getbundle HTTP/1.1" 200 - x-hgarg-1:bookmarks=1&bundlecaps=HG20%2Cbundle2%3DHG20%250Abookmarks%250Achangegroup%253D01%252C02%252C03%250Adigests%253Dmd5%252Csha1%252Csha512%250Aerror%253Dabort%252Cunsupportedcontent%252Cpushraced%252Cpushkey%250Ahgtagsfnodes%250Alistkeys%250Aphases%253Dheads%250Apushkey%250Aremote-changegroup%253Dhttp%252Chttps%250Arev-branch-cache%250Astream%253Dv2&cg=1&common=0000000000000000000000000000000000000000&heads=525251863cad618e55d483555f3d00a2ca99597e&listkeys=bookmarks&phases=1 x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull (glob) | |
168 | $LOCALIP - - [$LOGDATE$] "POST /subdir/mount/point/.git/info/lfs/objects/batch HTTP/1.1" 200 - (glob) |
|
168 | $LOCALIP - - [$LOGDATE$] "POST /subdir/mount/point/.git/info/lfs/objects/batch HTTP/1.1" 200 - (glob) | |
169 | $LOCALIP - - [$LOGDATE$] "GET /subdir/mount/point/.hg/lfs/objects/f03217a32529a28a42d03b1244fe09b6e0f9fd06d7b966d4d50567be2abe6c0e HTTP/1.1" 200 - (glob) |
|
169 | $LOCALIP - - [$LOGDATE$] "GET /subdir/mount/point/.hg/lfs/objects/f03217a32529a28a42d03b1244fe09b6e0f9fd06d7b966d4d50567be2abe6c0e HTTP/1.1" 200 - (glob) | |
170 |
|
170 | |||
171 | Blobs that already exist in the usercache are linked into the repo store, even |
|
171 | Blobs that already exist in the usercache are linked into the repo store, even | |
172 | though the client doesn't send the blob. |
|
172 | though the client doesn't send the blob. | |
173 |
|
173 | |||
174 | $ hg init server2 |
|
174 | $ hg init server2 | |
175 | $ hg --config "lfs.usercache=$TESTTMP/servercache" -R server2 serve -d \ |
|
175 | $ hg --config "lfs.usercache=$TESTTMP/servercache" -R server2 serve -d \ | |
176 | > -p $HGPORT --pid-file=hg.pid \ |
|
176 | > -p $HGPORT --pid-file=hg.pid \ | |
177 | > -A $TESTTMP/access.log -E $TESTTMP/errors.log |
|
177 | > -A $TESTTMP/access.log -E $TESTTMP/errors.log | |
178 | $ cat hg.pid >> $DAEMON_PIDS |
|
178 | $ cat hg.pid >> $DAEMON_PIDS | |
179 |
|
179 | |||
180 | $ hg --config "lfs.usercache=$TESTTMP/servercache" -R cloned2 --debug \ |
|
180 | $ hg --config "lfs.usercache=$TESTTMP/servercache" -R cloned2 --debug \ | |
181 | > push http://localhost:$HGPORT | grep '^[{} ]' |
|
181 | > push http://localhost:$HGPORT | grep '^[{} ]' | |
182 | { |
|
182 | { | |
183 | "objects": [ |
|
183 | "objects": [ | |
184 | { |
|
184 | { | |
185 | "oid": "f03217a32529a28a42d03b1244fe09b6e0f9fd06d7b966d4d50567be2abe6c0e" |
|
185 | "oid": "f03217a32529a28a42d03b1244fe09b6e0f9fd06d7b966d4d50567be2abe6c0e" | |
186 | "size": 20 |
|
186 | "size": 20 | |
187 | } |
|
187 | } | |
188 | ] |
|
188 | ] | |
189 | "transfer": "basic" |
|
189 | "transfer": "basic" | |
190 | } |
|
190 | } | |
191 | $ find server2/.hg/store/lfs/objects | sort |
|
191 | $ find server2/.hg/store/lfs/objects | sort | |
192 | server2/.hg/store/lfs/objects |
|
192 | server2/.hg/store/lfs/objects | |
193 | server2/.hg/store/lfs/objects/f0 |
|
193 | server2/.hg/store/lfs/objects/f0 | |
194 | server2/.hg/store/lfs/objects/f0/3217a32529a28a42d03b1244fe09b6e0f9fd06d7b966d4d50567be2abe6c0e |
|
194 | server2/.hg/store/lfs/objects/f0/3217a32529a28a42d03b1244fe09b6e0f9fd06d7b966d4d50567be2abe6c0e | |
195 | $ "$PYTHON" $RUNTESTDIR/killdaemons.py $DAEMON_PIDS |
|
195 | $ "$PYTHON" $RUNTESTDIR/killdaemons.py $DAEMON_PIDS | |
196 | $ cat $TESTTMP/errors.log |
|
196 | $ cat $TESTTMP/errors.log | |
197 |
|
197 | |||
198 | $ cat >> $TESTTMP/lfsstoreerror.py <<EOF |
|
198 | $ cat >> $TESTTMP/lfsstoreerror.py <<EOF | |
199 | > import errno |
|
199 | > import errno | |
200 | > from hgext.lfs import blobstore |
|
200 | > from hgext.lfs import blobstore | |
201 | > |
|
201 | > | |
202 | > _numverifies = 0 |
|
202 | > _numverifies = 0 | |
203 | > _readerr = True |
|
203 | > _readerr = True | |
204 | > |
|
204 | > | |
205 | > def reposetup(ui, repo): |
|
205 | > def reposetup(ui, repo): | |
206 | > # Nothing to do with a remote repo |
|
206 | > # Nothing to do with a remote repo | |
207 | > if not repo.local(): |
|
207 | > if not repo.local(): | |
208 | > return |
|
208 | > return | |
209 | > |
|
209 | > | |
210 | > store = repo.svfs.lfslocalblobstore |
|
210 | > store = repo.svfs.lfslocalblobstore | |
211 | > class badstore(store.__class__): |
|
211 | > class badstore(store.__class__): | |
212 | > def download(self, oid, src): |
|
212 | > def download(self, oid, src): | |
213 | > '''Called in the server to handle reading from the client in a |
|
213 | > '''Called in the server to handle reading from the client in a | |
214 | > PUT request.''' |
|
214 | > PUT request.''' | |
215 | > origread = src.read |
|
215 | > origread = src.read | |
216 | > def _badread(nbytes): |
|
216 | > def _badread(nbytes): | |
217 | > # Simulate bad data/checksum failure from the client |
|
217 | > # Simulate bad data/checksum failure from the client | |
218 | > return b'0' * len(origread(nbytes)) |
|
218 | > return b'0' * len(origread(nbytes)) | |
219 | > src.read = _badread |
|
219 | > src.read = _badread | |
220 | > super(badstore, self).download(oid, src) |
|
220 | > super(badstore, self).download(oid, src) | |
221 | > |
|
221 | > | |
222 | > def _read(self, vfs, oid, verify): |
|
222 | > def _read(self, vfs, oid, verify): | |
223 | > '''Called in the server to read data for a GET request, and then |
|
223 | > '''Called in the server to read data for a GET request, and then | |
224 | > calls self._verify() on it before returning.''' |
|
224 | > calls self._verify() on it before returning.''' | |
225 | > global _readerr |
|
225 | > global _readerr | |
226 | > # One time simulation of a read error |
|
226 | > # One time simulation of a read error | |
227 | > if _readerr: |
|
227 | > if _readerr: | |
228 | > _readerr = False |
|
228 | > _readerr = False | |
229 | > raise IOError(errno.EIO, r'%s: I/O error' % oid.decode("utf-8")) |
|
229 | > raise IOError(errno.EIO, r'%s: I/O error' % oid.decode("utf-8")) | |
230 | > # Simulate corrupt content on client download |
|
230 | > # Simulate corrupt content on client download | |
231 | > blobstore._verify(oid, b'dummy content') |
|
231 | > blobstore._verify(oid, b'dummy content') | |
232 | > |
|
232 | > | |
233 | > def verify(self, oid): |
|
233 | > def verify(self, oid): | |
234 | > '''Called in the server to populate the Batch API response, |
|
234 | > '''Called in the server to populate the Batch API response, | |
235 | > letting the client re-upload if the file is corrupt.''' |
|
235 | > letting the client re-upload if the file is corrupt.''' | |
236 | > # Fail verify in Batch API for one clone command and one push |
|
236 | > # Fail verify in Batch API for one clone command and one push | |
237 | > # command with an IOError. Then let it through to access other |
|
237 | > # command with an IOError. Then let it through to access other | |
238 | > # functions. Checksum failure is tested elsewhere. |
|
238 | > # functions. Checksum failure is tested elsewhere. | |
239 | > global _numverifies |
|
239 | > global _numverifies | |
240 | > _numverifies += 1 |
|
240 | > _numverifies += 1 | |
241 | > if _numverifies <= 2: |
|
241 | > if _numverifies <= 2: | |
242 | > raise IOError(errno.EIO, r'%s: I/O error' % oid.decode("utf-8")) |
|
242 | > raise IOError(errno.EIO, r'%s: I/O error' % oid.decode("utf-8")) | |
243 | > return super(badstore, self).verify(oid) |
|
243 | > return super(badstore, self).verify(oid) | |
244 | > |
|
244 | > | |
245 | > store.__class__ = badstore |
|
245 | > store.__class__ = badstore | |
246 | > EOF |
|
246 | > EOF | |
247 |
|
247 | |||
248 | $ rm -rf `hg config lfs.usercache` |
|
248 | $ rm -rf `hg config lfs.usercache` | |
249 | $ rm -f $TESTTMP/access.log $TESTTMP/errors.log |
|
249 | $ rm -f $TESTTMP/access.log $TESTTMP/errors.log | |
250 | $ hg --config "lfs.usercache=$TESTTMP/servercache" \ |
|
250 | $ hg --config "lfs.usercache=$TESTTMP/servercache" \ | |
251 | > --config extensions.lfsstoreerror=$TESTTMP/lfsstoreerror.py \ |
|
251 | > --config extensions.lfsstoreerror=$TESTTMP/lfsstoreerror.py \ | |
252 | > -R server serve -d \ |
|
252 | > -R server serve -d \ | |
253 | > -p $HGPORT1 --pid-file=hg.pid -A $TESTTMP/access.log -E $TESTTMP/errors.log |
|
253 | > -p $HGPORT1 --pid-file=hg.pid -A $TESTTMP/access.log -E $TESTTMP/errors.log | |
254 | $ cat hg.pid >> $DAEMON_PIDS |
|
254 | $ cat hg.pid >> $DAEMON_PIDS | |
255 |
|
255 | |||
256 | Test an I/O error in localstore.verify() (Batch API) with GET |
|
256 | Test an I/O error in localstore.verify() (Batch API) with GET | |
257 |
|
257 | |||
258 | $ hg clone http://localhost:$HGPORT1 httpclone2 |
|
258 | $ hg clone http://localhost:$HGPORT1 httpclone2 | |
259 | (remote is using large file support (lfs); lfs will be enabled for this repository) |
|
259 | (remote is using large file support (lfs); lfs will be enabled for this repository) | |
260 | requesting all changes |
|
260 | requesting all changes | |
261 | adding changesets |
|
261 | adding changesets | |
262 | adding manifests |
|
262 | adding manifests | |
263 | adding file changes |
|
263 | adding file changes | |
264 | added 1 changesets with 1 changes to 1 files |
|
264 | added 1 changesets with 1 changes to 1 files | |
265 | new changesets 525251863cad |
|
265 | new changesets 525251863cad | |
266 | updating to branch default |
|
266 | updating to branch default | |
267 | abort: LFS server error for "lfs.bin": Internal server error! |
|
267 | abort: LFS server error for "lfs.bin": Internal server error! | |
268 | [255] |
|
268 | [255] | |
269 |
|
269 | |||
270 | Test an I/O error in localstore.verify() (Batch API) with PUT |
|
270 | Test an I/O error in localstore.verify() (Batch API) with PUT | |
271 |
|
271 | |||
272 | $ echo foo > client/lfs.bin |
|
272 | $ echo foo > client/lfs.bin | |
273 | $ hg -R client ci -m 'mod lfs' |
|
273 | $ hg -R client ci -m 'mod lfs' | |
274 | $ hg -R client push http://localhost:$HGPORT1 |
|
274 | $ hg -R client push http://localhost:$HGPORT1 | |
275 | pushing to http://localhost:$HGPORT1/ |
|
275 | pushing to http://localhost:$HGPORT1/ | |
276 | searching for changes |
|
276 | searching for changes | |
277 | abort: LFS server error for "unknown": Internal server error! |
|
277 | abort: LFS server error for "unknown": Internal server error! | |
278 | [255] |
|
278 | [255] | |
279 | TODO: figure out how to associate the file name in the error above |
|
279 | TODO: figure out how to associate the file name in the error above | |
280 |
|
280 | |||
281 | Test a bad checksum sent by the client in the transfer API |
|
281 | Test a bad checksum sent by the client in the transfer API | |
282 |
|
282 | |||
283 | $ hg -R client push http://localhost:$HGPORT1 |
|
283 | $ hg -R client push http://localhost:$HGPORT1 | |
284 | pushing to http://localhost:$HGPORT1/ |
|
284 | pushing to http://localhost:$HGPORT1/ | |
285 | searching for changes |
|
285 | searching for changes | |
286 | abort: LFS HTTP error: HTTP Error 422: corrupt blob (oid=b5bb9d8014a0f9b1d61e21e796d78dccdf1352f23cd32812f4850b878ae4944c, action=upload)! |
|
286 | abort: LFS HTTP error: HTTP Error 422: corrupt blob (oid=b5bb9d8014a0f9b1d61e21e796d78dccdf1352f23cd32812f4850b878ae4944c, action=upload)! | |
287 | [255] |
|
287 | [255] | |
288 |
|
288 | |||
289 | $ echo 'test lfs file' > server/lfs3.bin |
|
289 | $ echo 'test lfs file' > server/lfs3.bin | |
290 | $ hg --config experimental.lfs.disableusercache=True \ |
|
290 | $ hg --config experimental.lfs.disableusercache=True \ | |
291 | > -R server ci -Aqm 'another lfs file' |
|
291 | > -R server ci -Aqm 'another lfs file' | |
292 | $ hg -R client pull -q http://localhost:$HGPORT1 |
|
292 | $ hg -R client pull -q http://localhost:$HGPORT1 | |
293 |
|
293 | |||
294 | Test an I/O error during the processing of the GET request |
|
294 | Test an I/O error during the processing of the GET request | |
295 |
|
295 | |||
296 | $ hg --config lfs.url=http://localhost:$HGPORT1/.git/info/lfs \ |
|
296 | $ hg --config lfs.url=http://localhost:$HGPORT1/.git/info/lfs \ | |
297 | > -R client update -r tip |
|
297 | > -R client update -r tip | |
298 | abort: LFS HTTP error: HTTP Error 500: Internal Server Error (oid=276f73cfd75f9fb519810df5f5d96d6594ca2521abd86cbcd92122f7d51a1f3d, action=download)! |
|
298 | abort: LFS HTTP error: HTTP Error 500: Internal Server Error (oid=276f73cfd75f9fb519810df5f5d96d6594ca2521abd86cbcd92122f7d51a1f3d, action=download)! | |
299 | [255] |
|
299 | [255] | |
300 |
|
300 | |||
301 | Test a checksum failure during the processing of the GET request |
|
301 | Test a checksum failure during the processing of the GET request | |
302 |
|
302 | |||
303 | $ hg --config lfs.url=http://localhost:$HGPORT1/.git/info/lfs \ |
|
303 | $ hg --config lfs.url=http://localhost:$HGPORT1/.git/info/lfs \ | |
304 | > -R client update -r tip |
|
304 | > -R client update -r tip | |
305 | abort: LFS HTTP error: HTTP Error 422: corrupt blob (oid=276f73cfd75f9fb519810df5f5d96d6594ca2521abd86cbcd92122f7d51a1f3d, action=download)! |
|
305 | abort: LFS HTTP error: HTTP Error 422: corrupt blob (oid=276f73cfd75f9fb519810df5f5d96d6594ca2521abd86cbcd92122f7d51a1f3d, action=download)! | |
306 | [255] |
|
306 | [255] | |
307 |
|
307 | |||
308 | $ "$PYTHON" $RUNTESTDIR/killdaemons.py $DAEMON_PIDS |
|
308 | $ "$PYTHON" $RUNTESTDIR/killdaemons.py $DAEMON_PIDS | |
309 |
|
309 | |||
310 | $ cat $TESTTMP/access.log |
|
310 | $ cat $TESTTMP/access.log | |
311 | $LOCALIP - - [$LOGDATE$] "GET /?cmd=capabilities HTTP/1.1" 200 - (glob) |
|
311 | $LOCALIP - - [$LOGDATE$] "GET /?cmd=capabilities HTTP/1.1" 200 - (glob) | |
312 | $LOCALIP - - [$LOGDATE$] "GET /?cmd=batch HTTP/1.1" 200 - x-hgarg-1:cmds=heads+%3Bknown+nodes%3D x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull (glob) |
|
312 | $LOCALIP - - [$LOGDATE$] "GET /?cmd=batch HTTP/1.1" 200 - x-hgarg-1:cmds=heads+%3Bknown+nodes%3D x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull (glob) | |
313 | $LOCALIP - - [$LOGDATE$] "GET /?cmd=getbundle HTTP/1.1" 200 - x-hgarg-1:bookmarks=1&bundlecaps=HG20%2Cbundle2%3DHG20%250Abookmarks%250Achangegroup%253D01%252C02%252C03%250Adigests%253Dmd5%252Csha1%252Csha512%250Aerror%253Dabort%252Cunsupportedcontent%252Cpushraced%252Cpushkey%250Ahgtagsfnodes%250Alistkeys%250Aphases%253Dheads%250Apushkey%250Aremote-changegroup%253Dhttp%252Chttps%250Arev-branch-cache%250Astream%253Dv2&cg=1&common=0000000000000000000000000000000000000000&heads=525251863cad618e55d483555f3d00a2ca99597e&listkeys=bookmarks&phases=1 x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull (glob) |
|
313 | $LOCALIP - - [$LOGDATE$] "GET /?cmd=getbundle HTTP/1.1" 200 - x-hgarg-1:bookmarks=1&bundlecaps=HG20%2Cbundle2%3DHG20%250Abookmarks%250Achangegroup%253D01%252C02%252C03%250Adigests%253Dmd5%252Csha1%252Csha512%250Aerror%253Dabort%252Cunsupportedcontent%252Cpushraced%252Cpushkey%250Ahgtagsfnodes%250Alistkeys%250Aphases%253Dheads%250Apushkey%250Aremote-changegroup%253Dhttp%252Chttps%250Arev-branch-cache%250Astream%253Dv2&cg=1&common=0000000000000000000000000000000000000000&heads=525251863cad618e55d483555f3d00a2ca99597e&listkeys=bookmarks&phases=1 x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull (glob) | |
314 | $LOCALIP - - [$LOGDATE$] "POST /.git/info/lfs/objects/batch HTTP/1.1" 200 - (glob) |
|
314 | $LOCALIP - - [$LOGDATE$] "POST /.git/info/lfs/objects/batch HTTP/1.1" 200 - (glob) | |
315 | $LOCALIP - - [$LOGDATE$] "GET /?cmd=capabilities HTTP/1.1" 200 - (glob) |
|
315 | $LOCALIP - - [$LOGDATE$] "GET /?cmd=capabilities HTTP/1.1" 200 - (glob) | |
316 | $LOCALIP - - [$LOGDATE$] "GET /?cmd=batch HTTP/1.1" 200 - x-hgarg-1:cmds=heads+%3Bknown+nodes%3D392c05922088bacf8e68a6939b480017afbf245d x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull (glob) |
|
316 | $LOCALIP - - [$LOGDATE$] "GET /?cmd=batch HTTP/1.1" 200 - x-hgarg-1:cmds=heads+%3Bknown+nodes%3D392c05922088bacf8e68a6939b480017afbf245d x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull (glob) | |
317 | $LOCALIP - - [$LOGDATE$] "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=phases x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull (glob) |
|
317 | $LOCALIP - - [$LOGDATE$] "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=phases x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull (glob) | |
318 | $LOCALIP - - [$LOGDATE$] "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=bookmarks x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull (glob) |
|
318 | $LOCALIP - - [$LOGDATE$] "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=bookmarks x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull (glob) | |
319 | $LOCALIP - - [$LOGDATE$] "GET /?cmd=branchmap HTTP/1.1" 200 - x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull (glob) |
|
319 | $LOCALIP - - [$LOGDATE$] "GET /?cmd=branchmap HTTP/1.1" 200 - x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull (glob) | |
320 | $LOCALIP - - [$LOGDATE$] "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=bookmarks x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull (glob) |
|
320 | $LOCALIP - - [$LOGDATE$] "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=bookmarks x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull (glob) | |
321 | $LOCALIP - - [$LOGDATE$] "POST /.git/info/lfs/objects/batch HTTP/1.1" 200 - (glob) |
|
321 | $LOCALIP - - [$LOGDATE$] "POST /.git/info/lfs/objects/batch HTTP/1.1" 200 - (glob) | |
322 | $LOCALIP - - [$LOGDATE$] "GET /?cmd=capabilities HTTP/1.1" 200 - (glob) |
|
322 | $LOCALIP - - [$LOGDATE$] "GET /?cmd=capabilities HTTP/1.1" 200 - (glob) | |
323 | $LOCALIP - - [$LOGDATE$] "GET /?cmd=batch HTTP/1.1" 200 - x-hgarg-1:cmds=heads+%3Bknown+nodes%3D392c05922088bacf8e68a6939b480017afbf245d x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull (glob) |
|
323 | $LOCALIP - - [$LOGDATE$] "GET /?cmd=batch HTTP/1.1" 200 - x-hgarg-1:cmds=heads+%3Bknown+nodes%3D392c05922088bacf8e68a6939b480017afbf245d x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull (glob) | |
324 | $LOCALIP - - [$LOGDATE$] "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=phases x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull (glob) |
|
324 | $LOCALIP - - [$LOGDATE$] "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=phases x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull (glob) | |
325 | $LOCALIP - - [$LOGDATE$] "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=bookmarks x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull (glob) |
|
325 | $LOCALIP - - [$LOGDATE$] "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=bookmarks x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull (glob) | |
326 | $LOCALIP - - [$LOGDATE$] "GET /?cmd=branchmap HTTP/1.1" 200 - x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull (glob) |
|
326 | $LOCALIP - - [$LOGDATE$] "GET /?cmd=branchmap HTTP/1.1" 200 - x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull (glob) | |
327 | $LOCALIP - - [$LOGDATE$] "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=bookmarks x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull (glob) |
|
327 | $LOCALIP - - [$LOGDATE$] "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=bookmarks x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull (glob) | |
328 | $LOCALIP - - [$LOGDATE$] "POST /.git/info/lfs/objects/batch HTTP/1.1" 200 - (glob) |
|
328 | $LOCALIP - - [$LOGDATE$] "POST /.git/info/lfs/objects/batch HTTP/1.1" 200 - (glob) | |
329 | $LOCALIP - - [$LOGDATE$] "PUT /.hg/lfs/objects/b5bb9d8014a0f9b1d61e21e796d78dccdf1352f23cd32812f4850b878ae4944c HTTP/1.1" 422 - (glob) |
|
329 | $LOCALIP - - [$LOGDATE$] "PUT /.hg/lfs/objects/b5bb9d8014a0f9b1d61e21e796d78dccdf1352f23cd32812f4850b878ae4944c HTTP/1.1" 422 - (glob) | |
330 | $LOCALIP - - [$LOGDATE$] "GET /?cmd=capabilities HTTP/1.1" 200 - (glob) |
|
330 | $LOCALIP - - [$LOGDATE$] "GET /?cmd=capabilities HTTP/1.1" 200 - (glob) | |
331 | $LOCALIP - - [$LOGDATE$] "GET /?cmd=batch HTTP/1.1" 200 - x-hgarg-1:cmds=heads+%3Bknown+nodes%3D392c05922088bacf8e68a6939b480017afbf245d x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull (glob) |
|
331 | $LOCALIP - - [$LOGDATE$] "GET /?cmd=batch HTTP/1.1" 200 - x-hgarg-1:cmds=heads+%3Bknown+nodes%3D392c05922088bacf8e68a6939b480017afbf245d x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull (glob) | |
332 | $LOCALIP - - [$LOGDATE$] "GET /?cmd=getbundle HTTP/1.1" 200 - x-hgarg-1:bookmarks=1&bundlecaps=HG20%2Cbundle2%3DHG20%250Abookmarks%250Achangegroup%253D01%252C02%252C03%250Adigests%253Dmd5%252Csha1%252Csha512%250Aerror%253Dabort%252Cunsupportedcontent%252Cpushraced%252Cpushkey%250Ahgtagsfnodes%250Alistkeys%250Aphases%253Dheads%250Apushkey%250Aremote-changegroup%253Dhttp%252Chttps%250Arev-branch-cache%250Astream%253Dv2&cg=1&common=525251863cad618e55d483555f3d00a2ca99597e&heads=506bf3d83f78c54b89e81c6411adee19fdf02156+525251863cad618e55d483555f3d00a2ca99597e&listkeys=bookmarks&phases=1 x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull (glob) |
|
332 | $LOCALIP - - [$LOGDATE$] "GET /?cmd=getbundle HTTP/1.1" 200 - x-hgarg-1:bookmarks=1&bundlecaps=HG20%2Cbundle2%3DHG20%250Abookmarks%250Achangegroup%253D01%252C02%252C03%250Adigests%253Dmd5%252Csha1%252Csha512%250Aerror%253Dabort%252Cunsupportedcontent%252Cpushraced%252Cpushkey%250Ahgtagsfnodes%250Alistkeys%250Aphases%253Dheads%250Apushkey%250Aremote-changegroup%253Dhttp%252Chttps%250Arev-branch-cache%250Astream%253Dv2&cg=1&common=525251863cad618e55d483555f3d00a2ca99597e&heads=506bf3d83f78c54b89e81c6411adee19fdf02156+525251863cad618e55d483555f3d00a2ca99597e&listkeys=bookmarks&phases=1 x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull (glob) | |
333 | $LOCALIP - - [$LOGDATE$] "POST /.git/info/lfs/objects/batch HTTP/1.1" 200 - (glob) |
|
333 | $LOCALIP - - [$LOGDATE$] "POST /.git/info/lfs/objects/batch HTTP/1.1" 200 - (glob) | |
334 | $LOCALIP - - [$LOGDATE$] "GET /.hg/lfs/objects/276f73cfd75f9fb519810df5f5d96d6594ca2521abd86cbcd92122f7d51a1f3d HTTP/1.1" 500 - (glob) |
|
334 | $LOCALIP - - [$LOGDATE$] "GET /.hg/lfs/objects/276f73cfd75f9fb519810df5f5d96d6594ca2521abd86cbcd92122f7d51a1f3d HTTP/1.1" 500 - (glob) | |
335 | $LOCALIP - - [$LOGDATE$] "POST /.git/info/lfs/objects/batch HTTP/1.1" 200 - (glob) |
|
335 | $LOCALIP - - [$LOGDATE$] "POST /.git/info/lfs/objects/batch HTTP/1.1" 200 - (glob) | |
336 | $LOCALIP - - [$LOGDATE$] "GET /.hg/lfs/objects/276f73cfd75f9fb519810df5f5d96d6594ca2521abd86cbcd92122f7d51a1f3d HTTP/1.1" 422 - (glob) |
|
336 | $LOCALIP - - [$LOGDATE$] "GET /.hg/lfs/objects/276f73cfd75f9fb519810df5f5d96d6594ca2521abd86cbcd92122f7d51a1f3d HTTP/1.1" 422 - (glob) | |
337 |
|
337 | |||
338 | $ grep -v ' File "' $TESTTMP/errors.log |
|
338 | $ grep -v ' File "' $TESTTMP/errors.log | |
339 | $LOCALIP - - [$ERRDATE$] HG error: Exception happened while processing request '/.git/info/lfs/objects/batch': (glob) |
|
339 | $LOCALIP - - [$ERRDATE$] HG error: Exception happened while processing request '/.git/info/lfs/objects/batch': (glob) | |
340 | $LOCALIP - - [$ERRDATE$] HG error: Traceback (most recent call last): (glob) |
|
340 | $LOCALIP - - [$ERRDATE$] HG error: Traceback (most recent call last): (glob) | |
341 | $LOCALIP - - [$ERRDATE$] HG error: verifies = store.verify(oid) (glob) |
|
341 | $LOCALIP - - [$ERRDATE$] HG error: verifies = store.verify(oid) (glob) | |
342 | $LOCALIP - - [$ERRDATE$] HG error: raise IOError(errno.EIO, r'%s: I/O error' % oid.decode("utf-8")) (glob) |
|
342 | $LOCALIP - - [$ERRDATE$] HG error: raise IOError(errno.EIO, r'%s: I/O error' % oid.decode("utf-8")) (glob) | |
343 |
$LOCALIP - - [$ERRDATE$] HG error: |
|
343 | $LOCALIP - - [$ERRDATE$] HG error: *Error: [Errno 5] f03217a32529a28a42d03b1244fe09b6e0f9fd06d7b966d4d50567be2abe6c0e: I/O error (glob) | |
344 | $LOCALIP - - [$ERRDATE$] HG error: (glob) |
|
344 | $LOCALIP - - [$ERRDATE$] HG error: (glob) | |
345 | $LOCALIP - - [$ERRDATE$] HG error: Exception happened while processing request '/.git/info/lfs/objects/batch': (glob) |
|
345 | $LOCALIP - - [$ERRDATE$] HG error: Exception happened while processing request '/.git/info/lfs/objects/batch': (glob) | |
346 | $LOCALIP - - [$ERRDATE$] HG error: Traceback (most recent call last): (glob) |
|
346 | $LOCALIP - - [$ERRDATE$] HG error: Traceback (most recent call last): (glob) | |
347 | $LOCALIP - - [$ERRDATE$] HG error: verifies = store.verify(oid) (glob) |
|
347 | $LOCALIP - - [$ERRDATE$] HG error: verifies = store.verify(oid) (glob) | |
348 | $LOCALIP - - [$ERRDATE$] HG error: raise IOError(errno.EIO, r'%s: I/O error' % oid.decode("utf-8")) (glob) |
|
348 | $LOCALIP - - [$ERRDATE$] HG error: raise IOError(errno.EIO, r'%s: I/O error' % oid.decode("utf-8")) (glob) | |
349 |
$LOCALIP - - [$ERRDATE$] HG error: |
|
349 | $LOCALIP - - [$ERRDATE$] HG error: *Error: [Errno 5] b5bb9d8014a0f9b1d61e21e796d78dccdf1352f23cd32812f4850b878ae4944c: I/O error (glob) | |
350 | $LOCALIP - - [$ERRDATE$] HG error: (glob) |
|
350 | $LOCALIP - - [$ERRDATE$] HG error: (glob) | |
351 | $LOCALIP - - [$ERRDATE$] HG error: Exception happened while processing request '/.hg/lfs/objects/b5bb9d8014a0f9b1d61e21e796d78dccdf1352f23cd32812f4850b878ae4944c': (glob) |
|
351 | $LOCALIP - - [$ERRDATE$] HG error: Exception happened while processing request '/.hg/lfs/objects/b5bb9d8014a0f9b1d61e21e796d78dccdf1352f23cd32812f4850b878ae4944c': (glob) | |
352 | $LOCALIP - - [$ERRDATE$] HG error: Traceback (most recent call last): (glob) |
|
352 | $LOCALIP - - [$ERRDATE$] HG error: Traceback (most recent call last): (glob) | |
353 | $LOCALIP - - [$ERRDATE$] HG error: localstore.download(oid, req.bodyfh) (glob) |
|
353 | $LOCALIP - - [$ERRDATE$] HG error: localstore.download(oid, req.bodyfh) (glob) | |
354 | $LOCALIP - - [$ERRDATE$] HG error: super(badstore, self).download(oid, src) (glob) |
|
354 | $LOCALIP - - [$ERRDATE$] HG error: super(badstore, self).download(oid, src) (glob) | |
355 | $LOCALIP - - [$ERRDATE$] HG error: % oid) (glob) |
|
355 | $LOCALIP - - [$ERRDATE$] HG error: % oid) (glob) | |
356 | $LOCALIP - - [$ERRDATE$] HG error: LfsCorruptionError: corrupt remote lfs object: b5bb9d8014a0f9b1d61e21e796d78dccdf1352f23cd32812f4850b878ae4944c (glob) |
|
356 | $LOCALIP - - [$ERRDATE$] HG error: LfsCorruptionError: corrupt remote lfs object: b5bb9d8014a0f9b1d61e21e796d78dccdf1352f23cd32812f4850b878ae4944c (glob) | |
357 | $LOCALIP - - [$ERRDATE$] HG error: (glob) |
|
357 | $LOCALIP - - [$ERRDATE$] HG error: (glob) | |
358 | $LOCALIP - - [$ERRDATE$] Exception happened during processing request '/.hg/lfs/objects/276f73cfd75f9fb519810df5f5d96d6594ca2521abd86cbcd92122f7d51a1f3d': (glob) |
|
358 | $LOCALIP - - [$ERRDATE$] Exception happened during processing request '/.hg/lfs/objects/276f73cfd75f9fb519810df5f5d96d6594ca2521abd86cbcd92122f7d51a1f3d': (glob) | |
359 | Traceback (most recent call last): |
|
359 | Traceback (most recent call last): | |
360 | self.do_write() |
|
360 | self.do_write() | |
361 | self.do_hgweb() |
|
361 | self.do_hgweb() | |
362 | for chunk in self.server.application(env, self._start_response): |
|
362 | for chunk in self.server.application(env, self._start_response): | |
363 | for r in self._runwsgi(req, res, repo): |
|
363 | for r in self._runwsgi(req, res, repo): | |
364 | rctx, req, res, self.check_perm) |
|
364 | rctx, req, res, self.check_perm) | |
365 | return func(*(args + a), **kw) |
|
365 | return func(*(args + a), **kw) (no-py3 !) | |
366 | lambda perm: |
|
366 | lambda perm: | |
367 | res.setbodybytes(localstore.read(oid)) |
|
367 | res.setbodybytes(localstore.read(oid)) | |
368 | blob = self._read(self.vfs, oid, verify) |
|
368 | blob = self._read(self.vfs, oid, verify) | |
369 | raise IOError(errno.EIO, r'%s: I/O error' % oid.decode("utf-8")) |
|
369 | raise IOError(errno.EIO, r'%s: I/O error' % oid.decode("utf-8")) | |
370 |
|
|
370 | *Error: [Errno 5] 276f73cfd75f9fb519810df5f5d96d6594ca2521abd86cbcd92122f7d51a1f3d: I/O error (glob) | |
371 |
|
371 | |||
372 | $LOCALIP - - [$ERRDATE$] HG error: Exception happened while processing request '/.hg/lfs/objects/276f73cfd75f9fb519810df5f5d96d6594ca2521abd86cbcd92122f7d51a1f3d': (glob) |
|
372 | $LOCALIP - - [$ERRDATE$] HG error: Exception happened while processing request '/.hg/lfs/objects/276f73cfd75f9fb519810df5f5d96d6594ca2521abd86cbcd92122f7d51a1f3d': (glob) | |
373 | $LOCALIP - - [$ERRDATE$] HG error: Traceback (most recent call last): (glob) |
|
373 | $LOCALIP - - [$ERRDATE$] HG error: Traceback (most recent call last): (glob) | |
374 | $LOCALIP - - [$ERRDATE$] HG error: res.setbodybytes(localstore.read(oid)) (glob) |
|
374 | $LOCALIP - - [$ERRDATE$] HG error: res.setbodybytes(localstore.read(oid)) (glob) | |
375 | $LOCALIP - - [$ERRDATE$] HG error: blob = self._read(self.vfs, oid, verify) (glob) |
|
375 | $LOCALIP - - [$ERRDATE$] HG error: blob = self._read(self.vfs, oid, verify) (glob) | |
376 | $LOCALIP - - [$ERRDATE$] HG error: blobstore._verify(oid, b'dummy content') (glob) |
|
376 | $LOCALIP - - [$ERRDATE$] HG error: blobstore._verify(oid, b'dummy content') (glob) | |
377 | $LOCALIP - - [$ERRDATE$] HG error: hint=_(b'run hg verify')) (glob) |
|
377 | $LOCALIP - - [$ERRDATE$] HG error: hint=_(b'run hg verify')) (glob) | |
378 | $LOCALIP - - [$ERRDATE$] HG error: LfsCorruptionError: detected corrupt lfs object: 276f73cfd75f9fb519810df5f5d96d6594ca2521abd86cbcd92122f7d51a1f3d (glob) |
|
378 | $LOCALIP - - [$ERRDATE$] HG error: LfsCorruptionError: detected corrupt lfs object: 276f73cfd75f9fb519810df5f5d96d6594ca2521abd86cbcd92122f7d51a1f3d (glob) | |
379 | $LOCALIP - - [$ERRDATE$] HG error: (glob) |
|
379 | $LOCALIP - - [$ERRDATE$] HG error: (glob) | |
380 |
|
380 | |||
381 | Basic Authorization headers are returned by the Batch API, and sent back with |
|
381 | Basic Authorization headers are returned by the Batch API, and sent back with | |
382 | the GET/PUT request. |
|
382 | the GET/PUT request. | |
383 |
|
383 | |||
384 | $ rm -f $TESTTMP/access.log $TESTTMP/errors.log |
|
384 | $ rm -f $TESTTMP/access.log $TESTTMP/errors.log | |
385 |
|
385 | |||
386 | $ cat >> $HGRCPATH << EOF |
|
386 | $ cat >> $HGRCPATH << EOF | |
387 | > [experimental] |
|
387 | > [experimental] | |
388 | > lfs.disableusercache = True |
|
388 | > lfs.disableusercache = True | |
389 | > [auth] |
|
389 | > [auth] | |
390 | > l.schemes=http |
|
390 | > l.schemes=http | |
391 | > l.prefix=lo |
|
391 | > l.prefix=lo | |
392 | > l.username=user |
|
392 | > l.username=user | |
393 | > l.password=pass |
|
393 | > l.password=pass | |
394 | > EOF |
|
394 | > EOF | |
395 |
|
395 | |||
396 | $ cat << EOF > userpass.py |
|
396 | $ cat << EOF > userpass.py | |
397 | > import base64 |
|
397 | > import base64 | |
398 | > from mercurial.hgweb import common |
|
398 | > from mercurial.hgweb import common | |
399 | > def perform_authentication(hgweb, req, op): |
|
399 | > def perform_authentication(hgweb, req, op): | |
400 | > auth = req.headers.get(b'Authorization') |
|
400 | > auth = req.headers.get(b'Authorization') | |
401 | > if not auth: |
|
401 | > if not auth: | |
402 | > raise common.ErrorResponse(common.HTTP_UNAUTHORIZED, b'who', |
|
402 | > raise common.ErrorResponse(common.HTTP_UNAUTHORIZED, b'who', | |
403 | > [(b'WWW-Authenticate', b'Basic Realm="mercurial"')]) |
|
403 | > [(b'WWW-Authenticate', b'Basic Realm="mercurial"')]) | |
404 | > if base64.b64decode(auth.split()[1]).split(b':', 1) != [b'user', |
|
404 | > if base64.b64decode(auth.split()[1]).split(b':', 1) != [b'user', | |
405 | > b'pass']: |
|
405 | > b'pass']: | |
406 | > raise common.ErrorResponse(common.HTTP_FORBIDDEN, b'no') |
|
406 | > raise common.ErrorResponse(common.HTTP_FORBIDDEN, b'no') | |
407 | > def extsetup(ui): |
|
407 | > def extsetup(ui): | |
408 | > common.permhooks.insert(0, perform_authentication) |
|
408 | > common.permhooks.insert(0, perform_authentication) | |
409 | > EOF |
|
409 | > EOF | |
410 |
|
410 | |||
411 | $ hg --config extensions.x=$TESTTMP/userpass.py \ |
|
411 | $ hg --config extensions.x=$TESTTMP/userpass.py \ | |
412 | > -R server serve -d -p $HGPORT1 --pid-file=hg.pid \ |
|
412 | > -R server serve -d -p $HGPORT1 --pid-file=hg.pid \ | |
413 | > -A $TESTTMP/access.log -E $TESTTMP/errors.log |
|
413 | > -A $TESTTMP/access.log -E $TESTTMP/errors.log | |
414 | $ mv hg.pid $DAEMON_PIDS |
|
414 | $ mv hg.pid $DAEMON_PIDS | |
415 |
|
415 | |||
416 | $ hg clone --debug http://localhost:$HGPORT1 auth_clone | egrep '^[{}]| ' |
|
416 | $ hg clone --debug http://localhost:$HGPORT1 auth_clone | egrep '^[{}]| ' | |
417 | { |
|
417 | { | |
418 | "objects": [ |
|
418 | "objects": [ | |
419 | { |
|
419 | { | |
420 | "actions": { |
|
420 | "actions": { | |
421 | "download": { |
|
421 | "download": { | |
422 | "expires_at": "$ISO_8601_DATE_TIME$" |
|
422 | "expires_at": "$ISO_8601_DATE_TIME$" | |
423 | "header": { |
|
423 | "header": { | |
424 | "Accept": "application/vnd.git-lfs" |
|
424 | "Accept": "application/vnd.git-lfs" | |
425 | "Authorization": "Basic dXNlcjpwYXNz" |
|
425 | "Authorization": "Basic dXNlcjpwYXNz" | |
426 | } |
|
426 | } | |
427 | "href": "http://localhost:$HGPORT1/.hg/lfs/objects/276f73cfd75f9fb519810df5f5d96d6594ca2521abd86cbcd92122f7d51a1f3d" |
|
427 | "href": "http://localhost:$HGPORT1/.hg/lfs/objects/276f73cfd75f9fb519810df5f5d96d6594ca2521abd86cbcd92122f7d51a1f3d" | |
428 | } |
|
428 | } | |
429 | } |
|
429 | } | |
430 | "oid": "276f73cfd75f9fb519810df5f5d96d6594ca2521abd86cbcd92122f7d51a1f3d" |
|
430 | "oid": "276f73cfd75f9fb519810df5f5d96d6594ca2521abd86cbcd92122f7d51a1f3d" | |
431 | "size": 14 |
|
431 | "size": 14 | |
432 | } |
|
432 | } | |
433 | ] |
|
433 | ] | |
434 | "transfer": "basic" |
|
434 | "transfer": "basic" | |
435 | } |
|
435 | } | |
436 |
|
436 | |||
437 | $ echo 'another blob' > auth_clone/lfs.blob |
|
437 | $ echo 'another blob' > auth_clone/lfs.blob | |
438 | $ hg -R auth_clone ci -Aqm 'add blob' |
|
438 | $ hg -R auth_clone ci -Aqm 'add blob' | |
439 | $ hg -R auth_clone --debug push | egrep '^[{}]| ' |
|
439 | $ hg -R auth_clone --debug push | egrep '^[{}]| ' | |
440 | { |
|
440 | { | |
441 | "objects": [ |
|
441 | "objects": [ | |
442 | { |
|
442 | { | |
443 | "actions": { |
|
443 | "actions": { | |
444 | "upload": { |
|
444 | "upload": { | |
445 | "expires_at": "$ISO_8601_DATE_TIME$" |
|
445 | "expires_at": "$ISO_8601_DATE_TIME$" | |
446 | "header": { |
|
446 | "header": { | |
447 | "Accept": "application/vnd.git-lfs" |
|
447 | "Accept": "application/vnd.git-lfs" | |
448 | "Authorization": "Basic dXNlcjpwYXNz" |
|
448 | "Authorization": "Basic dXNlcjpwYXNz" | |
449 | } |
|
449 | } | |
450 | "href": "http://localhost:$HGPORT1/.hg/lfs/objects/df14287d8d75f076a6459e7a3703ca583ca9fb3f4918caed10c77ac8622d49b3" |
|
450 | "href": "http://localhost:$HGPORT1/.hg/lfs/objects/df14287d8d75f076a6459e7a3703ca583ca9fb3f4918caed10c77ac8622d49b3" | |
451 | } |
|
451 | } | |
452 | } |
|
452 | } | |
453 | "oid": "df14287d8d75f076a6459e7a3703ca583ca9fb3f4918caed10c77ac8622d49b3" |
|
453 | "oid": "df14287d8d75f076a6459e7a3703ca583ca9fb3f4918caed10c77ac8622d49b3" | |
454 | "size": 13 |
|
454 | "size": 13 | |
455 | } |
|
455 | } | |
456 | ] |
|
456 | ] | |
457 | "transfer": "basic" |
|
457 | "transfer": "basic" | |
458 | } |
|
458 | } | |
459 |
|
459 | |||
460 | $ "$PYTHON" $RUNTESTDIR/killdaemons.py $DAEMON_PIDS |
|
460 | $ "$PYTHON" $RUNTESTDIR/killdaemons.py $DAEMON_PIDS | |
461 |
|
461 | |||
462 | $ cat $TESTTMP/access.log $TESTTMP/errors.log |
|
462 | $ cat $TESTTMP/access.log $TESTTMP/errors.log | |
463 | $LOCALIP - - [$LOGDATE$] "GET /?cmd=capabilities HTTP/1.1" 401 - (glob) |
|
463 | $LOCALIP - - [$LOGDATE$] "GET /?cmd=capabilities HTTP/1.1" 401 - (glob) | |
464 | $LOCALIP - - [$LOGDATE$] "GET /?cmd=capabilities HTTP/1.1" 200 - (glob) |
|
464 | $LOCALIP - - [$LOGDATE$] "GET /?cmd=capabilities HTTP/1.1" 200 - (glob) | |
465 | $LOCALIP - - [$LOGDATE$] "GET /?cmd=batch HTTP/1.1" 200 - x-hgarg-1:cmds=heads+%3Bknown+nodes%3D x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull (glob) |
|
465 | $LOCALIP - - [$LOGDATE$] "GET /?cmd=batch HTTP/1.1" 200 - x-hgarg-1:cmds=heads+%3Bknown+nodes%3D x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull (glob) | |
466 | $LOCALIP - - [$LOGDATE$] "GET /?cmd=getbundle HTTP/1.1" 200 - x-hgarg-1:bookmarks=1&bundlecaps=HG20%2Cbundle2%3DHG20%250Abookmarks%250Achangegroup%253D01%252C02%252C03%250Adigests%253Dmd5%252Csha1%252Csha512%250Aerror%253Dabort%252Cunsupportedcontent%252Cpushraced%252Cpushkey%250Ahgtagsfnodes%250Alistkeys%250Aphases%253Dheads%250Apushkey%250Aremote-changegroup%253Dhttp%252Chttps%250Arev-branch-cache%250Astream%253Dv2&cg=1&common=0000000000000000000000000000000000000000&heads=506bf3d83f78c54b89e81c6411adee19fdf02156+525251863cad618e55d483555f3d00a2ca99597e&listkeys=bookmarks&phases=1 x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull (glob) |
|
466 | $LOCALIP - - [$LOGDATE$] "GET /?cmd=getbundle HTTP/1.1" 200 - x-hgarg-1:bookmarks=1&bundlecaps=HG20%2Cbundle2%3DHG20%250Abookmarks%250Achangegroup%253D01%252C02%252C03%250Adigests%253Dmd5%252Csha1%252Csha512%250Aerror%253Dabort%252Cunsupportedcontent%252Cpushraced%252Cpushkey%250Ahgtagsfnodes%250Alistkeys%250Aphases%253Dheads%250Apushkey%250Aremote-changegroup%253Dhttp%252Chttps%250Arev-branch-cache%250Astream%253Dv2&cg=1&common=0000000000000000000000000000000000000000&heads=506bf3d83f78c54b89e81c6411adee19fdf02156+525251863cad618e55d483555f3d00a2ca99597e&listkeys=bookmarks&phases=1 x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull (glob) | |
467 | $LOCALIP - - [$LOGDATE$] "POST /.git/info/lfs/objects/batch HTTP/1.1" 401 - (glob) |
|
467 | $LOCALIP - - [$LOGDATE$] "POST /.git/info/lfs/objects/batch HTTP/1.1" 401 - (glob) | |
468 | $LOCALIP - - [$LOGDATE$] "POST /.git/info/lfs/objects/batch HTTP/1.1" 200 - (glob) |
|
468 | $LOCALIP - - [$LOGDATE$] "POST /.git/info/lfs/objects/batch HTTP/1.1" 200 - (glob) | |
469 | $LOCALIP - - [$LOGDATE$] "GET /.hg/lfs/objects/276f73cfd75f9fb519810df5f5d96d6594ca2521abd86cbcd92122f7d51a1f3d HTTP/1.1" 200 - (glob) |
|
469 | $LOCALIP - - [$LOGDATE$] "GET /.hg/lfs/objects/276f73cfd75f9fb519810df5f5d96d6594ca2521abd86cbcd92122f7d51a1f3d HTTP/1.1" 200 - (glob) | |
470 | $LOCALIP - - [$LOGDATE$] "GET /?cmd=capabilities HTTP/1.1" 401 - (glob) |
|
470 | $LOCALIP - - [$LOGDATE$] "GET /?cmd=capabilities HTTP/1.1" 401 - (glob) | |
471 | $LOCALIP - - [$LOGDATE$] "GET /?cmd=capabilities HTTP/1.1" 200 - (glob) |
|
471 | $LOCALIP - - [$LOGDATE$] "GET /?cmd=capabilities HTTP/1.1" 200 - (glob) | |
472 | $LOCALIP - - [$LOGDATE$] "GET /?cmd=batch HTTP/1.1" 200 - x-hgarg-1:cmds=heads+%3Bknown+nodes%3D525251863cad618e55d483555f3d00a2ca99597e+4d9397055dc0c205f3132f331f36353ab1a525a3 x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull (glob) |
|
472 | $LOCALIP - - [$LOGDATE$] "GET /?cmd=batch HTTP/1.1" 200 - x-hgarg-1:cmds=heads+%3Bknown+nodes%3D525251863cad618e55d483555f3d00a2ca99597e+4d9397055dc0c205f3132f331f36353ab1a525a3 x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull (glob) | |
473 | $LOCALIP - - [$LOGDATE$] "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=phases x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull (glob) |
|
473 | $LOCALIP - - [$LOGDATE$] "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=phases x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull (glob) | |
474 | $LOCALIP - - [$LOGDATE$] "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=bookmarks x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull (glob) |
|
474 | $LOCALIP - - [$LOGDATE$] "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=bookmarks x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull (glob) | |
475 | $LOCALIP - - [$LOGDATE$] "GET /?cmd=branchmap HTTP/1.1" 200 - x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull (glob) |
|
475 | $LOCALIP - - [$LOGDATE$] "GET /?cmd=branchmap HTTP/1.1" 200 - x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull (glob) | |
476 | $LOCALIP - - [$LOGDATE$] "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=bookmarks x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull (glob) |
|
476 | $LOCALIP - - [$LOGDATE$] "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=bookmarks x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull (glob) | |
477 | $LOCALIP - - [$LOGDATE$] "POST /.git/info/lfs/objects/batch HTTP/1.1" 401 - (glob) |
|
477 | $LOCALIP - - [$LOGDATE$] "POST /.git/info/lfs/objects/batch HTTP/1.1" 401 - (glob) | |
478 | $LOCALIP - - [$LOGDATE$] "POST /.git/info/lfs/objects/batch HTTP/1.1" 200 - (glob) |
|
478 | $LOCALIP - - [$LOGDATE$] "POST /.git/info/lfs/objects/batch HTTP/1.1" 200 - (glob) | |
479 | $LOCALIP - - [$LOGDATE$] "PUT /.hg/lfs/objects/df14287d8d75f076a6459e7a3703ca583ca9fb3f4918caed10c77ac8622d49b3 HTTP/1.1" 201 - (glob) |
|
479 | $LOCALIP - - [$LOGDATE$] "PUT /.hg/lfs/objects/df14287d8d75f076a6459e7a3703ca583ca9fb3f4918caed10c77ac8622d49b3 HTTP/1.1" 201 - (glob) | |
480 | $LOCALIP - - [$LOGDATE$] "POST /?cmd=unbundle HTTP/1.1" 200 - x-hgarg-1:heads=666f726365 x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull (glob) |
|
480 | $LOCALIP - - [$LOGDATE$] "POST /?cmd=unbundle HTTP/1.1" 200 - x-hgarg-1:heads=666f726365 x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull (glob) | |
481 | $LOCALIP - - [$LOGDATE$] "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=phases x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull (glob) |
|
481 | $LOCALIP - - [$LOGDATE$] "GET /?cmd=listkeys HTTP/1.1" 200 - x-hgarg-1:namespace=phases x-hgproto-1:0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull (glob) |
General Comments 0
You need to be logged in to leave comments.
Login now