Mercurial > public > mercurial-scm > hg-stable
diff tests/test-wireproto-command-filedata.t @ 39820:d3d333ab167a
wireprotov2: teach changesetdata to fetch ancestors until depth
For shallow clone, it is useful to specify a starting node and tell
the server to send up to N ancestors from that starting point. This
enables the server to perform the DAG walk without the client having
to discover the base/stop node(s) first.
This commit implements support for said queries on the changesetdata
command.
Differential Revision: https://phab.mercurial-scm.org/D4621
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Mon, 17 Sep 2018 11:50:59 -0700 |
parents | d059cb669632 |
children | 34074e8ea160 |
line wrap: on
line diff
--- a/tests/test-wireproto-command-filedata.t Thu Sep 20 12:57:23 2018 -0700 +++ b/tests/test-wireproto-command-filedata.t Mon Sep 17 11:50:59 2018 -0700 @@ -53,7 +53,7 @@ > EOF creating http peer for wire protocol version 2 sending filedata command - s> POST /api/exp-http-v2-0001/ro/filedata HTTP/1.1\r\n + s> POST /api/exp-http-v2-0002/ro/filedata HTTP/1.1\r\n s> Accept-Encoding: identity\r\n s> accept: application/mercurial-exp-framing-0005\r\n s> content-type: application/mercurial-exp-framing-0005\r\n @@ -85,7 +85,7 @@ > EOF creating http peer for wire protocol version 2 sending filedata command - s> POST /api/exp-http-v2-0001/ro/filedata HTTP/1.1\r\n + s> POST /api/exp-http-v2-0002/ro/filedata HTTP/1.1\r\n s> Accept-Encoding: identity\r\n s> accept: application/mercurial-exp-framing-0005\r\n s> content-type: application/mercurial-exp-framing-0005\r\n @@ -120,7 +120,7 @@ > EOF creating http peer for wire protocol version 2 sending filedata command - s> POST /api/exp-http-v2-0001/ro/filedata HTTP/1.1\r\n + s> POST /api/exp-http-v2-0002/ro/filedata HTTP/1.1\r\n s> Accept-Encoding: identity\r\n s> accept: application/mercurial-exp-framing-0005\r\n s> content-type: application/mercurial-exp-framing-0005\r\n @@ -155,7 +155,7 @@ > EOF creating http peer for wire protocol version 2 sending filedata command - s> POST /api/exp-http-v2-0001/ro/filedata HTTP/1.1\r\n + s> POST /api/exp-http-v2-0002/ro/filedata HTTP/1.1\r\n s> Accept-Encoding: identity\r\n s> accept: application/mercurial-exp-framing-0005\r\n s> content-type: application/mercurial-exp-framing-0005\r\n @@ -206,7 +206,7 @@ > EOF creating http peer for wire protocol version 2 sending filedata command - s> POST /api/exp-http-v2-0001/ro/filedata HTTP/1.1\r\n + s> POST /api/exp-http-v2-0002/ro/filedata HTTP/1.1\r\n s> Accept-Encoding: identity\r\n s> accept: application/mercurial-exp-framing-0005\r\n s> content-type: application/mercurial-exp-framing-0005\r\n @@ -263,7 +263,7 @@ > EOF creating http peer for wire protocol version 2 sending filedata command - s> POST /api/exp-http-v2-0001/ro/filedata HTTP/1.1\r\n + s> POST /api/exp-http-v2-0002/ro/filedata HTTP/1.1\r\n s> Accept-Encoding: identity\r\n s> accept: application/mercurial-exp-framing-0005\r\n s> content-type: application/mercurial-exp-framing-0005\r\n @@ -322,7 +322,7 @@ > EOF creating http peer for wire protocol version 2 sending filedata command - s> POST /api/exp-http-v2-0001/ro/filedata HTTP/1.1\r\n + s> POST /api/exp-http-v2-0002/ro/filedata HTTP/1.1\r\n s> Accept-Encoding: identity\r\n s> accept: application/mercurial-exp-framing-0005\r\n s> content-type: application/mercurial-exp-framing-0005\r\n @@ -381,7 +381,7 @@ > EOF creating http peer for wire protocol version 2 sending filedata command - s> POST /api/exp-http-v2-0001/ro/filedata HTTP/1.1\r\n + s> POST /api/exp-http-v2-0002/ro/filedata HTTP/1.1\r\n s> Accept-Encoding: identity\r\n s> accept: application/mercurial-exp-framing-0005\r\n s> content-type: application/mercurial-exp-framing-0005\r\n @@ -442,7 +442,7 @@ > EOF creating http peer for wire protocol version 2 sending filedata command - s> POST /api/exp-http-v2-0001/ro/filedata HTTP/1.1\r\n + s> POST /api/exp-http-v2-0002/ro/filedata HTTP/1.1\r\n s> Accept-Encoding: identity\r\n s> accept: application/mercurial-exp-framing-0005\r\n s> content-type: application/mercurial-exp-framing-0005\r\n @@ -515,7 +515,7 @@ > EOF creating http peer for wire protocol version 2 sending filedata command - s> POST /api/exp-http-v2-0001/ro/filedata HTTP/1.1\r\n + s> POST /api/exp-http-v2-0002/ro/filedata HTTP/1.1\r\n s> Accept-Encoding: identity\r\n s> accept: application/mercurial-exp-framing-0005\r\n s> content-type: application/mercurial-exp-framing-0005\r\n @@ -588,7 +588,7 @@ > EOF creating http peer for wire protocol version 2 sending filedata command - s> POST /api/exp-http-v2-0001/ro/filedata HTTP/1.1\r\n + s> POST /api/exp-http-v2-0002/ro/filedata HTTP/1.1\r\n s> Accept-Encoding: identity\r\n s> accept: application/mercurial-exp-framing-0005\r\n s> content-type: application/mercurial-exp-framing-0005\r\n