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