Mercurial > hg
annotate tests/test-lfs-test-server.t @ 37502:40c7347f6848
formatter: remove template resources from nested items before generating JSON
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sat, 17 Mar 2018 23:34:38 +0900 |
parents | f4e84dfc06fd |
children | 092eff6833a7 |
rev | line source |
---|---|
37348
f4e84dfc06fd
tests: skip largefiles and lfs tests when using simple store
Gregory Szorc <gregory.szorc@gmail.com>
parents:
37280
diff
changeset
|
1 #require no-reposimplestore |
37153
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
2 #testcases git-server hg-server |
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
3 |
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
4 #if git-server |
35139
a2e927ded455
hghave: add a check for lfs-test-server
Matt Harbison <matt_harbison@yahoo.com>
parents:
35098
diff
changeset
|
5 #require lfs-test-server |
37153
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
6 #else |
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
7 #require serve |
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
8 #endif |
35098
66c5a8cf2868
lfs: import the Facebook git-lfs client extension
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
9 |
37153
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
10 #if git-server |
35098
66c5a8cf2868
lfs: import the Facebook git-lfs client extension
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
11 $ LFS_LISTEN="tcp://:$HGPORT" |
66c5a8cf2868
lfs: import the Facebook git-lfs client extension
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
12 $ LFS_HOST="localhost:$HGPORT" |
66c5a8cf2868
lfs: import the Facebook git-lfs client extension
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
13 $ LFS_PUBLIC=1 |
66c5a8cf2868
lfs: import the Facebook git-lfs client extension
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
14 $ export LFS_LISTEN LFS_HOST LFS_PUBLIC |
37153
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
15 #else |
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
16 $ LFS_HOST="localhost:$HGPORT/.git/info/lfs" |
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
17 #endif |
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
18 |
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
19 #if no-windows git-server |
35098
66c5a8cf2868
lfs: import the Facebook git-lfs client extension
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
20 $ lfs-test-server &> lfs-server.log & |
66c5a8cf2868
lfs: import the Facebook git-lfs client extension
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
21 $ echo $! >> $DAEMON_PIDS |
37153
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
22 #endif |
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
23 |
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
24 #if windows git-server |
35141
32bb27dd5282
test-lfs: allow the test server to be killed on Windows
Matt Harbison <matt_harbison@yahoo.com>
parents:
35139
diff
changeset
|
25 $ cat >> $TESTTMP/spawn.py <<EOF |
32bb27dd5282
test-lfs: allow the test server to be killed on Windows
Matt Harbison <matt_harbison@yahoo.com>
parents:
35139
diff
changeset
|
26 > import os |
32bb27dd5282
test-lfs: allow the test server to be killed on Windows
Matt Harbison <matt_harbison@yahoo.com>
parents:
35139
diff
changeset
|
27 > import subprocess |
32bb27dd5282
test-lfs: allow the test server to be killed on Windows
Matt Harbison <matt_harbison@yahoo.com>
parents:
35139
diff
changeset
|
28 > import sys |
32bb27dd5282
test-lfs: allow the test server to be killed on Windows
Matt Harbison <matt_harbison@yahoo.com>
parents:
35139
diff
changeset
|
29 > |
32bb27dd5282
test-lfs: allow the test server to be killed on Windows
Matt Harbison <matt_harbison@yahoo.com>
parents:
35139
diff
changeset
|
30 > for path in os.environ["PATH"].split(os.pathsep): |
32bb27dd5282
test-lfs: allow the test server to be killed on Windows
Matt Harbison <matt_harbison@yahoo.com>
parents:
35139
diff
changeset
|
31 > exe = os.path.join(path, 'lfs-test-server.exe') |
32bb27dd5282
test-lfs: allow the test server to be killed on Windows
Matt Harbison <matt_harbison@yahoo.com>
parents:
35139
diff
changeset
|
32 > if os.path.exists(exe): |
32bb27dd5282
test-lfs: allow the test server to be killed on Windows
Matt Harbison <matt_harbison@yahoo.com>
parents:
35139
diff
changeset
|
33 > with open('lfs-server.log', 'wb') as out: |
32bb27dd5282
test-lfs: allow the test server to be killed on Windows
Matt Harbison <matt_harbison@yahoo.com>
parents:
35139
diff
changeset
|
34 > p = subprocess.Popen(exe, stdout=out, stderr=out) |
32bb27dd5282
test-lfs: allow the test server to be killed on Windows
Matt Harbison <matt_harbison@yahoo.com>
parents:
35139
diff
changeset
|
35 > sys.stdout.write('%s\n' % p.pid) |
32bb27dd5282
test-lfs: allow the test server to be killed on Windows
Matt Harbison <matt_harbison@yahoo.com>
parents:
35139
diff
changeset
|
36 > sys.exit(0) |
32bb27dd5282
test-lfs: allow the test server to be killed on Windows
Matt Harbison <matt_harbison@yahoo.com>
parents:
35139
diff
changeset
|
37 > sys.exit(1) |
32bb27dd5282
test-lfs: allow the test server to be killed on Windows
Matt Harbison <matt_harbison@yahoo.com>
parents:
35139
diff
changeset
|
38 > EOF |
32bb27dd5282
test-lfs: allow the test server to be killed on Windows
Matt Harbison <matt_harbison@yahoo.com>
parents:
35139
diff
changeset
|
39 $ $PYTHON $TESTTMP/spawn.py >> $DAEMON_PIDS |
32bb27dd5282
test-lfs: allow the test server to be killed on Windows
Matt Harbison <matt_harbison@yahoo.com>
parents:
35139
diff
changeset
|
40 #endif |
35098
66c5a8cf2868
lfs: import the Facebook git-lfs client extension
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
41 |
66c5a8cf2868
lfs: import the Facebook git-lfs client extension
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
42 $ cat >> $HGRCPATH <<EOF |
66c5a8cf2868
lfs: import the Facebook git-lfs client extension
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
43 > [extensions] |
66c5a8cf2868
lfs: import the Facebook git-lfs client extension
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
44 > lfs= |
66c5a8cf2868
lfs: import the Facebook git-lfs client extension
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
45 > [lfs] |
37153
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
46 > url=http://foo:bar@$LFS_HOST |
35618
c780e0649e41
lfs: migrate most file filtering from threshold to custom filter
Matt Harbison <matt_harbison@yahoo.com>
parents:
35568
diff
changeset
|
47 > track=all() |
37153
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
48 > [web] |
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
49 > push_ssl = False |
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
50 > allow-push = * |
35098
66c5a8cf2868
lfs: import the Facebook git-lfs client extension
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
51 > EOF |
66c5a8cf2868
lfs: import the Facebook git-lfs client extension
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
52 |
37153
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
53 Use a separate usercache, otherwise the server sees what the client commits, and |
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
54 never requests a transfer. |
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
55 |
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
56 #if hg-server |
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
57 $ hg init server |
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
58 $ hg --config "lfs.usercache=$TESTTMP/servercache" -R server serve -d \ |
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
59 > -p $HGPORT --pid-file=hg.pid -A $TESTTMP/access.log -E $TESTTMP/errors.log |
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
60 $ cat hg.pid >> $DAEMON_PIDS |
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
61 #endif |
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
62 |
35098
66c5a8cf2868
lfs: import the Facebook git-lfs client extension
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
63 $ hg init repo1 |
66c5a8cf2868
lfs: import the Facebook git-lfs client extension
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
64 $ cd repo1 |
66c5a8cf2868
lfs: import the Facebook git-lfs client extension
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
65 $ echo THIS-IS-LFS > a |
66c5a8cf2868
lfs: import the Facebook git-lfs client extension
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
66 $ hg commit -m a -A a |
66c5a8cf2868
lfs: import the Facebook git-lfs client extension
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
67 |
35526
e8f80529abeb
lfs: use the local store method for opening a blob
Matt Harbison <matt_harbison@yahoo.com>
parents:
35504
diff
changeset
|
68 A push can be serviced directly from the usercache if it isn't in the local |
e8f80529abeb
lfs: use the local store method for opening a blob
Matt Harbison <matt_harbison@yahoo.com>
parents:
35504
diff
changeset
|
69 store. |
e8f80529abeb
lfs: use the local store method for opening a blob
Matt Harbison <matt_harbison@yahoo.com>
parents:
35504
diff
changeset
|
70 |
35098
66c5a8cf2868
lfs: import the Facebook git-lfs client extension
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
71 $ hg init ../repo2 |
35526
e8f80529abeb
lfs: use the local store method for opening a blob
Matt Harbison <matt_harbison@yahoo.com>
parents:
35504
diff
changeset
|
72 $ mv .hg/store/lfs .hg/store/lfs_ |
36925
24e6342db1cb
test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
35927
diff
changeset
|
73 $ hg push ../repo2 --debug |
24e6342db1cb
test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
35927
diff
changeset
|
74 http auth: user foo, password *** |
35098
66c5a8cf2868
lfs: import the Facebook git-lfs client extension
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
75 pushing to ../repo2 |
36925
24e6342db1cb
test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
35927
diff
changeset
|
76 http auth: user foo, password *** |
24e6342db1cb
test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
35927
diff
changeset
|
77 query 1; heads |
35098
66c5a8cf2868
lfs: import the Facebook git-lfs client extension
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
78 searching for changes |
36925
24e6342db1cb
test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
35927
diff
changeset
|
79 1 total queries in *s (glob) |
24e6342db1cb
test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
35927
diff
changeset
|
80 listing keys for "phases" |
24e6342db1cb
test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
35927
diff
changeset
|
81 checking for updated bookmarks |
24e6342db1cb
test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
35927
diff
changeset
|
82 listing keys for "bookmarks" |
24e6342db1cb
test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
35927
diff
changeset
|
83 lfs: computing set of blobs to upload |
36926
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
84 Status: 200 |
37153
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
85 Content-Length: 309 (git-server !) |
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
86 Content-Length: 350 (hg-server !) |
36926
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
87 Content-Type: application/vnd.git-lfs+json |
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
88 Date: $HTTP_DATE$ |
37153
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
89 Server: testing stub value (hg-server !) |
36926
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
90 { |
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
91 "objects": [ |
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
92 { |
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
93 "actions": { |
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
94 "upload": { |
37146
c37c47e47a95
test-lfs: drop trailing ', ' item separators from debug JSON output
Matt Harbison <matt_harbison@yahoo.com>
parents:
36990
diff
changeset
|
95 "expires_at": "$ISO_8601_DATE_TIME$" |
36926
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
96 "header": { |
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
97 "Accept": "application/vnd.git-lfs" |
37146
c37c47e47a95
test-lfs: drop trailing ', ' item separators from debug JSON output
Matt Harbison <matt_harbison@yahoo.com>
parents:
36990
diff
changeset
|
98 } |
37153
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
99 "href": "http://localhost:$HGPORT/objects/31cf46fbc4ecd458a0943c5b4881f1f5a6dd36c53d6167d5b69ac45149b38e5b" (git-server !) |
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
100 "href": "http://localhost:$HGPORT/.hg/lfs/objects/31cf46fbc4ecd458a0943c5b4881f1f5a6dd36c53d6167d5b69ac45149b38e5b" (hg-server !) |
36926
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
101 } |
37146
c37c47e47a95
test-lfs: drop trailing ', ' item separators from debug JSON output
Matt Harbison <matt_harbison@yahoo.com>
parents:
36990
diff
changeset
|
102 } |
c37c47e47a95
test-lfs: drop trailing ', ' item separators from debug JSON output
Matt Harbison <matt_harbison@yahoo.com>
parents:
36990
diff
changeset
|
103 "oid": "31cf46fbc4ecd458a0943c5b4881f1f5a6dd36c53d6167d5b69ac45149b38e5b" |
36926
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
104 "size": 12 |
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
105 } |
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
106 ] |
37153
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
107 "transfer": "basic" (hg-server !) |
36926
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
108 } |
35098
66c5a8cf2868
lfs: import the Facebook git-lfs client extension
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
109 lfs: uploading 31cf46fbc4ecd458a0943c5b4881f1f5a6dd36c53d6167d5b69ac45149b38e5b (12 bytes) |
37153
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
110 Status: 200 (git-server !) |
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
111 Status: 201 (hg-server !) |
36926
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
112 Content-Length: 0 |
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
113 Content-Type: text/plain; charset=utf-8 |
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
114 Date: $HTTP_DATE$ |
37153
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
115 Server: testing stub value (hg-server !) |
35433
f98fac24b757
lfs: using workers in lfs prefetch
Wojciech Lis <wlis@fb.com>
parents:
35280
diff
changeset
|
116 lfs: processed: 31cf46fbc4ecd458a0943c5b4881f1f5a6dd36c53d6167d5b69ac45149b38e5b |
35881
fa993c3c8462
lfs: emit a status message to indicate how many blobs were uploaded
Matt Harbison <matt_harbison@yahoo.com>
parents:
35666
diff
changeset
|
117 lfs: uploaded 1 files (12 bytes) |
35098
66c5a8cf2868
lfs: import the Facebook git-lfs client extension
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
118 1 changesets found |
36925
24e6342db1cb
test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
35927
diff
changeset
|
119 list of changesets: |
24e6342db1cb
test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
35927
diff
changeset
|
120 99a7098854a3984a5c9eab0fc7a2906697b7cb5c |
24e6342db1cb
test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
35927
diff
changeset
|
121 bundle2-output-bundle: "HG20", 4 parts total |
36990
b6a4881cec19
test-lfs: glob over some output changes
Matt Harbison <matt_harbison@yahoo.com>
parents:
36926
diff
changeset
|
122 bundle2-output-part: "replycaps" * bytes payload (glob) |
36925
24e6342db1cb
test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
35927
diff
changeset
|
123 bundle2-output-part: "check:heads" streamed payload |
24e6342db1cb
test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
35927
diff
changeset
|
124 bundle2-output-part: "changegroup" (params: 1 mandatory) streamed payload |
24e6342db1cb
test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
35927
diff
changeset
|
125 bundle2-output-part: "phase-heads" 24 bytes payload |
24e6342db1cb
test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
35927
diff
changeset
|
126 bundle2-input-bundle: with-transaction |
24e6342db1cb
test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
35927
diff
changeset
|
127 bundle2-input-part: "replycaps" supported |
36990
b6a4881cec19
test-lfs: glob over some output changes
Matt Harbison <matt_harbison@yahoo.com>
parents:
36926
diff
changeset
|
128 bundle2-input-part: total payload size * (glob) |
36925
24e6342db1cb
test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
35927
diff
changeset
|
129 bundle2-input-part: "check:heads" supported |
24e6342db1cb
test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
35927
diff
changeset
|
130 bundle2-input-part: total payload size 20 |
24e6342db1cb
test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
35927
diff
changeset
|
131 bundle2-input-part: "changegroup" (params: 1 mandatory) supported |
35098
66c5a8cf2868
lfs: import the Facebook git-lfs client extension
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
132 adding changesets |
36925
24e6342db1cb
test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
35927
diff
changeset
|
133 add changeset 99a7098854a3 |
35098
66c5a8cf2868
lfs: import the Facebook git-lfs client extension
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
134 adding manifests |
66c5a8cf2868
lfs: import the Facebook git-lfs client extension
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
135 adding file changes |
36925
24e6342db1cb
test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
35927
diff
changeset
|
136 adding a revisions |
35098
66c5a8cf2868
lfs: import the Facebook git-lfs client extension
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
137 added 1 changesets with 1 changes to 1 files |
35504
6bb940de4c4c
lfs: add the 'lfs' requirement in the changegroup transaction introducing lfs
Matt Harbison <matt_harbison@yahoo.com>
parents:
35476
diff
changeset
|
138 calling hook pretxnchangegroup.lfs: hgext.lfs.checkrequireslfs |
36925
24e6342db1cb
test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
35927
diff
changeset
|
139 bundle2-input-part: total payload size 617 |
24e6342db1cb
test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
35927
diff
changeset
|
140 bundle2-input-part: "phase-heads" supported |
24e6342db1cb
test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
35927
diff
changeset
|
141 bundle2-input-part: total payload size 24 |
24e6342db1cb
test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
35927
diff
changeset
|
142 bundle2-input-bundle: 3 parts total |
24e6342db1cb
test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
35927
diff
changeset
|
143 updating the branch cache |
24e6342db1cb
test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
35927
diff
changeset
|
144 bundle2-output-bundle: "HG20", 1 parts total |
24e6342db1cb
test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
35927
diff
changeset
|
145 bundle2-output-part: "reply:changegroup" (advisory) (params: 0 advisory) empty payload |
24e6342db1cb
test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
35927
diff
changeset
|
146 bundle2-input-bundle: no-transaction |
24e6342db1cb
test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
35927
diff
changeset
|
147 bundle2-input-part: "reply:changegroup" (advisory) (params: 0 advisory) supported |
24e6342db1cb
test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
35927
diff
changeset
|
148 bundle2-input-bundle: 0 parts total |
24e6342db1cb
test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
35927
diff
changeset
|
149 listing keys for "phases" |
35526
e8f80529abeb
lfs: use the local store method for opening a blob
Matt Harbison <matt_harbison@yahoo.com>
parents:
35504
diff
changeset
|
150 $ mv .hg/store/lfs_ .hg/store/lfs |
35098
66c5a8cf2868
lfs: import the Facebook git-lfs client extension
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
151 |
35280
8e72f9152c4d
lfs: introduce a user level cache for lfs files
Matt Harbison <matt_harbison@yahoo.com>
parents:
35141
diff
changeset
|
152 Clear the cache to force a download |
8e72f9152c4d
lfs: introduce a user level cache for lfs files
Matt Harbison <matt_harbison@yahoo.com>
parents:
35141
diff
changeset
|
153 $ rm -rf `hg config lfs.usercache` |
35098
66c5a8cf2868
lfs: import the Facebook git-lfs client extension
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
154 $ cd ../repo2 |
36925
24e6342db1cb
test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
35927
diff
changeset
|
155 $ hg update tip --debug |
24e6342db1cb
test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
35927
diff
changeset
|
156 http auth: user foo, password *** |
35098
66c5a8cf2868
lfs: import the Facebook git-lfs client extension
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
157 resolving manifests |
36925
24e6342db1cb
test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
35927
diff
changeset
|
158 branchmerge: False, force: False, partial: False |
24e6342db1cb
test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
35927
diff
changeset
|
159 ancestor: 000000000000, local: 000000000000+, remote: 99a7098854a3 |
36926
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
160 Status: 200 |
37153
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
161 Content-Length: 311 (git-server !) |
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
162 Content-Length: 352 (hg-server !) |
36926
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
163 Content-Type: application/vnd.git-lfs+json |
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
164 Date: $HTTP_DATE$ |
37153
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
165 Server: testing stub value (hg-server !) |
36926
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
166 { |
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
167 "objects": [ |
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
168 { |
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
169 "actions": { |
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
170 "download": { |
37146
c37c47e47a95
test-lfs: drop trailing ', ' item separators from debug JSON output
Matt Harbison <matt_harbison@yahoo.com>
parents:
36990
diff
changeset
|
171 "expires_at": "$ISO_8601_DATE_TIME$" |
36926
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
172 "header": { |
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
173 "Accept": "application/vnd.git-lfs" |
37146
c37c47e47a95
test-lfs: drop trailing ', ' item separators from debug JSON output
Matt Harbison <matt_harbison@yahoo.com>
parents:
36990
diff
changeset
|
174 } |
37153
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
175 "href": "http://localhost:$HGPORT/*/31cf46fbc4ecd458a0943c5b4881f1f5a6dd36c53d6167d5b69ac45149b38e5b" (glob) |
36926
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
176 } |
37146
c37c47e47a95
test-lfs: drop trailing ', ' item separators from debug JSON output
Matt Harbison <matt_harbison@yahoo.com>
parents:
36990
diff
changeset
|
177 } |
c37c47e47a95
test-lfs: drop trailing ', ' item separators from debug JSON output
Matt Harbison <matt_harbison@yahoo.com>
parents:
36990
diff
changeset
|
178 "oid": "31cf46fbc4ecd458a0943c5b4881f1f5a6dd36c53d6167d5b69ac45149b38e5b" |
36926
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
179 "size": 12 |
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
180 } |
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
181 ] |
37153
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
182 "transfer": "basic" (hg-server !) |
36926
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
183 } |
35098
66c5a8cf2868
lfs: import the Facebook git-lfs client extension
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
184 lfs: downloading 31cf46fbc4ecd458a0943c5b4881f1f5a6dd36c53d6167d5b69ac45149b38e5b (12 bytes) |
36926
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
185 Status: 200 |
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
186 Content-Length: 12 |
37153
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
187 Content-Type: text/plain; charset=utf-8 (git-server !) |
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
188 Content-Type: application/octet-stream (hg-server !) |
36926
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
189 Date: $HTTP_DATE$ |
37153
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
190 Server: testing stub value (hg-server !) |
35473
02f54a1ec9eb
lfs: add note messages indicating what store holds the lfs blob
Matt Harbison <matt_harbison@yahoo.com>
parents:
35433
diff
changeset
|
191 lfs: adding 31cf46fbc4ecd458a0943c5b4881f1f5a6dd36c53d6167d5b69ac45149b38e5b to the usercache |
35433
f98fac24b757
lfs: using workers in lfs prefetch
Wojciech Lis <wlis@fb.com>
parents:
35280
diff
changeset
|
192 lfs: processed: 31cf46fbc4ecd458a0943c5b4881f1f5a6dd36c53d6167d5b69ac45149b38e5b |
36925
24e6342db1cb
test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
35927
diff
changeset
|
193 a: remote created -> g |
35922
0b79f99fd7b0
lfs: prefetch lfs blobs when applying merge updates
Matt Harbison <matt_harbison@yahoo.com>
parents:
35881
diff
changeset
|
194 getting a |
35473
02f54a1ec9eb
lfs: add note messages indicating what store holds the lfs blob
Matt Harbison <matt_harbison@yahoo.com>
parents:
35433
diff
changeset
|
195 lfs: found 31cf46fbc4ecd458a0943c5b4881f1f5a6dd36c53d6167d5b69ac45149b38e5b in the local lfs store |
35098
66c5a8cf2868
lfs: import the Facebook git-lfs client extension
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
196 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
66c5a8cf2868
lfs: import the Facebook git-lfs client extension
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
197 |
37153
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
198 When the server has some blobs already. `hg serve` doesn't offer to upload |
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
199 blobs that it already knows about. Note that lfs-test-server is simply |
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
200 toggling the action to 'download'. The Batch API spec says it should omit the |
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
201 actions property completely. |
35098
66c5a8cf2868
lfs: import the Facebook git-lfs client extension
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
202 |
66c5a8cf2868
lfs: import the Facebook git-lfs client extension
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
203 $ hg mv a b |
66c5a8cf2868
lfs: import the Facebook git-lfs client extension
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
204 $ echo ANOTHER-LARGE-FILE > c |
66c5a8cf2868
lfs: import the Facebook git-lfs client extension
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
205 $ echo ANOTHER-LARGE-FILE2 > d |
66c5a8cf2868
lfs: import the Facebook git-lfs client extension
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
206 $ hg commit -m b-and-c -A b c d |
36925
24e6342db1cb
test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
35927
diff
changeset
|
207 $ hg push ../repo1 --debug |
24e6342db1cb
test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
35927
diff
changeset
|
208 http auth: user foo, password *** |
35098
66c5a8cf2868
lfs: import the Facebook git-lfs client extension
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
209 pushing to ../repo1 |
36925
24e6342db1cb
test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
35927
diff
changeset
|
210 http auth: user foo, password *** |
24e6342db1cb
test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
35927
diff
changeset
|
211 query 1; heads |
35098
66c5a8cf2868
lfs: import the Facebook git-lfs client extension
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
212 searching for changes |
36925
24e6342db1cb
test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
35927
diff
changeset
|
213 all remote heads known locally |
24e6342db1cb
test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
35927
diff
changeset
|
214 listing keys for "phases" |
24e6342db1cb
test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
35927
diff
changeset
|
215 checking for updated bookmarks |
24e6342db1cb
test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
35927
diff
changeset
|
216 listing keys for "bookmarks" |
24e6342db1cb
test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
35927
diff
changeset
|
217 listing keys for "bookmarks" |
24e6342db1cb
test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
35927
diff
changeset
|
218 lfs: computing set of blobs to upload |
36926
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
219 Status: 200 |
37153
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
220 Content-Length: 901 (git-server !) |
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
221 Content-Length: 755 (hg-server !) |
36926
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
222 Content-Type: application/vnd.git-lfs+json |
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
223 Date: $HTTP_DATE$ |
37153
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
224 Server: testing stub value (hg-server !) |
36926
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
225 { |
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
226 "objects": [ |
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
227 { |
37153
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
228 "actions": { (git-server !) |
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
229 "download": { (git-server !) |
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
230 "expires_at": "$ISO_8601_DATE_TIME$" (git-server !) |
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
231 "header": { (git-server !) |
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
232 "Accept": "application/vnd.git-lfs" (git-server !) |
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
233 } (git-server !) |
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
234 "href": "http://localhost:$HGPORT/objects/31cf46fbc4ecd458a0943c5b4881f1f5a6dd36c53d6167d5b69ac45149b38e5b" (git-server !) |
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
235 } (git-server !) |
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
236 } (git-server !) |
37146
c37c47e47a95
test-lfs: drop trailing ', ' item separators from debug JSON output
Matt Harbison <matt_harbison@yahoo.com>
parents:
36990
diff
changeset
|
237 "oid": "31cf46fbc4ecd458a0943c5b4881f1f5a6dd36c53d6167d5b69ac45149b38e5b" |
36926
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
238 "size": 12 |
37146
c37c47e47a95
test-lfs: drop trailing ', ' item separators from debug JSON output
Matt Harbison <matt_harbison@yahoo.com>
parents:
36990
diff
changeset
|
239 } |
36926
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
240 { |
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
241 "actions": { |
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
242 "upload": { |
37146
c37c47e47a95
test-lfs: drop trailing ', ' item separators from debug JSON output
Matt Harbison <matt_harbison@yahoo.com>
parents:
36990
diff
changeset
|
243 "expires_at": "$ISO_8601_DATE_TIME$" |
36926
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
244 "header": { |
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
245 "Accept": "application/vnd.git-lfs" |
37146
c37c47e47a95
test-lfs: drop trailing ', ' item separators from debug JSON output
Matt Harbison <matt_harbison@yahoo.com>
parents:
36990
diff
changeset
|
246 } |
37153
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
247 "href": "http://localhost:$HGPORT/*/37a65ab78d5ecda767e8622c248b5dbff1e68b1678ab0e730d5eb8601ec8ad19" (glob) |
36926
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
248 } |
37146
c37c47e47a95
test-lfs: drop trailing ', ' item separators from debug JSON output
Matt Harbison <matt_harbison@yahoo.com>
parents:
36990
diff
changeset
|
249 } |
c37c47e47a95
test-lfs: drop trailing ', ' item separators from debug JSON output
Matt Harbison <matt_harbison@yahoo.com>
parents:
36990
diff
changeset
|
250 "oid": "37a65ab78d5ecda767e8622c248b5dbff1e68b1678ab0e730d5eb8601ec8ad19" |
36926
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
251 "size": 20 |
37146
c37c47e47a95
test-lfs: drop trailing ', ' item separators from debug JSON output
Matt Harbison <matt_harbison@yahoo.com>
parents:
36990
diff
changeset
|
252 } |
36926
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
253 { |
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
254 "actions": { |
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
255 "upload": { |
37146
c37c47e47a95
test-lfs: drop trailing ', ' item separators from debug JSON output
Matt Harbison <matt_harbison@yahoo.com>
parents:
36990
diff
changeset
|
256 "expires_at": "$ISO_8601_DATE_TIME$" |
36926
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
257 "header": { |
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
258 "Accept": "application/vnd.git-lfs" |
37146
c37c47e47a95
test-lfs: drop trailing ', ' item separators from debug JSON output
Matt Harbison <matt_harbison@yahoo.com>
parents:
36990
diff
changeset
|
259 } |
37153
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
260 "href": "http://localhost:$HGPORT/*/d11e1a642b60813aee592094109b406089b8dff4cb157157f753418ec7857998" (glob) |
36926
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
261 } |
37146
c37c47e47a95
test-lfs: drop trailing ', ' item separators from debug JSON output
Matt Harbison <matt_harbison@yahoo.com>
parents:
36990
diff
changeset
|
262 } |
c37c47e47a95
test-lfs: drop trailing ', ' item separators from debug JSON output
Matt Harbison <matt_harbison@yahoo.com>
parents:
36990
diff
changeset
|
263 "oid": "d11e1a642b60813aee592094109b406089b8dff4cb157157f753418ec7857998" |
36926
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
264 "size": 19 |
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
265 } |
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
266 ] |
37153
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
267 "transfer": "basic" (hg-server !) |
36926
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
268 } |
35098
66c5a8cf2868
lfs: import the Facebook git-lfs client extension
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
269 lfs: need to transfer 2 objects (39 bytes) |
66c5a8cf2868
lfs: import the Facebook git-lfs client extension
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
270 lfs: uploading 37a65ab78d5ecda767e8622c248b5dbff1e68b1678ab0e730d5eb8601ec8ad19 (20 bytes) |
37153
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
271 Status: 200 (git-server !) |
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
272 Status: 201 (hg-server !) |
36926
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
273 Content-Length: 0 |
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
274 Content-Type: text/plain; charset=utf-8 |
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
275 Date: $HTTP_DATE$ |
37153
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
276 Server: testing stub value (hg-server !) |
35433
f98fac24b757
lfs: using workers in lfs prefetch
Wojciech Lis <wlis@fb.com>
parents:
35280
diff
changeset
|
277 lfs: processed: 37a65ab78d5ecda767e8622c248b5dbff1e68b1678ab0e730d5eb8601ec8ad19 |
35098
66c5a8cf2868
lfs: import the Facebook git-lfs client extension
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
278 lfs: uploading d11e1a642b60813aee592094109b406089b8dff4cb157157f753418ec7857998 (19 bytes) |
37153
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
279 Status: 200 (git-server !) |
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
280 Status: 201 (hg-server !) |
36926
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
281 Content-Length: 0 |
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
282 Content-Type: text/plain; charset=utf-8 |
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
283 Date: $HTTP_DATE$ |
37153
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
284 Server: testing stub value (hg-server !) |
35433
f98fac24b757
lfs: using workers in lfs prefetch
Wojciech Lis <wlis@fb.com>
parents:
35280
diff
changeset
|
285 lfs: processed: d11e1a642b60813aee592094109b406089b8dff4cb157157f753418ec7857998 |
35881
fa993c3c8462
lfs: emit a status message to indicate how many blobs were uploaded
Matt Harbison <matt_harbison@yahoo.com>
parents:
35666
diff
changeset
|
286 lfs: uploaded 2 files (39 bytes) |
35098
66c5a8cf2868
lfs: import the Facebook git-lfs client extension
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
287 1 changesets found |
36925
24e6342db1cb
test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
35927
diff
changeset
|
288 list of changesets: |
24e6342db1cb
test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
35927
diff
changeset
|
289 dfca2c9e2ef24996aa61ba2abd99277d884b3d63 |
24e6342db1cb
test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
35927
diff
changeset
|
290 bundle2-output-bundle: "HG20", 5 parts total |
36990
b6a4881cec19
test-lfs: glob over some output changes
Matt Harbison <matt_harbison@yahoo.com>
parents:
36926
diff
changeset
|
291 bundle2-output-part: "replycaps" * bytes payload (glob) |
36925
24e6342db1cb
test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
35927
diff
changeset
|
292 bundle2-output-part: "check:phases" 24 bytes payload |
24e6342db1cb
test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
35927
diff
changeset
|
293 bundle2-output-part: "check:heads" streamed payload |
24e6342db1cb
test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
35927
diff
changeset
|
294 bundle2-output-part: "changegroup" (params: 1 mandatory) streamed payload |
24e6342db1cb
test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
35927
diff
changeset
|
295 bundle2-output-part: "phase-heads" 24 bytes payload |
24e6342db1cb
test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
35927
diff
changeset
|
296 bundle2-input-bundle: with-transaction |
24e6342db1cb
test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
35927
diff
changeset
|
297 bundle2-input-part: "replycaps" supported |
36990
b6a4881cec19
test-lfs: glob over some output changes
Matt Harbison <matt_harbison@yahoo.com>
parents:
36926
diff
changeset
|
298 bundle2-input-part: total payload size * (glob) |
36925
24e6342db1cb
test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
35927
diff
changeset
|
299 bundle2-input-part: "check:phases" supported |
24e6342db1cb
test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
35927
diff
changeset
|
300 bundle2-input-part: total payload size 24 |
24e6342db1cb
test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
35927
diff
changeset
|
301 bundle2-input-part: "check:heads" supported |
24e6342db1cb
test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
35927
diff
changeset
|
302 bundle2-input-part: total payload size 20 |
24e6342db1cb
test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
35927
diff
changeset
|
303 bundle2-input-part: "changegroup" (params: 1 mandatory) supported |
35098
66c5a8cf2868
lfs: import the Facebook git-lfs client extension
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
304 adding changesets |
36925
24e6342db1cb
test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
35927
diff
changeset
|
305 add changeset dfca2c9e2ef2 |
35098
66c5a8cf2868
lfs: import the Facebook git-lfs client extension
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
306 adding manifests |
66c5a8cf2868
lfs: import the Facebook git-lfs client extension
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
307 adding file changes |
36925
24e6342db1cb
test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
35927
diff
changeset
|
308 adding b revisions |
24e6342db1cb
test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
35927
diff
changeset
|
309 adding c revisions |
24e6342db1cb
test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
35927
diff
changeset
|
310 adding d revisions |
35098
66c5a8cf2868
lfs: import the Facebook git-lfs client extension
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
311 added 1 changesets with 3 changes to 3 files |
36925
24e6342db1cb
test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
35927
diff
changeset
|
312 bundle2-input-part: total payload size 1315 |
24e6342db1cb
test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
35927
diff
changeset
|
313 bundle2-input-part: "phase-heads" supported |
24e6342db1cb
test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
35927
diff
changeset
|
314 bundle2-input-part: total payload size 24 |
24e6342db1cb
test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
35927
diff
changeset
|
315 bundle2-input-bundle: 4 parts total |
24e6342db1cb
test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
35927
diff
changeset
|
316 updating the branch cache |
24e6342db1cb
test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
35927
diff
changeset
|
317 bundle2-output-bundle: "HG20", 1 parts total |
24e6342db1cb
test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
35927
diff
changeset
|
318 bundle2-output-part: "reply:changegroup" (advisory) (params: 0 advisory) empty payload |
24e6342db1cb
test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
35927
diff
changeset
|
319 bundle2-input-bundle: no-transaction |
24e6342db1cb
test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
35927
diff
changeset
|
320 bundle2-input-part: "reply:changegroup" (advisory) (params: 0 advisory) supported |
24e6342db1cb
test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
35927
diff
changeset
|
321 bundle2-input-bundle: 0 parts total |
24e6342db1cb
test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
35927
diff
changeset
|
322 listing keys for "phases" |
35098
66c5a8cf2868
lfs: import the Facebook git-lfs client extension
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
323 |
35280
8e72f9152c4d
lfs: introduce a user level cache for lfs files
Matt Harbison <matt_harbison@yahoo.com>
parents:
35141
diff
changeset
|
324 Clear the cache to force a download |
8e72f9152c4d
lfs: introduce a user level cache for lfs files
Matt Harbison <matt_harbison@yahoo.com>
parents:
35141
diff
changeset
|
325 $ rm -rf `hg config lfs.usercache` |
36925
24e6342db1cb
test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
35927
diff
changeset
|
326 $ hg --repo ../repo1 update tip --debug |
24e6342db1cb
test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
35927
diff
changeset
|
327 http auth: user foo, password *** |
35098
66c5a8cf2868
lfs: import the Facebook git-lfs client extension
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
328 resolving manifests |
36925
24e6342db1cb
test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
35927
diff
changeset
|
329 branchmerge: False, force: False, partial: False |
24e6342db1cb
test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
35927
diff
changeset
|
330 ancestor: 99a7098854a3, local: 99a7098854a3+, remote: dfca2c9e2ef2 |
36926
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
331 Status: 200 |
37153
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
332 Content-Length: 608 (git-server !) |
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
333 Content-Length: 670 (hg-server !) |
36926
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
334 Content-Type: application/vnd.git-lfs+json |
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
335 Date: $HTTP_DATE$ |
37153
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
336 Server: testing stub value (hg-server !) |
36926
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
337 { |
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
338 "objects": [ |
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
339 { |
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
340 "actions": { |
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
341 "download": { |
37146
c37c47e47a95
test-lfs: drop trailing ', ' item separators from debug JSON output
Matt Harbison <matt_harbison@yahoo.com>
parents:
36990
diff
changeset
|
342 "expires_at": "$ISO_8601_DATE_TIME$" |
36926
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
343 "header": { |
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
344 "Accept": "application/vnd.git-lfs" |
37146
c37c47e47a95
test-lfs: drop trailing ', ' item separators from debug JSON output
Matt Harbison <matt_harbison@yahoo.com>
parents:
36990
diff
changeset
|
345 } |
37153
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
346 "href": "http://localhost:$HGPORT/*/37a65ab78d5ecda767e8622c248b5dbff1e68b1678ab0e730d5eb8601ec8ad19" (glob) |
36926
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
347 } |
37146
c37c47e47a95
test-lfs: drop trailing ', ' item separators from debug JSON output
Matt Harbison <matt_harbison@yahoo.com>
parents:
36990
diff
changeset
|
348 } |
c37c47e47a95
test-lfs: drop trailing ', ' item separators from debug JSON output
Matt Harbison <matt_harbison@yahoo.com>
parents:
36990
diff
changeset
|
349 "oid": "37a65ab78d5ecda767e8622c248b5dbff1e68b1678ab0e730d5eb8601ec8ad19" |
36926
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
350 "size": 20 |
37146
c37c47e47a95
test-lfs: drop trailing ', ' item separators from debug JSON output
Matt Harbison <matt_harbison@yahoo.com>
parents:
36990
diff
changeset
|
351 } |
36926
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
352 { |
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
353 "actions": { |
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
354 "download": { |
37146
c37c47e47a95
test-lfs: drop trailing ', ' item separators from debug JSON output
Matt Harbison <matt_harbison@yahoo.com>
parents:
36990
diff
changeset
|
355 "expires_at": "$ISO_8601_DATE_TIME$" |
36926
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
356 "header": { |
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
357 "Accept": "application/vnd.git-lfs" |
37146
c37c47e47a95
test-lfs: drop trailing ', ' item separators from debug JSON output
Matt Harbison <matt_harbison@yahoo.com>
parents:
36990
diff
changeset
|
358 } |
37153
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
359 "href": "http://localhost:$HGPORT/*/d11e1a642b60813aee592094109b406089b8dff4cb157157f753418ec7857998" (glob) |
36926
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
360 } |
37146
c37c47e47a95
test-lfs: drop trailing ', ' item separators from debug JSON output
Matt Harbison <matt_harbison@yahoo.com>
parents:
36990
diff
changeset
|
361 } |
c37c47e47a95
test-lfs: drop trailing ', ' item separators from debug JSON output
Matt Harbison <matt_harbison@yahoo.com>
parents:
36990
diff
changeset
|
362 "oid": "d11e1a642b60813aee592094109b406089b8dff4cb157157f753418ec7857998" |
36926
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
363 "size": 19 |
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
364 } |
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
365 ] |
37153
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
366 "transfer": "basic" (hg-server !) |
36926
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
367 } |
35922
0b79f99fd7b0
lfs: prefetch lfs blobs when applying merge updates
Matt Harbison <matt_harbison@yahoo.com>
parents:
35881
diff
changeset
|
368 lfs: need to transfer 2 objects (39 bytes) |
0b79f99fd7b0
lfs: prefetch lfs blobs when applying merge updates
Matt Harbison <matt_harbison@yahoo.com>
parents:
35881
diff
changeset
|
369 lfs: downloading 37a65ab78d5ecda767e8622c248b5dbff1e68b1678ab0e730d5eb8601ec8ad19 (20 bytes) |
36926
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
370 Status: 200 |
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
371 Content-Length: 20 |
37153
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
372 Content-Type: text/plain; charset=utf-8 (git-server !) |
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
373 Content-Type: application/octet-stream (hg-server !) |
36926
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
374 Date: $HTTP_DATE$ |
37153
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
375 Server: testing stub value (hg-server !) |
35922
0b79f99fd7b0
lfs: prefetch lfs blobs when applying merge updates
Matt Harbison <matt_harbison@yahoo.com>
parents:
35881
diff
changeset
|
376 lfs: adding 37a65ab78d5ecda767e8622c248b5dbff1e68b1678ab0e730d5eb8601ec8ad19 to the usercache |
0b79f99fd7b0
lfs: prefetch lfs blobs when applying merge updates
Matt Harbison <matt_harbison@yahoo.com>
parents:
35881
diff
changeset
|
377 lfs: processed: 37a65ab78d5ecda767e8622c248b5dbff1e68b1678ab0e730d5eb8601ec8ad19 |
35098
66c5a8cf2868
lfs: import the Facebook git-lfs client extension
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
378 lfs: downloading d11e1a642b60813aee592094109b406089b8dff4cb157157f753418ec7857998 (19 bytes) |
36926
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
379 Status: 200 |
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
380 Content-Length: 19 |
37153
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
381 Content-Type: text/plain; charset=utf-8 (git-server !) |
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
382 Content-Type: application/octet-stream (hg-server !) |
36926
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
383 Date: $HTTP_DATE$ |
37153
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
384 Server: testing stub value (hg-server !) |
35473
02f54a1ec9eb
lfs: add note messages indicating what store holds the lfs blob
Matt Harbison <matt_harbison@yahoo.com>
parents:
35433
diff
changeset
|
385 lfs: adding d11e1a642b60813aee592094109b406089b8dff4cb157157f753418ec7857998 to the usercache |
35433
f98fac24b757
lfs: using workers in lfs prefetch
Wojciech Lis <wlis@fb.com>
parents:
35280
diff
changeset
|
386 lfs: processed: d11e1a642b60813aee592094109b406089b8dff4cb157157f753418ec7857998 |
36925
24e6342db1cb
test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
35927
diff
changeset
|
387 b: remote created -> g |
35922
0b79f99fd7b0
lfs: prefetch lfs blobs when applying merge updates
Matt Harbison <matt_harbison@yahoo.com>
parents:
35881
diff
changeset
|
388 getting b |
0b79f99fd7b0
lfs: prefetch lfs blobs when applying merge updates
Matt Harbison <matt_harbison@yahoo.com>
parents:
35881
diff
changeset
|
389 lfs: found 31cf46fbc4ecd458a0943c5b4881f1f5a6dd36c53d6167d5b69ac45149b38e5b in the local lfs store |
36925
24e6342db1cb
test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
35927
diff
changeset
|
390 c: remote created -> g |
35922
0b79f99fd7b0
lfs: prefetch lfs blobs when applying merge updates
Matt Harbison <matt_harbison@yahoo.com>
parents:
35881
diff
changeset
|
391 getting c |
35473
02f54a1ec9eb
lfs: add note messages indicating what store holds the lfs blob
Matt Harbison <matt_harbison@yahoo.com>
parents:
35433
diff
changeset
|
392 lfs: found d11e1a642b60813aee592094109b406089b8dff4cb157157f753418ec7857998 in the local lfs store |
36925
24e6342db1cb
test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
35927
diff
changeset
|
393 d: remote created -> g |
35098
66c5a8cf2868
lfs: import the Facebook git-lfs client extension
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
394 getting d |
35473
02f54a1ec9eb
lfs: add note messages indicating what store holds the lfs blob
Matt Harbison <matt_harbison@yahoo.com>
parents:
35433
diff
changeset
|
395 lfs: found 37a65ab78d5ecda767e8622c248b5dbff1e68b1678ab0e730d5eb8601ec8ad19 in the local lfs store |
35098
66c5a8cf2868
lfs: import the Facebook git-lfs client extension
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
396 3 files updated, 0 files merged, 0 files removed, 0 files unresolved |
66c5a8cf2868
lfs: import the Facebook git-lfs client extension
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
397 |
35476
417e8e040102
lfs: verify lfs object content when transferring to and from the remote store
Matt Harbison <matt_harbison@yahoo.com>
parents:
35475
diff
changeset
|
398 Test a corrupt file download, but clear the cache first to force a download. |
37153
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
399 `hg serve` indicates a corrupt file without transferring it, unlike |
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
400 lfs-test-server. |
35474
16660fd4428d
test-lfs: add tests around corrupted lfs objects
Matt Harbison <matt_harbison@yahoo.com>
parents:
35473
diff
changeset
|
401 |
16660fd4428d
test-lfs: add tests around corrupted lfs objects
Matt Harbison <matt_harbison@yahoo.com>
parents:
35473
diff
changeset
|
402 $ rm -rf `hg config lfs.usercache` |
37153
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
403 #if git-server |
35474
16660fd4428d
test-lfs: add tests around corrupted lfs objects
Matt Harbison <matt_harbison@yahoo.com>
parents:
35473
diff
changeset
|
404 $ cp $TESTTMP/lfs-content/d1/1e/1a642b60813aee592094109b406089b8dff4cb157157f753418ec7857998 blob |
16660fd4428d
test-lfs: add tests around corrupted lfs objects
Matt Harbison <matt_harbison@yahoo.com>
parents:
35473
diff
changeset
|
405 $ echo 'damage' > $TESTTMP/lfs-content/d1/1e/1a642b60813aee592094109b406089b8dff4cb157157f753418ec7857998 |
37153
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
406 #else |
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
407 $ cp $TESTTMP/server/.hg/store/lfs/objects/d1/1e1a642b60813aee592094109b406089b8dff4cb157157f753418ec7857998 blob |
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
408 $ echo 'damage' > $TESTTMP/server/.hg/store/lfs/objects/d1/1e1a642b60813aee592094109b406089b8dff4cb157157f753418ec7857998 |
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
409 #endif |
35474
16660fd4428d
test-lfs: add tests around corrupted lfs objects
Matt Harbison <matt_harbison@yahoo.com>
parents:
35473
diff
changeset
|
410 $ rm ../repo1/.hg/store/lfs/objects/d1/1e1a642b60813aee592094109b406089b8dff4cb157157f753418ec7857998 |
16660fd4428d
test-lfs: add tests around corrupted lfs objects
Matt Harbison <matt_harbison@yahoo.com>
parents:
35473
diff
changeset
|
411 $ rm ../repo1/* |
35476
417e8e040102
lfs: verify lfs object content when transferring to and from the remote store
Matt Harbison <matt_harbison@yahoo.com>
parents:
35475
diff
changeset
|
412 |
37153
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
413 TODO: give the proper error indication from `hg serve` |
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
414 |
36925
24e6342db1cb
test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
35927
diff
changeset
|
415 $ hg --repo ../repo1 update -C tip --debug |
24e6342db1cb
test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
35927
diff
changeset
|
416 http auth: user foo, password *** |
35474
16660fd4428d
test-lfs: add tests around corrupted lfs objects
Matt Harbison <matt_harbison@yahoo.com>
parents:
35473
diff
changeset
|
417 resolving manifests |
36925
24e6342db1cb
test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
35927
diff
changeset
|
418 branchmerge: False, force: True, partial: False |
24e6342db1cb
test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
35927
diff
changeset
|
419 ancestor: dfca2c9e2ef2+, local: dfca2c9e2ef2+, remote: dfca2c9e2ef2 |
36926
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
420 Status: 200 |
37153
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
421 Content-Length: 311 (git-server !) |
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
422 Content-Length: 183 (hg-server !) |
36926
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
423 Content-Type: application/vnd.git-lfs+json |
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
424 Date: $HTTP_DATE$ |
37153
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
425 Server: testing stub value (hg-server !) |
36926
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
426 { |
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
427 "objects": [ |
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
428 { |
37153
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
429 "actions": { (git-server !) |
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
430 "download": { (git-server !) |
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
431 "expires_at": "$ISO_8601_DATE_TIME$" (git-server !) |
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
432 "header": { (git-server !) |
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
433 "Accept": "application/vnd.git-lfs" (git-server !) |
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
434 } (git-server !) |
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
435 "href": "http://localhost:$HGPORT/objects/d11e1a642b60813aee592094109b406089b8dff4cb157157f753418ec7857998" (git-server !) |
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
436 } (git-server !) |
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
437 "error": { (hg-server !) |
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
438 "code": 422 (hg-server !) |
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
439 "message": "The object is corrupt" (hg-server !) |
37146
c37c47e47a95
test-lfs: drop trailing ', ' item separators from debug JSON output
Matt Harbison <matt_harbison@yahoo.com>
parents:
36990
diff
changeset
|
440 } |
c37c47e47a95
test-lfs: drop trailing ', ' item separators from debug JSON output
Matt Harbison <matt_harbison@yahoo.com>
parents:
36990
diff
changeset
|
441 "oid": "d11e1a642b60813aee592094109b406089b8dff4cb157157f753418ec7857998" |
36926
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
442 "size": 19 |
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
443 } |
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
444 ] |
37153
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
445 "transfer": "basic" (hg-server !) |
36926
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
446 } |
37153
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
447 lfs: downloading d11e1a642b60813aee592094109b406089b8dff4cb157157f753418ec7857998 (19 bytes) (git-server !) |
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
448 Status: 200 (git-server !) |
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
449 Content-Length: 7 (git-server !) |
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
450 Content-Type: text/plain; charset=utf-8 (git-server !) |
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
451 Date: $HTTP_DATE$ (git-server !) |
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
452 abort: corrupt remote lfs object: d11e1a642b60813aee592094109b406089b8dff4cb157157f753418ec7857998 (git-server !) |
37242
67db84842356
lfs: improve the client message when the server signals an object error
Matt Harbison <matt_harbison@yahoo.com>
parents:
37153
diff
changeset
|
453 abort: LFS server error for "c": Validation error! (hg-server !) |
35474
16660fd4428d
test-lfs: add tests around corrupted lfs objects
Matt Harbison <matt_harbison@yahoo.com>
parents:
35473
diff
changeset
|
454 [255] |
16660fd4428d
test-lfs: add tests around corrupted lfs objects
Matt Harbison <matt_harbison@yahoo.com>
parents:
35473
diff
changeset
|
455 |
35476
417e8e040102
lfs: verify lfs object content when transferring to and from the remote store
Matt Harbison <matt_harbison@yahoo.com>
parents:
35475
diff
changeset
|
456 The corrupted blob is not added to the usercache or local store |
35474
16660fd4428d
test-lfs: add tests around corrupted lfs objects
Matt Harbison <matt_harbison@yahoo.com>
parents:
35473
diff
changeset
|
457 |
35476
417e8e040102
lfs: verify lfs object content when transferring to and from the remote store
Matt Harbison <matt_harbison@yahoo.com>
parents:
35475
diff
changeset
|
458 $ test -f ../repo1/.hg/store/lfs/objects/d1/1e1a642b60813aee592094109b406089b8dff4cb157157f753418ec7857998 |
417e8e040102
lfs: verify lfs object content when transferring to and from the remote store
Matt Harbison <matt_harbison@yahoo.com>
parents:
35475
diff
changeset
|
459 [1] |
417e8e040102
lfs: verify lfs object content when transferring to and from the remote store
Matt Harbison <matt_harbison@yahoo.com>
parents:
35475
diff
changeset
|
460 $ test -f `hg config lfs.usercache`/d1/1e1a642b60813aee592094109b406089b8dff4cb157157f753418ec7857998 |
417e8e040102
lfs: verify lfs object content when transferring to and from the remote store
Matt Harbison <matt_harbison@yahoo.com>
parents:
35475
diff
changeset
|
461 [1] |
37153
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
462 #if git-server |
35474
16660fd4428d
test-lfs: add tests around corrupted lfs objects
Matt Harbison <matt_harbison@yahoo.com>
parents:
35473
diff
changeset
|
463 $ cp blob $TESTTMP/lfs-content/d1/1e/1a642b60813aee592094109b406089b8dff4cb157157f753418ec7857998 |
37153
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
464 #else |
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
465 $ cp blob $TESTTMP/server/.hg/store/lfs/objects/d1/1e1a642b60813aee592094109b406089b8dff4cb157157f753418ec7857998 |
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
466 #endif |
35474
16660fd4428d
test-lfs: add tests around corrupted lfs objects
Matt Harbison <matt_harbison@yahoo.com>
parents:
35473
diff
changeset
|
467 |
16660fd4428d
test-lfs: add tests around corrupted lfs objects
Matt Harbison <matt_harbison@yahoo.com>
parents:
35473
diff
changeset
|
468 Test a corrupted file upload |
16660fd4428d
test-lfs: add tests around corrupted lfs objects
Matt Harbison <matt_harbison@yahoo.com>
parents:
35473
diff
changeset
|
469 |
16660fd4428d
test-lfs: add tests around corrupted lfs objects
Matt Harbison <matt_harbison@yahoo.com>
parents:
35473
diff
changeset
|
470 $ echo 'another lfs blob' > b |
16660fd4428d
test-lfs: add tests around corrupted lfs objects
Matt Harbison <matt_harbison@yahoo.com>
parents:
35473
diff
changeset
|
471 $ hg ci -m 'another blob' |
16660fd4428d
test-lfs: add tests around corrupted lfs objects
Matt Harbison <matt_harbison@yahoo.com>
parents:
35473
diff
changeset
|
472 $ echo 'damage' > .hg/store/lfs/objects/e6/59058e26b07b39d2a9c7145b3f99b41f797b6621c8076600e9cb7ee88291f0 |
36925
24e6342db1cb
test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
35927
diff
changeset
|
473 $ hg push --debug ../repo1 |
24e6342db1cb
test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
35927
diff
changeset
|
474 http auth: user foo, password *** |
35474
16660fd4428d
test-lfs: add tests around corrupted lfs objects
Matt Harbison <matt_harbison@yahoo.com>
parents:
35473
diff
changeset
|
475 pushing to ../repo1 |
36925
24e6342db1cb
test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
35927
diff
changeset
|
476 http auth: user foo, password *** |
24e6342db1cb
test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
35927
diff
changeset
|
477 query 1; heads |
35474
16660fd4428d
test-lfs: add tests around corrupted lfs objects
Matt Harbison <matt_harbison@yahoo.com>
parents:
35473
diff
changeset
|
478 searching for changes |
36925
24e6342db1cb
test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
35927
diff
changeset
|
479 all remote heads known locally |
24e6342db1cb
test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
35927
diff
changeset
|
480 listing keys for "phases" |
24e6342db1cb
test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
35927
diff
changeset
|
481 checking for updated bookmarks |
24e6342db1cb
test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
35927
diff
changeset
|
482 listing keys for "bookmarks" |
24e6342db1cb
test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
35927
diff
changeset
|
483 listing keys for "bookmarks" |
24e6342db1cb
test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
35927
diff
changeset
|
484 lfs: computing set of blobs to upload |
36926
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
485 Status: 200 |
37153
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
486 Content-Length: 309 (git-server !) |
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
487 Content-Length: 350 (hg-server !) |
36926
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
488 Content-Type: application/vnd.git-lfs+json |
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
489 Date: $HTTP_DATE$ |
37153
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
490 Server: testing stub value (hg-server !) |
36926
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
491 { |
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
492 "objects": [ |
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
493 { |
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
494 "actions": { |
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
495 "upload": { |
37146
c37c47e47a95
test-lfs: drop trailing ', ' item separators from debug JSON output
Matt Harbison <matt_harbison@yahoo.com>
parents:
36990
diff
changeset
|
496 "expires_at": "$ISO_8601_DATE_TIME$" |
36926
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
497 "header": { |
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
498 "Accept": "application/vnd.git-lfs" |
37146
c37c47e47a95
test-lfs: drop trailing ', ' item separators from debug JSON output
Matt Harbison <matt_harbison@yahoo.com>
parents:
36990
diff
changeset
|
499 } |
37153
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
500 "href": "http://localhost:$HGPORT/*/e659058e26b07b39d2a9c7145b3f99b41f797b6621c8076600e9cb7ee88291f0" (glob) |
36926
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
501 } |
37146
c37c47e47a95
test-lfs: drop trailing ', ' item separators from debug JSON output
Matt Harbison <matt_harbison@yahoo.com>
parents:
36990
diff
changeset
|
502 } |
c37c47e47a95
test-lfs: drop trailing ', ' item separators from debug JSON output
Matt Harbison <matt_harbison@yahoo.com>
parents:
36990
diff
changeset
|
503 "oid": "e659058e26b07b39d2a9c7145b3f99b41f797b6621c8076600e9cb7ee88291f0" |
36926
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
504 "size": 17 |
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
505 } |
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
506 ] |
37153
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
507 "transfer": "basic" (hg-server !) |
36926
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
508 } |
35474
16660fd4428d
test-lfs: add tests around corrupted lfs objects
Matt Harbison <matt_harbison@yahoo.com>
parents:
35473
diff
changeset
|
509 lfs: uploading e659058e26b07b39d2a9c7145b3f99b41f797b6621c8076600e9cb7ee88291f0 (17 bytes) |
35476
417e8e040102
lfs: verify lfs object content when transferring to and from the remote store
Matt Harbison <matt_harbison@yahoo.com>
parents:
35475
diff
changeset
|
510 abort: detected corrupt lfs object: e659058e26b07b39d2a9c7145b3f99b41f797b6621c8076600e9cb7ee88291f0 |
417e8e040102
lfs: verify lfs object content when transferring to and from the remote store
Matt Harbison <matt_harbison@yahoo.com>
parents:
35475
diff
changeset
|
511 (run hg verify) |
35474
16660fd4428d
test-lfs: add tests around corrupted lfs objects
Matt Harbison <matt_harbison@yahoo.com>
parents:
35473
diff
changeset
|
512 [255] |
16660fd4428d
test-lfs: add tests around corrupted lfs objects
Matt Harbison <matt_harbison@yahoo.com>
parents:
35473
diff
changeset
|
513 |
35925
533f04d4cb6d
archive: call the storage prefetch hook
Matt Harbison <matt_harbison@yahoo.com>
parents:
35924
diff
changeset
|
514 Archive will prefetch blobs in a group |
533f04d4cb6d
archive: call the storage prefetch hook
Matt Harbison <matt_harbison@yahoo.com>
parents:
35924
diff
changeset
|
515 |
533f04d4cb6d
archive: call the storage prefetch hook
Matt Harbison <matt_harbison@yahoo.com>
parents:
35924
diff
changeset
|
516 $ rm -rf .hg/store/lfs `hg config lfs.usercache` |
36925
24e6342db1cb
test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
35927
diff
changeset
|
517 $ hg archive --debug -r 1 ../archive |
24e6342db1cb
test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
35927
diff
changeset
|
518 http auth: user foo, password *** |
36926
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
519 Status: 200 |
37153
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
520 Content-Length: 905 (git-server !) |
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
521 Content-Length: 988 (hg-server !) |
36926
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
522 Content-Type: application/vnd.git-lfs+json |
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
523 Date: $HTTP_DATE$ |
37153
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
524 Server: testing stub value (hg-server !) |
36926
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
525 { |
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
526 "objects": [ |
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
527 { |
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
528 "actions": { |
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
529 "download": { |
37146
c37c47e47a95
test-lfs: drop trailing ', ' item separators from debug JSON output
Matt Harbison <matt_harbison@yahoo.com>
parents:
36990
diff
changeset
|
530 "expires_at": "$ISO_8601_DATE_TIME$" |
36926
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
531 "header": { |
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
532 "Accept": "application/vnd.git-lfs" |
37146
c37c47e47a95
test-lfs: drop trailing ', ' item separators from debug JSON output
Matt Harbison <matt_harbison@yahoo.com>
parents:
36990
diff
changeset
|
533 } |
37153
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
534 "href": "http://localhost:$HGPORT/*/31cf46fbc4ecd458a0943c5b4881f1f5a6dd36c53d6167d5b69ac45149b38e5b" (glob) |
36926
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
535 } |
37146
c37c47e47a95
test-lfs: drop trailing ', ' item separators from debug JSON output
Matt Harbison <matt_harbison@yahoo.com>
parents:
36990
diff
changeset
|
536 } |
c37c47e47a95
test-lfs: drop trailing ', ' item separators from debug JSON output
Matt Harbison <matt_harbison@yahoo.com>
parents:
36990
diff
changeset
|
537 "oid": "31cf46fbc4ecd458a0943c5b4881f1f5a6dd36c53d6167d5b69ac45149b38e5b" |
36926
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
538 "size": 12 |
37146
c37c47e47a95
test-lfs: drop trailing ', ' item separators from debug JSON output
Matt Harbison <matt_harbison@yahoo.com>
parents:
36990
diff
changeset
|
539 } |
36926
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
540 { |
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
541 "actions": { |
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
542 "download": { |
37146
c37c47e47a95
test-lfs: drop trailing ', ' item separators from debug JSON output
Matt Harbison <matt_harbison@yahoo.com>
parents:
36990
diff
changeset
|
543 "expires_at": "$ISO_8601_DATE_TIME$" |
36926
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
544 "header": { |
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
545 "Accept": "application/vnd.git-lfs" |
37146
c37c47e47a95
test-lfs: drop trailing ', ' item separators from debug JSON output
Matt Harbison <matt_harbison@yahoo.com>
parents:
36990
diff
changeset
|
546 } |
37153
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
547 "href": "http://localhost:$HGPORT/*/37a65ab78d5ecda767e8622c248b5dbff1e68b1678ab0e730d5eb8601ec8ad19" (glob) |
36926
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
548 } |
37146
c37c47e47a95
test-lfs: drop trailing ', ' item separators from debug JSON output
Matt Harbison <matt_harbison@yahoo.com>
parents:
36990
diff
changeset
|
549 } |
c37c47e47a95
test-lfs: drop trailing ', ' item separators from debug JSON output
Matt Harbison <matt_harbison@yahoo.com>
parents:
36990
diff
changeset
|
550 "oid": "37a65ab78d5ecda767e8622c248b5dbff1e68b1678ab0e730d5eb8601ec8ad19" |
36926
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
551 "size": 20 |
37146
c37c47e47a95
test-lfs: drop trailing ', ' item separators from debug JSON output
Matt Harbison <matt_harbison@yahoo.com>
parents:
36990
diff
changeset
|
552 } |
36926
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
553 { |
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
554 "actions": { |
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
555 "download": { |
37146
c37c47e47a95
test-lfs: drop trailing ', ' item separators from debug JSON output
Matt Harbison <matt_harbison@yahoo.com>
parents:
36990
diff
changeset
|
556 "expires_at": "$ISO_8601_DATE_TIME$" |
36926
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
557 "header": { |
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
558 "Accept": "application/vnd.git-lfs" |
37146
c37c47e47a95
test-lfs: drop trailing ', ' item separators from debug JSON output
Matt Harbison <matt_harbison@yahoo.com>
parents:
36990
diff
changeset
|
559 } |
37153
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
560 "href": "http://localhost:$HGPORT/*/d11e1a642b60813aee592094109b406089b8dff4cb157157f753418ec7857998" (glob) |
36926
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
561 } |
37146
c37c47e47a95
test-lfs: drop trailing ', ' item separators from debug JSON output
Matt Harbison <matt_harbison@yahoo.com>
parents:
36990
diff
changeset
|
562 } |
c37c47e47a95
test-lfs: drop trailing ', ' item separators from debug JSON output
Matt Harbison <matt_harbison@yahoo.com>
parents:
36990
diff
changeset
|
563 "oid": "d11e1a642b60813aee592094109b406089b8dff4cb157157f753418ec7857998" |
36926
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
564 "size": 19 |
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
565 } |
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
566 ] |
37153
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
567 "transfer": "basic" (hg-server !) |
36926
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
568 } |
35927
9b413478f261
lfs: deduplicate oids in the transfer
Matt Harbison <matt_harbison@yahoo.com>
parents:
35926
diff
changeset
|
569 lfs: need to transfer 3 objects (51 bytes) |
35925
533f04d4cb6d
archive: call the storage prefetch hook
Matt Harbison <matt_harbison@yahoo.com>
parents:
35924
diff
changeset
|
570 lfs: downloading 31cf46fbc4ecd458a0943c5b4881f1f5a6dd36c53d6167d5b69ac45149b38e5b (12 bytes) |
36926
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
571 Status: 200 |
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
572 Content-Length: 12 |
37153
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
573 Content-Type: text/plain; charset=utf-8 (git-server !) |
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
574 Content-Type: application/octet-stream (hg-server !) |
36926
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
575 Date: $HTTP_DATE$ |
37153
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
576 Server: testing stub value (hg-server !) |
35925
533f04d4cb6d
archive: call the storage prefetch hook
Matt Harbison <matt_harbison@yahoo.com>
parents:
35924
diff
changeset
|
577 lfs: adding 31cf46fbc4ecd458a0943c5b4881f1f5a6dd36c53d6167d5b69ac45149b38e5b to the usercache |
533f04d4cb6d
archive: call the storage prefetch hook
Matt Harbison <matt_harbison@yahoo.com>
parents:
35924
diff
changeset
|
578 lfs: processed: 31cf46fbc4ecd458a0943c5b4881f1f5a6dd36c53d6167d5b69ac45149b38e5b |
533f04d4cb6d
archive: call the storage prefetch hook
Matt Harbison <matt_harbison@yahoo.com>
parents:
35924
diff
changeset
|
579 lfs: downloading 37a65ab78d5ecda767e8622c248b5dbff1e68b1678ab0e730d5eb8601ec8ad19 (20 bytes) |
36926
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
580 Status: 200 |
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
581 Content-Length: 20 |
37153
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
582 Content-Type: text/plain; charset=utf-8 (git-server !) |
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
583 Content-Type: application/octet-stream (hg-server !) |
36926
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
584 Date: $HTTP_DATE$ |
37153
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
585 Server: testing stub value (hg-server !) |
35925
533f04d4cb6d
archive: call the storage prefetch hook
Matt Harbison <matt_harbison@yahoo.com>
parents:
35924
diff
changeset
|
586 lfs: adding 37a65ab78d5ecda767e8622c248b5dbff1e68b1678ab0e730d5eb8601ec8ad19 to the usercache |
533f04d4cb6d
archive: call the storage prefetch hook
Matt Harbison <matt_harbison@yahoo.com>
parents:
35924
diff
changeset
|
587 lfs: processed: 37a65ab78d5ecda767e8622c248b5dbff1e68b1678ab0e730d5eb8601ec8ad19 |
533f04d4cb6d
archive: call the storage prefetch hook
Matt Harbison <matt_harbison@yahoo.com>
parents:
35924
diff
changeset
|
588 lfs: downloading d11e1a642b60813aee592094109b406089b8dff4cb157157f753418ec7857998 (19 bytes) |
36926
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
589 Status: 200 |
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
590 Content-Length: 19 |
37153
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
591 Content-Type: text/plain; charset=utf-8 (git-server !) |
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
592 Content-Type: application/octet-stream (hg-server !) |
36926
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
593 Date: $HTTP_DATE$ |
37153
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
594 Server: testing stub value (hg-server !) |
35925
533f04d4cb6d
archive: call the storage prefetch hook
Matt Harbison <matt_harbison@yahoo.com>
parents:
35924
diff
changeset
|
595 lfs: adding d11e1a642b60813aee592094109b406089b8dff4cb157157f753418ec7857998 to the usercache |
533f04d4cb6d
archive: call the storage prefetch hook
Matt Harbison <matt_harbison@yahoo.com>
parents:
35924
diff
changeset
|
596 lfs: processed: d11e1a642b60813aee592094109b406089b8dff4cb157157f753418ec7857998 |
533f04d4cb6d
archive: call the storage prefetch hook
Matt Harbison <matt_harbison@yahoo.com>
parents:
35924
diff
changeset
|
597 lfs: found 31cf46fbc4ecd458a0943c5b4881f1f5a6dd36c53d6167d5b69ac45149b38e5b in the local lfs store |
533f04d4cb6d
archive: call the storage prefetch hook
Matt Harbison <matt_harbison@yahoo.com>
parents:
35924
diff
changeset
|
598 lfs: found 31cf46fbc4ecd458a0943c5b4881f1f5a6dd36c53d6167d5b69ac45149b38e5b in the local lfs store |
533f04d4cb6d
archive: call the storage prefetch hook
Matt Harbison <matt_harbison@yahoo.com>
parents:
35924
diff
changeset
|
599 lfs: found d11e1a642b60813aee592094109b406089b8dff4cb157157f753418ec7857998 in the local lfs store |
533f04d4cb6d
archive: call the storage prefetch hook
Matt Harbison <matt_harbison@yahoo.com>
parents:
35924
diff
changeset
|
600 lfs: found 37a65ab78d5ecda767e8622c248b5dbff1e68b1678ab0e730d5eb8601ec8ad19 in the local lfs store |
533f04d4cb6d
archive: call the storage prefetch hook
Matt Harbison <matt_harbison@yahoo.com>
parents:
35924
diff
changeset
|
601 $ find ../archive | sort |
533f04d4cb6d
archive: call the storage prefetch hook
Matt Harbison <matt_harbison@yahoo.com>
parents:
35924
diff
changeset
|
602 ../archive |
533f04d4cb6d
archive: call the storage prefetch hook
Matt Harbison <matt_harbison@yahoo.com>
parents:
35924
diff
changeset
|
603 ../archive/.hg_archival.txt |
533f04d4cb6d
archive: call the storage prefetch hook
Matt Harbison <matt_harbison@yahoo.com>
parents:
35924
diff
changeset
|
604 ../archive/a |
533f04d4cb6d
archive: call the storage prefetch hook
Matt Harbison <matt_harbison@yahoo.com>
parents:
35924
diff
changeset
|
605 ../archive/b |
533f04d4cb6d
archive: call the storage prefetch hook
Matt Harbison <matt_harbison@yahoo.com>
parents:
35924
diff
changeset
|
606 ../archive/c |
533f04d4cb6d
archive: call the storage prefetch hook
Matt Harbison <matt_harbison@yahoo.com>
parents:
35924
diff
changeset
|
607 ../archive/d |
533f04d4cb6d
archive: call the storage prefetch hook
Matt Harbison <matt_harbison@yahoo.com>
parents:
35924
diff
changeset
|
608 |
35926
264b90a060b7
cat: call the storage prefetch hook
Matt Harbison <matt_harbison@yahoo.com>
parents:
35925
diff
changeset
|
609 Cat will prefetch blobs in a group |
264b90a060b7
cat: call the storage prefetch hook
Matt Harbison <matt_harbison@yahoo.com>
parents:
35925
diff
changeset
|
610 |
264b90a060b7
cat: call the storage prefetch hook
Matt Harbison <matt_harbison@yahoo.com>
parents:
35925
diff
changeset
|
611 $ rm -rf .hg/store/lfs `hg config lfs.usercache` |
36925
24e6342db1cb
test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
35927
diff
changeset
|
612 $ hg cat --debug -r 1 a b c |
24e6342db1cb
test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
35927
diff
changeset
|
613 http auth: user foo, password *** |
36926
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
614 Status: 200 |
37153
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
615 Content-Length: 608 (git-server !) |
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
616 Content-Length: 670 (hg-server !) |
36926
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
617 Content-Type: application/vnd.git-lfs+json |
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
618 Date: $HTTP_DATE$ |
37153
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
619 Server: testing stub value (hg-server !) |
36926
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
620 { |
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
621 "objects": [ |
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
622 { |
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
623 "actions": { |
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
624 "download": { |
37146
c37c47e47a95
test-lfs: drop trailing ', ' item separators from debug JSON output
Matt Harbison <matt_harbison@yahoo.com>
parents:
36990
diff
changeset
|
625 "expires_at": "$ISO_8601_DATE_TIME$" |
36926
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
626 "header": { |
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
627 "Accept": "application/vnd.git-lfs" |
37146
c37c47e47a95
test-lfs: drop trailing ', ' item separators from debug JSON output
Matt Harbison <matt_harbison@yahoo.com>
parents:
36990
diff
changeset
|
628 } |
37153
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
629 "href": "http://localhost:$HGPORT/*/31cf46fbc4ecd458a0943c5b4881f1f5a6dd36c53d6167d5b69ac45149b38e5b" (glob) |
36926
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
630 } |
37146
c37c47e47a95
test-lfs: drop trailing ', ' item separators from debug JSON output
Matt Harbison <matt_harbison@yahoo.com>
parents:
36990
diff
changeset
|
631 } |
c37c47e47a95
test-lfs: drop trailing ', ' item separators from debug JSON output
Matt Harbison <matt_harbison@yahoo.com>
parents:
36990
diff
changeset
|
632 "oid": "31cf46fbc4ecd458a0943c5b4881f1f5a6dd36c53d6167d5b69ac45149b38e5b" |
36926
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
633 "size": 12 |
37146
c37c47e47a95
test-lfs: drop trailing ', ' item separators from debug JSON output
Matt Harbison <matt_harbison@yahoo.com>
parents:
36990
diff
changeset
|
634 } |
36926
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
635 { |
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
636 "actions": { |
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
637 "download": { |
37146
c37c47e47a95
test-lfs: drop trailing ', ' item separators from debug JSON output
Matt Harbison <matt_harbison@yahoo.com>
parents:
36990
diff
changeset
|
638 "expires_at": "$ISO_8601_DATE_TIME$" |
36926
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
639 "header": { |
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
640 "Accept": "application/vnd.git-lfs" |
37146
c37c47e47a95
test-lfs: drop trailing ', ' item separators from debug JSON output
Matt Harbison <matt_harbison@yahoo.com>
parents:
36990
diff
changeset
|
641 } |
37153
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
642 "href": "http://localhost:$HGPORT/*/d11e1a642b60813aee592094109b406089b8dff4cb157157f753418ec7857998" (glob) |
36926
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
643 } |
37146
c37c47e47a95
test-lfs: drop trailing ', ' item separators from debug JSON output
Matt Harbison <matt_harbison@yahoo.com>
parents:
36990
diff
changeset
|
644 } |
c37c47e47a95
test-lfs: drop trailing ', ' item separators from debug JSON output
Matt Harbison <matt_harbison@yahoo.com>
parents:
36990
diff
changeset
|
645 "oid": "d11e1a642b60813aee592094109b406089b8dff4cb157157f753418ec7857998" |
36926
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
646 "size": 19 |
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
647 } |
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
648 ] |
37153
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
649 "transfer": "basic" (hg-server !) |
36926
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
650 } |
35927
9b413478f261
lfs: deduplicate oids in the transfer
Matt Harbison <matt_harbison@yahoo.com>
parents:
35926
diff
changeset
|
651 lfs: need to transfer 2 objects (31 bytes) |
35926
264b90a060b7
cat: call the storage prefetch hook
Matt Harbison <matt_harbison@yahoo.com>
parents:
35925
diff
changeset
|
652 lfs: downloading 31cf46fbc4ecd458a0943c5b4881f1f5a6dd36c53d6167d5b69ac45149b38e5b (12 bytes) |
36926
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
653 Status: 200 |
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
654 Content-Length: 12 |
37153
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
655 Content-Type: text/plain; charset=utf-8 (git-server !) |
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
656 Content-Type: application/octet-stream (hg-server !) |
36926
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
657 Date: $HTTP_DATE$ |
37153
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
658 Server: testing stub value (hg-server !) |
35926
264b90a060b7
cat: call the storage prefetch hook
Matt Harbison <matt_harbison@yahoo.com>
parents:
35925
diff
changeset
|
659 lfs: adding 31cf46fbc4ecd458a0943c5b4881f1f5a6dd36c53d6167d5b69ac45149b38e5b to the usercache |
264b90a060b7
cat: call the storage prefetch hook
Matt Harbison <matt_harbison@yahoo.com>
parents:
35925
diff
changeset
|
660 lfs: processed: 31cf46fbc4ecd458a0943c5b4881f1f5a6dd36c53d6167d5b69ac45149b38e5b |
264b90a060b7
cat: call the storage prefetch hook
Matt Harbison <matt_harbison@yahoo.com>
parents:
35925
diff
changeset
|
661 lfs: downloading d11e1a642b60813aee592094109b406089b8dff4cb157157f753418ec7857998 (19 bytes) |
36926
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
662 Status: 200 |
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
663 Content-Length: 19 |
37153
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
664 Content-Type: text/plain; charset=utf-8 (git-server !) |
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
665 Content-Type: application/octet-stream (hg-server !) |
36926
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
666 Date: $HTTP_DATE$ |
37153
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
667 Server: testing stub value (hg-server !) |
35926
264b90a060b7
cat: call the storage prefetch hook
Matt Harbison <matt_harbison@yahoo.com>
parents:
35925
diff
changeset
|
668 lfs: adding d11e1a642b60813aee592094109b406089b8dff4cb157157f753418ec7857998 to the usercache |
264b90a060b7
cat: call the storage prefetch hook
Matt Harbison <matt_harbison@yahoo.com>
parents:
35925
diff
changeset
|
669 lfs: processed: d11e1a642b60813aee592094109b406089b8dff4cb157157f753418ec7857998 |
264b90a060b7
cat: call the storage prefetch hook
Matt Harbison <matt_harbison@yahoo.com>
parents:
35925
diff
changeset
|
670 lfs: found 31cf46fbc4ecd458a0943c5b4881f1f5a6dd36c53d6167d5b69ac45149b38e5b in the local lfs store |
264b90a060b7
cat: call the storage prefetch hook
Matt Harbison <matt_harbison@yahoo.com>
parents:
35925
diff
changeset
|
671 THIS-IS-LFS |
264b90a060b7
cat: call the storage prefetch hook
Matt Harbison <matt_harbison@yahoo.com>
parents:
35925
diff
changeset
|
672 lfs: found 31cf46fbc4ecd458a0943c5b4881f1f5a6dd36c53d6167d5b69ac45149b38e5b in the local lfs store |
264b90a060b7
cat: call the storage prefetch hook
Matt Harbison <matt_harbison@yahoo.com>
parents:
35925
diff
changeset
|
673 THIS-IS-LFS |
264b90a060b7
cat: call the storage prefetch hook
Matt Harbison <matt_harbison@yahoo.com>
parents:
35925
diff
changeset
|
674 lfs: found d11e1a642b60813aee592094109b406089b8dff4cb157157f753418ec7857998 in the local lfs store |
264b90a060b7
cat: call the storage prefetch hook
Matt Harbison <matt_harbison@yahoo.com>
parents:
35925
diff
changeset
|
675 ANOTHER-LARGE-FILE |
264b90a060b7
cat: call the storage prefetch hook
Matt Harbison <matt_harbison@yahoo.com>
parents:
35925
diff
changeset
|
676 |
35924
d857cad588e4
lfs: prefetch lfs blobs during revert
Matt Harbison <matt_harbison@yahoo.com>
parents:
35922
diff
changeset
|
677 Revert will prefetch blobs in a group |
d857cad588e4
lfs: prefetch lfs blobs during revert
Matt Harbison <matt_harbison@yahoo.com>
parents:
35922
diff
changeset
|
678 |
d857cad588e4
lfs: prefetch lfs blobs during revert
Matt Harbison <matt_harbison@yahoo.com>
parents:
35922
diff
changeset
|
679 $ rm -rf .hg/store/lfs |
d857cad588e4
lfs: prefetch lfs blobs during revert
Matt Harbison <matt_harbison@yahoo.com>
parents:
35922
diff
changeset
|
680 $ rm -rf `hg config lfs.usercache` |
d857cad588e4
lfs: prefetch lfs blobs during revert
Matt Harbison <matt_harbison@yahoo.com>
parents:
35922
diff
changeset
|
681 $ rm * |
36925
24e6342db1cb
test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
35927
diff
changeset
|
682 $ hg revert --all -r 1 --debug |
24e6342db1cb
test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
35927
diff
changeset
|
683 http auth: user foo, password *** |
35924
d857cad588e4
lfs: prefetch lfs blobs during revert
Matt Harbison <matt_harbison@yahoo.com>
parents:
35922
diff
changeset
|
684 adding a |
d857cad588e4
lfs: prefetch lfs blobs during revert
Matt Harbison <matt_harbison@yahoo.com>
parents:
35922
diff
changeset
|
685 reverting b |
d857cad588e4
lfs: prefetch lfs blobs during revert
Matt Harbison <matt_harbison@yahoo.com>
parents:
35922
diff
changeset
|
686 reverting c |
d857cad588e4
lfs: prefetch lfs blobs during revert
Matt Harbison <matt_harbison@yahoo.com>
parents:
35922
diff
changeset
|
687 reverting d |
36926
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
688 Status: 200 |
37153
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
689 Content-Length: 905 (git-server !) |
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
690 Content-Length: 988 (hg-server !) |
36926
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
691 Content-Type: application/vnd.git-lfs+json |
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
692 Date: $HTTP_DATE$ |
37153
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
693 Server: testing stub value (hg-server !) |
36926
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
694 { |
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
695 "objects": [ |
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
696 { |
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
697 "actions": { |
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
698 "download": { |
37146
c37c47e47a95
test-lfs: drop trailing ', ' item separators from debug JSON output
Matt Harbison <matt_harbison@yahoo.com>
parents:
36990
diff
changeset
|
699 "expires_at": "$ISO_8601_DATE_TIME$" |
36926
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
700 "header": { |
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
701 "Accept": "application/vnd.git-lfs" |
37146
c37c47e47a95
test-lfs: drop trailing ', ' item separators from debug JSON output
Matt Harbison <matt_harbison@yahoo.com>
parents:
36990
diff
changeset
|
702 } |
37153
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
703 "href": "http://localhost:$HGPORT/*/31cf46fbc4ecd458a0943c5b4881f1f5a6dd36c53d6167d5b69ac45149b38e5b" (glob) |
36926
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
704 } |
37146
c37c47e47a95
test-lfs: drop trailing ', ' item separators from debug JSON output
Matt Harbison <matt_harbison@yahoo.com>
parents:
36990
diff
changeset
|
705 } |
c37c47e47a95
test-lfs: drop trailing ', ' item separators from debug JSON output
Matt Harbison <matt_harbison@yahoo.com>
parents:
36990
diff
changeset
|
706 "oid": "31cf46fbc4ecd458a0943c5b4881f1f5a6dd36c53d6167d5b69ac45149b38e5b" |
36926
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
707 "size": 12 |
37146
c37c47e47a95
test-lfs: drop trailing ', ' item separators from debug JSON output
Matt Harbison <matt_harbison@yahoo.com>
parents:
36990
diff
changeset
|
708 } |
36926
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
709 { |
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
710 "actions": { |
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
711 "download": { |
37146
c37c47e47a95
test-lfs: drop trailing ', ' item separators from debug JSON output
Matt Harbison <matt_harbison@yahoo.com>
parents:
36990
diff
changeset
|
712 "expires_at": "$ISO_8601_DATE_TIME$" |
36926
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
713 "header": { |
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
714 "Accept": "application/vnd.git-lfs" |
37146
c37c47e47a95
test-lfs: drop trailing ', ' item separators from debug JSON output
Matt Harbison <matt_harbison@yahoo.com>
parents:
36990
diff
changeset
|
715 } |
37153
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
716 "href": "http://localhost:$HGPORT/*/37a65ab78d5ecda767e8622c248b5dbff1e68b1678ab0e730d5eb8601ec8ad19" (glob) |
36926
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
717 } |
37146
c37c47e47a95
test-lfs: drop trailing ', ' item separators from debug JSON output
Matt Harbison <matt_harbison@yahoo.com>
parents:
36990
diff
changeset
|
718 } |
c37c47e47a95
test-lfs: drop trailing ', ' item separators from debug JSON output
Matt Harbison <matt_harbison@yahoo.com>
parents:
36990
diff
changeset
|
719 "oid": "37a65ab78d5ecda767e8622c248b5dbff1e68b1678ab0e730d5eb8601ec8ad19" |
36926
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
720 "size": 20 |
37146
c37c47e47a95
test-lfs: drop trailing ', ' item separators from debug JSON output
Matt Harbison <matt_harbison@yahoo.com>
parents:
36990
diff
changeset
|
721 } |
36926
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
722 { |
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
723 "actions": { |
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
724 "download": { |
37146
c37c47e47a95
test-lfs: drop trailing ', ' item separators from debug JSON output
Matt Harbison <matt_harbison@yahoo.com>
parents:
36990
diff
changeset
|
725 "expires_at": "$ISO_8601_DATE_TIME$" |
36926
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
726 "header": { |
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
727 "Accept": "application/vnd.git-lfs" |
37146
c37c47e47a95
test-lfs: drop trailing ', ' item separators from debug JSON output
Matt Harbison <matt_harbison@yahoo.com>
parents:
36990
diff
changeset
|
728 } |
37153
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
729 "href": "http://localhost:$HGPORT/*/d11e1a642b60813aee592094109b406089b8dff4cb157157f753418ec7857998" (glob) |
36926
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
730 } |
37146
c37c47e47a95
test-lfs: drop trailing ', ' item separators from debug JSON output
Matt Harbison <matt_harbison@yahoo.com>
parents:
36990
diff
changeset
|
731 } |
c37c47e47a95
test-lfs: drop trailing ', ' item separators from debug JSON output
Matt Harbison <matt_harbison@yahoo.com>
parents:
36990
diff
changeset
|
732 "oid": "d11e1a642b60813aee592094109b406089b8dff4cb157157f753418ec7857998" |
36926
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
733 "size": 19 |
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
734 } |
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
735 ] |
37153
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
736 "transfer": "basic" (hg-server !) |
36926
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
737 } |
35927
9b413478f261
lfs: deduplicate oids in the transfer
Matt Harbison <matt_harbison@yahoo.com>
parents:
35926
diff
changeset
|
738 lfs: need to transfer 3 objects (51 bytes) |
35924
d857cad588e4
lfs: prefetch lfs blobs during revert
Matt Harbison <matt_harbison@yahoo.com>
parents:
35922
diff
changeset
|
739 lfs: downloading 31cf46fbc4ecd458a0943c5b4881f1f5a6dd36c53d6167d5b69ac45149b38e5b (12 bytes) |
36926
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
740 Status: 200 |
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
741 Content-Length: 12 |
37153
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
742 Content-Type: text/plain; charset=utf-8 (git-server !) |
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
743 Content-Type: application/octet-stream (hg-server !) |
36926
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
744 Date: $HTTP_DATE$ |
37153
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
745 Server: testing stub value (hg-server !) |
35924
d857cad588e4
lfs: prefetch lfs blobs during revert
Matt Harbison <matt_harbison@yahoo.com>
parents:
35922
diff
changeset
|
746 lfs: adding 31cf46fbc4ecd458a0943c5b4881f1f5a6dd36c53d6167d5b69ac45149b38e5b to the usercache |
d857cad588e4
lfs: prefetch lfs blobs during revert
Matt Harbison <matt_harbison@yahoo.com>
parents:
35922
diff
changeset
|
747 lfs: processed: 31cf46fbc4ecd458a0943c5b4881f1f5a6dd36c53d6167d5b69ac45149b38e5b |
d857cad588e4
lfs: prefetch lfs blobs during revert
Matt Harbison <matt_harbison@yahoo.com>
parents:
35922
diff
changeset
|
748 lfs: downloading 37a65ab78d5ecda767e8622c248b5dbff1e68b1678ab0e730d5eb8601ec8ad19 (20 bytes) |
36926
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
749 Status: 200 |
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
750 Content-Length: 20 |
37153
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
751 Content-Type: text/plain; charset=utf-8 (git-server !) |
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
752 Content-Type: application/octet-stream (hg-server !) |
36926
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
753 Date: $HTTP_DATE$ |
37153
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
754 Server: testing stub value (hg-server !) |
35924
d857cad588e4
lfs: prefetch lfs blobs during revert
Matt Harbison <matt_harbison@yahoo.com>
parents:
35922
diff
changeset
|
755 lfs: adding 37a65ab78d5ecda767e8622c248b5dbff1e68b1678ab0e730d5eb8601ec8ad19 to the usercache |
d857cad588e4
lfs: prefetch lfs blobs during revert
Matt Harbison <matt_harbison@yahoo.com>
parents:
35922
diff
changeset
|
756 lfs: processed: 37a65ab78d5ecda767e8622c248b5dbff1e68b1678ab0e730d5eb8601ec8ad19 |
d857cad588e4
lfs: prefetch lfs blobs during revert
Matt Harbison <matt_harbison@yahoo.com>
parents:
35922
diff
changeset
|
757 lfs: downloading d11e1a642b60813aee592094109b406089b8dff4cb157157f753418ec7857998 (19 bytes) |
36926
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
758 Status: 200 |
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
759 Content-Length: 19 |
37153
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
760 Content-Type: text/plain; charset=utf-8 (git-server !) |
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
761 Content-Type: application/octet-stream (hg-server !) |
36926
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
762 Date: $HTTP_DATE$ |
37153
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
763 Server: testing stub value (hg-server !) |
35924
d857cad588e4
lfs: prefetch lfs blobs during revert
Matt Harbison <matt_harbison@yahoo.com>
parents:
35922
diff
changeset
|
764 lfs: adding d11e1a642b60813aee592094109b406089b8dff4cb157157f753418ec7857998 to the usercache |
d857cad588e4
lfs: prefetch lfs blobs during revert
Matt Harbison <matt_harbison@yahoo.com>
parents:
35922
diff
changeset
|
765 lfs: processed: d11e1a642b60813aee592094109b406089b8dff4cb157157f753418ec7857998 |
d857cad588e4
lfs: prefetch lfs blobs during revert
Matt Harbison <matt_harbison@yahoo.com>
parents:
35922
diff
changeset
|
766 lfs: found 31cf46fbc4ecd458a0943c5b4881f1f5a6dd36c53d6167d5b69ac45149b38e5b in the local lfs store |
d857cad588e4
lfs: prefetch lfs blobs during revert
Matt Harbison <matt_harbison@yahoo.com>
parents:
35922
diff
changeset
|
767 lfs: found d11e1a642b60813aee592094109b406089b8dff4cb157157f753418ec7857998 in the local lfs store |
d857cad588e4
lfs: prefetch lfs blobs during revert
Matt Harbison <matt_harbison@yahoo.com>
parents:
35922
diff
changeset
|
768 lfs: found 37a65ab78d5ecda767e8622c248b5dbff1e68b1678ab0e730d5eb8601ec8ad19 in the local lfs store |
d857cad588e4
lfs: prefetch lfs blobs during revert
Matt Harbison <matt_harbison@yahoo.com>
parents:
35922
diff
changeset
|
769 lfs: found 31cf46fbc4ecd458a0943c5b4881f1f5a6dd36c53d6167d5b69ac45149b38e5b in the local lfs store |
d857cad588e4
lfs: prefetch lfs blobs during revert
Matt Harbison <matt_harbison@yahoo.com>
parents:
35922
diff
changeset
|
770 |
35098
66c5a8cf2868
lfs: import the Facebook git-lfs client extension
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
771 Check error message when the remote missed a blob: |
66c5a8cf2868
lfs: import the Facebook git-lfs client extension
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
772 |
66c5a8cf2868
lfs: import the Facebook git-lfs client extension
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
773 $ echo FFFFF > b |
66c5a8cf2868
lfs: import the Facebook git-lfs client extension
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
774 $ hg commit -m b -A b |
66c5a8cf2868
lfs: import the Facebook git-lfs client extension
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
775 $ echo FFFFF >> b |
66c5a8cf2868
lfs: import the Facebook git-lfs client extension
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
776 $ hg commit -m b b |
66c5a8cf2868
lfs: import the Facebook git-lfs client extension
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
777 $ rm -rf .hg/store/lfs |
35280
8e72f9152c4d
lfs: introduce a user level cache for lfs files
Matt Harbison <matt_harbison@yahoo.com>
parents:
35141
diff
changeset
|
778 $ rm -rf `hg config lfs.usercache` |
36925
24e6342db1cb
test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
35927
diff
changeset
|
779 $ hg update -C '.^' --debug |
24e6342db1cb
test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
35927
diff
changeset
|
780 http auth: user foo, password *** |
24e6342db1cb
test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
35927
diff
changeset
|
781 resolving manifests |
24e6342db1cb
test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
35927
diff
changeset
|
782 branchmerge: False, force: True, partial: False |
24e6342db1cb
test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
35927
diff
changeset
|
783 ancestor: 62fdbaf221c6+, local: 62fdbaf221c6+, remote: ef0564edf47e |
36926
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
784 Status: 200 |
37153
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
785 Content-Length: 308 (git-server !) |
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
786 Content-Length: 186 (hg-server !) |
36926
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
787 Content-Type: application/vnd.git-lfs+json |
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
788 Date: $HTTP_DATE$ |
37153
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
789 Server: testing stub value (hg-server !) |
36926
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
790 { |
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
791 "objects": [ |
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
792 { |
37153
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
793 "actions": { (git-server !) |
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
794 "upload": { (git-server !) |
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
795 "expires_at": "$ISO_8601_DATE_TIME$" (git-server !) |
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
796 "header": { (git-server !) |
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
797 "Accept": "application/vnd.git-lfs" (git-server !) |
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
798 } (git-server !) |
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
799 "href": "http://localhost:$HGPORT/objects/8e6ea5f6c066b44a0efa43bcce86aea73f17e6e23f0663df0251e7524e140a13" (git-server !) |
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
800 } (git-server !) |
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
801 "error": { (hg-server !) |
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
802 "code": 404 (hg-server !) |
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
803 "message": "The object does not exist" (hg-server !) |
37146
c37c47e47a95
test-lfs: drop trailing ', ' item separators from debug JSON output
Matt Harbison <matt_harbison@yahoo.com>
parents:
36990
diff
changeset
|
804 } |
c37c47e47a95
test-lfs: drop trailing ', ' item separators from debug JSON output
Matt Harbison <matt_harbison@yahoo.com>
parents:
36990
diff
changeset
|
805 "oid": "8e6ea5f6c066b44a0efa43bcce86aea73f17e6e23f0663df0251e7524e140a13" |
36926
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
806 "size": 6 |
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
807 } |
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
808 ] |
37153
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
809 "transfer": "basic" (hg-server !) |
36926
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
810 } |
37242
67db84842356
lfs: improve the client message when the server signals an object error
Matt Harbison <matt_harbison@yahoo.com>
parents:
37153
diff
changeset
|
811 abort: LFS server error for "b": The object does not exist! |
35098
66c5a8cf2868
lfs: import the Facebook git-lfs client extension
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
812 [255] |
66c5a8cf2868
lfs: import the Facebook git-lfs client extension
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
813 |
66c5a8cf2868
lfs: import the Facebook git-lfs client extension
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
814 Check error message when object does not exist: |
66c5a8cf2868
lfs: import the Facebook git-lfs client extension
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
815 |
35666 | 816 $ cd $TESTTMP |
35098
66c5a8cf2868
lfs: import the Facebook git-lfs client extension
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
817 $ hg init test && cd test |
66c5a8cf2868
lfs: import the Facebook git-lfs client extension
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
818 $ echo "[extensions]" >> .hg/hgrc |
66c5a8cf2868
lfs: import the Facebook git-lfs client extension
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
819 $ echo "lfs=" >> .hg/hgrc |
66c5a8cf2868
lfs: import the Facebook git-lfs client extension
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
820 $ echo "[lfs]" >> .hg/hgrc |
66c5a8cf2868
lfs: import the Facebook git-lfs client extension
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
821 $ echo "threshold=1" >> .hg/hgrc |
66c5a8cf2868
lfs: import the Facebook git-lfs client extension
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
822 $ echo a > a |
66c5a8cf2868
lfs: import the Facebook git-lfs client extension
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
823 $ hg add a |
66c5a8cf2868
lfs: import the Facebook git-lfs client extension
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
824 $ hg commit -m 'test' |
66c5a8cf2868
lfs: import the Facebook git-lfs client extension
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
825 $ echo aaaaa > a |
66c5a8cf2868
lfs: import the Facebook git-lfs client extension
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
826 $ hg commit -m 'largefile' |
37280
435481393198
tests: don't use revlog paths in tests
Gregory Szorc <gregory.szorc@gmail.com>
parents:
37242
diff
changeset
|
827 $ hg debugdata a 1 # verify this is no the file content but includes "oid", the LFS "pointer". |
35098
66c5a8cf2868
lfs: import the Facebook git-lfs client extension
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
828 version https://git-lfs.github.com/spec/v1 |
66c5a8cf2868
lfs: import the Facebook git-lfs client extension
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
829 oid sha256:bdc26931acfb734b142a8d675f205becf27560dc461f501822de13274fe6fc8a |
66c5a8cf2868
lfs: import the Facebook git-lfs client extension
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
830 size 6 |
66c5a8cf2868
lfs: import the Facebook git-lfs client extension
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
831 x-is-binary 0 |
66c5a8cf2868
lfs: import the Facebook git-lfs client extension
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
832 $ cd .. |
35280
8e72f9152c4d
lfs: introduce a user level cache for lfs files
Matt Harbison <matt_harbison@yahoo.com>
parents:
35141
diff
changeset
|
833 $ rm -rf `hg config lfs.usercache` |
35666 | 834 |
835 (Restart the server in a different location so it no longer has the content) | |
836 | |
837 $ $PYTHON $RUNTESTDIR/killdaemons.py $DAEMON_PIDS | |
37153
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
838 |
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
839 #if hg-server |
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
840 $ cat $TESTTMP/access.log $TESTTMP/errors.log |
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
841 $LOCALIP - - [$LOGDATE$] "POST /.git/info/lfs/objects/batch HTTP/1.1" 200 - (glob) |
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
842 $LOCALIP - - [$LOGDATE$] "PUT /.hg/lfs/objects/31cf46fbc4ecd458a0943c5b4881f1f5a6dd36c53d6167d5b69ac45149b38e5b HTTP/1.1" 201 - (glob) |
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
843 $LOCALIP - - [$LOGDATE$] "POST /.git/info/lfs/objects/batch HTTP/1.1" 200 - (glob) |
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
844 $LOCALIP - - [$LOGDATE$] "GET /.hg/lfs/objects/31cf46fbc4ecd458a0943c5b4881f1f5a6dd36c53d6167d5b69ac45149b38e5b HTTP/1.1" 200 - (glob) |
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
845 $LOCALIP - - [$LOGDATE$] "POST /.git/info/lfs/objects/batch HTTP/1.1" 200 - (glob) |
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
846 $LOCALIP - - [$LOGDATE$] "PUT /.hg/lfs/objects/37a65ab78d5ecda767e8622c248b5dbff1e68b1678ab0e730d5eb8601ec8ad19 HTTP/1.1" 201 - (glob) |
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
847 $LOCALIP - - [$LOGDATE$] "PUT /.hg/lfs/objects/d11e1a642b60813aee592094109b406089b8dff4cb157157f753418ec7857998 HTTP/1.1" 201 - (glob) |
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
848 $LOCALIP - - [$LOGDATE$] "POST /.git/info/lfs/objects/batch HTTP/1.1" 200 - (glob) |
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
849 $LOCALIP - - [$LOGDATE$] "GET /.hg/lfs/objects/37a65ab78d5ecda767e8622c248b5dbff1e68b1678ab0e730d5eb8601ec8ad19 HTTP/1.1" 200 - (glob) |
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
850 $LOCALIP - - [$LOGDATE$] "GET /.hg/lfs/objects/d11e1a642b60813aee592094109b406089b8dff4cb157157f753418ec7857998 HTTP/1.1" 200 - (glob) |
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
851 $LOCALIP - - [$LOGDATE$] "POST /.git/info/lfs/objects/batch HTTP/1.1" 200 - (glob) |
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
852 $LOCALIP - - [$LOGDATE$] "POST /.git/info/lfs/objects/batch HTTP/1.1" 200 - (glob) |
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
853 $LOCALIP - - [$LOGDATE$] "POST /.git/info/lfs/objects/batch HTTP/1.1" 200 - (glob) |
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
854 $LOCALIP - - [$LOGDATE$] "GET /.hg/lfs/objects/31cf46fbc4ecd458a0943c5b4881f1f5a6dd36c53d6167d5b69ac45149b38e5b HTTP/1.1" 200 - (glob) |
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
855 $LOCALIP - - [$LOGDATE$] "GET /.hg/lfs/objects/37a65ab78d5ecda767e8622c248b5dbff1e68b1678ab0e730d5eb8601ec8ad19 HTTP/1.1" 200 - (glob) |
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
856 $LOCALIP - - [$LOGDATE$] "GET /.hg/lfs/objects/d11e1a642b60813aee592094109b406089b8dff4cb157157f753418ec7857998 HTTP/1.1" 200 - (glob) |
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
857 $LOCALIP - - [$LOGDATE$] "POST /.git/info/lfs/objects/batch HTTP/1.1" 200 - (glob) |
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
858 $LOCALIP - - [$LOGDATE$] "GET /.hg/lfs/objects/31cf46fbc4ecd458a0943c5b4881f1f5a6dd36c53d6167d5b69ac45149b38e5b HTTP/1.1" 200 - (glob) |
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
859 $LOCALIP - - [$LOGDATE$] "GET /.hg/lfs/objects/d11e1a642b60813aee592094109b406089b8dff4cb157157f753418ec7857998 HTTP/1.1" 200 - (glob) |
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
860 $LOCALIP - - [$LOGDATE$] "POST /.git/info/lfs/objects/batch HTTP/1.1" 200 - (glob) |
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
861 $LOCALIP - - [$LOGDATE$] "GET /.hg/lfs/objects/31cf46fbc4ecd458a0943c5b4881f1f5a6dd36c53d6167d5b69ac45149b38e5b HTTP/1.1" 200 - (glob) |
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
862 $LOCALIP - - [$LOGDATE$] "GET /.hg/lfs/objects/37a65ab78d5ecda767e8622c248b5dbff1e68b1678ab0e730d5eb8601ec8ad19 HTTP/1.1" 200 - (glob) |
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
863 $LOCALIP - - [$LOGDATE$] "GET /.hg/lfs/objects/d11e1a642b60813aee592094109b406089b8dff4cb157157f753418ec7857998 HTTP/1.1" 200 - (glob) |
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
864 $LOCALIP - - [$LOGDATE$] "POST /.git/info/lfs/objects/batch HTTP/1.1" 200 - (glob) |
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
865 #endif |
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
866 |
35666 | 867 $ rm $DAEMON_PIDS |
868 $ mkdir $TESTTMP/lfs-server2 | |
869 $ cd $TESTTMP/lfs-server2 | |
37153
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
870 #if no-windows git-server |
35666 | 871 $ lfs-test-server &> lfs-server.log & |
872 $ echo $! >> $DAEMON_PIDS | |
37153
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
873 #endif |
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
874 |
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
875 #if windows git-server |
35666 | 876 $ $PYTHON $TESTTMP/spawn.py >> $DAEMON_PIDS |
877 #endif | |
878 | |
37153
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
879 #if hg-server |
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
880 $ hg init server2 |
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
881 $ hg --config "lfs.usercache=$TESTTMP/servercache2" -R server2 serve -d \ |
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
882 > -p $HGPORT --pid-file=hg.pid -A $TESTTMP/access.log -E $TESTTMP/errors.log |
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
883 $ cat hg.pid >> $DAEMON_PIDS |
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
884 #endif |
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
885 |
35666 | 886 $ cd $TESTTMP |
36925
24e6342db1cb
test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
35927
diff
changeset
|
887 $ hg --debug clone test test2 |
24e6342db1cb
test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
35927
diff
changeset
|
888 http auth: user foo, password *** |
24e6342db1cb
test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
35927
diff
changeset
|
889 linked 6 files |
24e6342db1cb
test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
35927
diff
changeset
|
890 http auth: user foo, password *** |
35098
66c5a8cf2868
lfs: import the Facebook git-lfs client extension
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
891 updating to branch default |
36925
24e6342db1cb
test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
35927
diff
changeset
|
892 resolving manifests |
24e6342db1cb
test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
35927
diff
changeset
|
893 branchmerge: False, force: False, partial: False |
24e6342db1cb
test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
35927
diff
changeset
|
894 ancestor: 000000000000, local: 000000000000+, remote: d2a338f184a8 |
36926
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
895 Status: 200 |
37153
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
896 Content-Length: 308 (git-server !) |
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
897 Content-Length: 186 (hg-server !) |
36926
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
898 Content-Type: application/vnd.git-lfs+json |
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
899 Date: $HTTP_DATE$ |
37153
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
900 Server: testing stub value (hg-server !) |
36926
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
901 { |
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
902 "objects": [ |
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
903 { |
37153
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
904 "actions": { (git-server !) |
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
905 "upload": { (git-server !) |
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
906 "expires_at": "$ISO_8601_DATE_TIME$" (git-server !) |
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
907 "header": { (git-server !) |
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
908 "Accept": "application/vnd.git-lfs" (git-server !) |
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
909 } (git-server !) |
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
910 "href": "http://localhost:$HGPORT/objects/bdc26931acfb734b142a8d675f205becf27560dc461f501822de13274fe6fc8a" (git-server !) |
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
911 } (git-server !) |
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
912 "error": { (hg-server !) |
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
913 "code": 404 (hg-server !) |
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
914 "message": "The object does not exist" (hg-server !) |
37146
c37c47e47a95
test-lfs: drop trailing ', ' item separators from debug JSON output
Matt Harbison <matt_harbison@yahoo.com>
parents:
36990
diff
changeset
|
915 } |
c37c47e47a95
test-lfs: drop trailing ', ' item separators from debug JSON output
Matt Harbison <matt_harbison@yahoo.com>
parents:
36990
diff
changeset
|
916 "oid": "bdc26931acfb734b142a8d675f205becf27560dc461f501822de13274fe6fc8a" |
36926
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
917 "size": 6 |
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
918 } |
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
919 ] |
37153
f51c2780db3a
test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents:
37146
diff
changeset
|
920 "transfer": "basic" (hg-server !) |
36926
0dcf50dc90b6
lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents:
36925
diff
changeset
|
921 } |
37242
67db84842356
lfs: improve the client message when the server signals an object error
Matt Harbison <matt_harbison@yahoo.com>
parents:
37153
diff
changeset
|
922 abort: LFS server error for "a": The object does not exist! |
35098
66c5a8cf2868
lfs: import the Facebook git-lfs client extension
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff
changeset
|
923 [255] |
35141
32bb27dd5282
test-lfs: allow the test server to be killed on Windows
Matt Harbison <matt_harbison@yahoo.com>
parents:
35139
diff
changeset
|
924 |
32bb27dd5282
test-lfs: allow the test server to be killed on Windows
Matt Harbison <matt_harbison@yahoo.com>
parents:
35139
diff
changeset
|
925 $ $PYTHON $RUNTESTDIR/killdaemons.py $DAEMON_PIDS |