annotate tests/test-wireproto-exchangev2.t @ 47235:6b1eae313b2f

revlogv2: store version information in the docket only Having it duplicated in the index was both useless and a risk of discrepancy. Differential Revision: https://phab.mercurial-scm.org/D10625
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Mon, 03 May 2021 12:34:21 +0200
parents 84a93fa7ecfd
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
39629
a86d21e70b2b exchangev2: start to implement pull with wire protocol v2
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
1 Tests for wire protocol version 2 exchange.
a86d21e70b2b exchangev2: start to implement pull with wire protocol v2
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
2 Tests in this file should be folded into existing tests once protocol
a86d21e70b2b exchangev2: start to implement pull with wire protocol v2
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
3 v2 has enough features that it can be enabled via #testcase in existing
a86d21e70b2b exchangev2: start to implement pull with wire protocol v2
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
4 tests.
a86d21e70b2b exchangev2: start to implement pull with wire protocol v2
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
5
a86d21e70b2b exchangev2: start to implement pull with wire protocol v2
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
6 $ . $TESTDIR/wireprotohelpers.sh
a86d21e70b2b exchangev2: start to implement pull with wire protocol v2
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
7 $ enablehttpv2client
a86d21e70b2b exchangev2: start to implement pull with wire protocol v2
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
8
a86d21e70b2b exchangev2: start to implement pull with wire protocol v2
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
9 $ hg init server-simple
a86d21e70b2b exchangev2: start to implement pull with wire protocol v2
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
10 $ enablehttpv2 server-simple
a86d21e70b2b exchangev2: start to implement pull with wire protocol v2
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
11 $ cd server-simple
a86d21e70b2b exchangev2: start to implement pull with wire protocol v2
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
12 $ cat >> .hg/hgrc << EOF
a86d21e70b2b exchangev2: start to implement pull with wire protocol v2
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
13 > [phases]
a86d21e70b2b exchangev2: start to implement pull with wire protocol v2
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
14 > publish = false
a86d21e70b2b exchangev2: start to implement pull with wire protocol v2
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
15 > EOF
a86d21e70b2b exchangev2: start to implement pull with wire protocol v2
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
16 $ echo a0 > a
a86d21e70b2b exchangev2: start to implement pull with wire protocol v2
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
17 $ echo b0 > b
a86d21e70b2b exchangev2: start to implement pull with wire protocol v2
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
18 $ hg -q commit -A -m 'commit 0'
a86d21e70b2b exchangev2: start to implement pull with wire protocol v2
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
19
a86d21e70b2b exchangev2: start to implement pull with wire protocol v2
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
20 $ echo a1 > a
a86d21e70b2b exchangev2: start to implement pull with wire protocol v2
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
21 $ hg commit -m 'commit 1'
a86d21e70b2b exchangev2: start to implement pull with wire protocol v2
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
22 $ hg phase --public -r .
a86d21e70b2b exchangev2: start to implement pull with wire protocol v2
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
23 $ echo a2 > a
a86d21e70b2b exchangev2: start to implement pull with wire protocol v2
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
24 $ hg commit -m 'commit 2'
a86d21e70b2b exchangev2: start to implement pull with wire protocol v2
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
25
a86d21e70b2b exchangev2: start to implement pull with wire protocol v2
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
26 $ hg -q up -r 0
a86d21e70b2b exchangev2: start to implement pull with wire protocol v2
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
27 $ echo b1 > b
a86d21e70b2b exchangev2: start to implement pull with wire protocol v2
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
28 $ hg -q commit -m 'head 2 commit 1'
a86d21e70b2b exchangev2: start to implement pull with wire protocol v2
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
29 $ echo b2 > b
a86d21e70b2b exchangev2: start to implement pull with wire protocol v2
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
30 $ hg -q commit -m 'head 2 commit 2'
a86d21e70b2b exchangev2: start to implement pull with wire protocol v2
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
31
a86d21e70b2b exchangev2: start to implement pull with wire protocol v2
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
32 $ hg serve -p $HGPORT -d --pid-file hg.pid -E error.log
a86d21e70b2b exchangev2: start to implement pull with wire protocol v2
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
33 $ cat hg.pid > $DAEMON_PIDS
a86d21e70b2b exchangev2: start to implement pull with wire protocol v2
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
34
a86d21e70b2b exchangev2: start to implement pull with wire protocol v2
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
35 $ cd ..
a86d21e70b2b exchangev2: start to implement pull with wire protocol v2
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
36
a86d21e70b2b exchangev2: start to implement pull with wire protocol v2
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
37 Test basic clone
a86d21e70b2b exchangev2: start to implement pull with wire protocol v2
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
38
41682
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
39 Output is flaky, save it in a file and check part independently
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
40 $ hg --debug clone -U http://localhost:$HGPORT client-simple > clone-output
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
41
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
42 $ cat clone-output | grep -v "received frame"
39629
a86d21e70b2b exchangev2: start to implement pull with wire protocol v2
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
43 using http://localhost:$HGPORT/
a86d21e70b2b exchangev2: start to implement pull with wire protocol v2
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
44 sending capabilities command
a86d21e70b2b exchangev2: start to implement pull with wire protocol v2
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
45 query 1; heads
a86d21e70b2b exchangev2: start to implement pull with wire protocol v2
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
46 sending 2 commands
a86d21e70b2b exchangev2: start to implement pull with wire protocol v2
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
47 sending command heads: {}
a86d21e70b2b exchangev2: start to implement pull with wire protocol v2
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
48 sending command known: {
a86d21e70b2b exchangev2: start to implement pull with wire protocol v2
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
49 'nodes': []
a86d21e70b2b exchangev2: start to implement pull with wire protocol v2
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff changeset
50 }
39631
b9e453d683a1 exchangev2: fetch changeset revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39629
diff changeset
51 sending 1 commands
b9e453d683a1 exchangev2: fetch changeset revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39629
diff changeset
52 sending command changesetdata: {
b9e453d683a1 exchangev2: fetch changeset revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39629
diff changeset
53 'fields': set([
39635
349482d726ee exchangev2: fetch and apply bookmarks
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39633
diff changeset
54 'bookmarks',
39631
b9e453d683a1 exchangev2: fetch changeset revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39629
diff changeset
55 'parents',
39633
ff2de4f2eb3c exchangev2: fetch and apply phases data
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39631
diff changeset
56 'phase',
39631
b9e453d683a1 exchangev2: fetch changeset revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39629
diff changeset
57 'revision'
b9e453d683a1 exchangev2: fetch changeset revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39629
diff changeset
58 ]),
40176
41263df08109 wireprotov2: change how revisions are specified to changesetdata
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40175
diff changeset
59 'revisions': [
41263df08109 wireprotov2: change how revisions are specified to changesetdata
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40175
diff changeset
60 {
41263df08109 wireprotov2: change how revisions are specified to changesetdata
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40175
diff changeset
61 'heads': [
41263df08109 wireprotov2: change how revisions are specified to changesetdata
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40175
diff changeset
62 '\xca\xa2\xa4eE\x1d\xd1\xfa\xcd\xa0\xf5\xb1#\x12\xc3UXA\x88\xa1',
41263df08109 wireprotov2: change how revisions are specified to changesetdata
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40175
diff changeset
63 '\xcd%4vk\xec\xe18\xc7\xc1\xaf\xdch%0/\x0fb\xd8\x1f'
41263df08109 wireprotov2: change how revisions are specified to changesetdata
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40175
diff changeset
64 ],
41263df08109 wireprotov2: change how revisions are specified to changesetdata
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40175
diff changeset
65 'roots': [],
41263df08109 wireprotov2: change how revisions are specified to changesetdata
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40175
diff changeset
66 'type': 'changesetdagrange'
41263df08109 wireprotov2: change how revisions are specified to changesetdata
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40175
diff changeset
67 }
39631
b9e453d683a1 exchangev2: fetch changeset revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39629
diff changeset
68 ]
b9e453d683a1 exchangev2: fetch changeset revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39629
diff changeset
69 }
b9e453d683a1 exchangev2: fetch changeset revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39629
diff changeset
70 add changeset 3390ef850073
b9e453d683a1 exchangev2: fetch changeset revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39629
diff changeset
71 add changeset 4432d83626e8
b9e453d683a1 exchangev2: fetch changeset revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39629
diff changeset
72 add changeset cd2534766bec
b9e453d683a1 exchangev2: fetch changeset revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39629
diff changeset
73 add changeset e96ae20f4188
b9e453d683a1 exchangev2: fetch changeset revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39629
diff changeset
74 add changeset caa2a465451d
39635
349482d726ee exchangev2: fetch and apply bookmarks
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39633
diff changeset
75 checking for updated bookmarks
39638
d292328e0143 exchangev2: fetch manifest revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39635
diff changeset
76 sending 1 commands
d292328e0143 exchangev2: fetch manifest revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39635
diff changeset
77 sending command manifestdata: {
d292328e0143 exchangev2: fetch manifest revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39635
diff changeset
78 'fields': set([
d292328e0143 exchangev2: fetch manifest revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39635
diff changeset
79 'parents',
d292328e0143 exchangev2: fetch manifest revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39635
diff changeset
80 'revision'
d292328e0143 exchangev2: fetch manifest revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39635
diff changeset
81 ]),
39641
aa7e312375cf wireprotov2: let clients drive delta behavior
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39640
diff changeset
82 'haveparents': True,
39638
d292328e0143 exchangev2: fetch manifest revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39635
diff changeset
83 'nodes': [
d292328e0143 exchangev2: fetch manifest revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39635
diff changeset
84 '\x99/Gy\x02\x9a=\xf8\xd0fm\x00\xbb\x92OicN&A',
d292328e0143 exchangev2: fetch manifest revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39635
diff changeset
85 '\xa9\x88\xfbCX>\x87\x1d\x1e\xd5u\x0e\xe0t\xc6\xd8@\xbb\xbf\xc8',
d292328e0143 exchangev2: fetch manifest revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39635
diff changeset
86 '\xec\x80NH\x8c \x88\xc25\t\x9a\x10 u\x13\xbe\xcd\xc3\xdd\xa5',
d292328e0143 exchangev2: fetch manifest revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39635
diff changeset
87 '\x04\\\x7f9\'\xda\x13\xe7Z\xf8\xf0\xe4\xf0HI\xe4a\xa9x\x0f',
d292328e0143 exchangev2: fetch manifest revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39635
diff changeset
88 '7\x9c\xb0\xc2\xe6d\\y\xdd\xc5\x9a\x1dG\'\xa9\xfb\x83\n\xeb&'
d292328e0143 exchangev2: fetch manifest revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39635
diff changeset
89 ],
d292328e0143 exchangev2: fetch manifest revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39635
diff changeset
90 'tree': ''
d292328e0143 exchangev2: fetch manifest revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39635
diff changeset
91 }
40179
b843356d4ae1 exchangev2: use filesdata
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40176
diff changeset
92 sending 1 commands
b843356d4ae1 exchangev2: use filesdata
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40176
diff changeset
93 sending command filesdata: {
39640
039bf1eddc2e exchangev2: fetch file revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39638
diff changeset
94 'fields': set([
039bf1eddc2e exchangev2: fetch file revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39638
diff changeset
95 'parents',
039bf1eddc2e exchangev2: fetch file revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39638
diff changeset
96 'revision'
039bf1eddc2e exchangev2: fetch file revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39638
diff changeset
97 ]),
39641
aa7e312375cf wireprotov2: let clients drive delta behavior
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39640
diff changeset
98 'haveparents': True,
40179
b843356d4ae1 exchangev2: use filesdata
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40176
diff changeset
99 'revisions': [
b843356d4ae1 exchangev2: use filesdata
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40176
diff changeset
100 {
b843356d4ae1 exchangev2: use filesdata
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40176
diff changeset
101 'nodes': [
b843356d4ae1 exchangev2: use filesdata
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40176
diff changeset
102 '3\x90\xef\x85\x00s\xfb\xc2\xf0\xdf\xff"D4,\x8e\x92)\x01:',
b843356d4ae1 exchangev2: use filesdata
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40176
diff changeset
103 'D2\xd86&\xe8\xa9\x86U\xf0b\xec\x1f*C\xb0\x7f\x7f\xbb\xb0',
b843356d4ae1 exchangev2: use filesdata
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40176
diff changeset
104 '\xcd%4vk\xec\xe18\xc7\xc1\xaf\xdch%0/\x0fb\xd8\x1f',
b843356d4ae1 exchangev2: use filesdata
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40176
diff changeset
105 '\xe9j\xe2\x0fA\x88H{\x9a\xe4\xef9A\xc2|\x81\x141F\xe5',
b843356d4ae1 exchangev2: use filesdata
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40176
diff changeset
106 '\xca\xa2\xa4eE\x1d\xd1\xfa\xcd\xa0\xf5\xb1#\x12\xc3UXA\x88\xa1'
b843356d4ae1 exchangev2: use filesdata
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40176
diff changeset
107 ],
b843356d4ae1 exchangev2: use filesdata
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40176
diff changeset
108 'type': 'changesetexplicit'
b843356d4ae1 exchangev2: use filesdata
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40176
diff changeset
109 }
b843356d4ae1 exchangev2: use filesdata
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40176
diff changeset
110 ]
39640
039bf1eddc2e exchangev2: fetch file revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39638
diff changeset
111 }
41682
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
112 updating the branch cache
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
113 new changesets 3390ef850073:caa2a465451d (3 drafts)
46314
95a615dd77bf clone: make sure we warm the cache after a clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 42884
diff changeset
114 updating the branch cache
41682
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
115 (sent 5 HTTP requests and * bytes; received * bytes in responses) (glob)
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
116
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
117 $ cat clone-output | grep "received frame"
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
118 received frame(size=9; request=1; stream=2; streamflags=stream-begin; type=stream-settings; flags=eos)
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
119 received frame(size=11; request=1; stream=2; streamflags=encoded; type=command-response; flags=continuation)
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
120 received frame(size=43; request=1; stream=2; streamflags=encoded; type=command-response; flags=continuation)
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
121 received frame(size=0; request=1; stream=2; streamflags=; type=command-response; flags=eos)
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
122 received frame(size=11; request=3; stream=2; streamflags=encoded; type=command-response; flags=continuation)
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
123 received frame(size=1; request=3; stream=2; streamflags=encoded; type=command-response; flags=continuation)
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
124 received frame(size=0; request=3; stream=2; streamflags=; type=command-response; flags=eos)
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
125 received frame(size=9; request=1; stream=2; streamflags=stream-begin; type=stream-settings; flags=eos)
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
126 received frame(size=11; request=1; stream=2; streamflags=encoded; type=command-response; flags=continuation)
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
127 received frame(size=941; request=1; stream=2; streamflags=encoded; type=command-response; flags=continuation)
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
128 received frame(size=0; request=1; stream=2; streamflags=; type=command-response; flags=eos)
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
129 received frame(size=9; request=1; stream=2; streamflags=stream-begin; type=stream-settings; flags=eos)
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
130 received frame(size=11; request=1; stream=2; streamflags=encoded; type=command-response; flags=continuation)
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
131 received frame(size=992; request=1; stream=2; streamflags=encoded; type=command-response; flags=continuation)
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
132 received frame(size=0; request=1; stream=2; streamflags=; type=command-response; flags=eos)
40138
b5bf3dd6ec5b wireprotov2: send content encoded frames from server
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40034
diff changeset
133 received frame(size=9; request=1; stream=2; streamflags=stream-begin; type=stream-settings; flags=eos)
b5bf3dd6ec5b wireprotov2: send content encoded frames from server
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40034
diff changeset
134 received frame(size=11; request=1; stream=2; streamflags=encoded; type=command-response; flags=continuation)
40179
b843356d4ae1 exchangev2: use filesdata
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40176
diff changeset
135 received frame(size=901; request=1; stream=2; streamflags=encoded; type=command-response; flags=continuation)
39640
039bf1eddc2e exchangev2: fetch file revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39638
diff changeset
136 received frame(size=0; request=1; stream=2; streamflags=; type=command-response; flags=eos)
41682
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
137
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
138 $ rm clone-output
39631
b9e453d683a1 exchangev2: fetch changeset revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39629
diff changeset
139
b9e453d683a1 exchangev2: fetch changeset revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39629
diff changeset
140 All changesets should have been transferred
b9e453d683a1 exchangev2: fetch changeset revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39629
diff changeset
141
b9e453d683a1 exchangev2: fetch changeset revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39629
diff changeset
142 $ hg -R client-simple debugindex -c
b9e453d683a1 exchangev2: fetch changeset revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39629
diff changeset
143 rev linkrev nodeid p1 p2
b9e453d683a1 exchangev2: fetch changeset revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39629
diff changeset
144 0 0 3390ef850073 000000000000 000000000000
b9e453d683a1 exchangev2: fetch changeset revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39629
diff changeset
145 1 1 4432d83626e8 3390ef850073 000000000000
b9e453d683a1 exchangev2: fetch changeset revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39629
diff changeset
146 2 2 cd2534766bec 4432d83626e8 000000000000
b9e453d683a1 exchangev2: fetch changeset revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39629
diff changeset
147 3 3 e96ae20f4188 3390ef850073 000000000000
b9e453d683a1 exchangev2: fetch changeset revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39629
diff changeset
148 4 4 caa2a465451d e96ae20f4188 000000000000
b9e453d683a1 exchangev2: fetch changeset revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39629
diff changeset
149
b9e453d683a1 exchangev2: fetch changeset revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39629
diff changeset
150 $ hg -R client-simple log -G -T '{rev} {node} {phase}\n'
39633
ff2de4f2eb3c exchangev2: fetch and apply phases data
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39631
diff changeset
151 o 4 caa2a465451dd1facda0f5b12312c355584188a1 draft
39631
b9e453d683a1 exchangev2: fetch changeset revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39629
diff changeset
152 |
39633
ff2de4f2eb3c exchangev2: fetch and apply phases data
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39631
diff changeset
153 o 3 e96ae20f4188487b9ae4ef3941c27c81143146e5 draft
39631
b9e453d683a1 exchangev2: fetch changeset revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39629
diff changeset
154 |
39633
ff2de4f2eb3c exchangev2: fetch and apply phases data
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39631
diff changeset
155 | o 2 cd2534766bece138c7c1afdc6825302f0f62d81f draft
39631
b9e453d683a1 exchangev2: fetch changeset revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39629
diff changeset
156 | |
b9e453d683a1 exchangev2: fetch changeset revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39629
diff changeset
157 | o 1 4432d83626e8a98655f062ec1f2a43b07f7fbbb0 public
b9e453d683a1 exchangev2: fetch changeset revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39629
diff changeset
158 |/
b9e453d683a1 exchangev2: fetch changeset revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39629
diff changeset
159 o 0 3390ef850073fbc2f0dfff2244342c8e9229013a public
b9e453d683a1 exchangev2: fetch changeset revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39629
diff changeset
160
b9e453d683a1 exchangev2: fetch changeset revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39629
diff changeset
161
39638
d292328e0143 exchangev2: fetch manifest revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39635
diff changeset
162 All manifests should have been transferred
d292328e0143 exchangev2: fetch manifest revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39635
diff changeset
163
d292328e0143 exchangev2: fetch manifest revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39635
diff changeset
164 $ hg -R client-simple debugindex -m
d292328e0143 exchangev2: fetch manifest revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39635
diff changeset
165 rev linkrev nodeid p1 p2
d292328e0143 exchangev2: fetch manifest revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39635
diff changeset
166 0 0 992f4779029a 000000000000 000000000000
d292328e0143 exchangev2: fetch manifest revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39635
diff changeset
167 1 1 a988fb43583e 992f4779029a 000000000000
d292328e0143 exchangev2: fetch manifest revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39635
diff changeset
168 2 2 ec804e488c20 a988fb43583e 000000000000
d292328e0143 exchangev2: fetch manifest revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39635
diff changeset
169 3 3 045c7f3927da 992f4779029a 000000000000
d292328e0143 exchangev2: fetch manifest revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39635
diff changeset
170 4 4 379cb0c2e664 045c7f3927da 000000000000
d292328e0143 exchangev2: fetch manifest revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39635
diff changeset
171
39631
b9e453d683a1 exchangev2: fetch changeset revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39629
diff changeset
172 Cloning only a specific revision works
b9e453d683a1 exchangev2: fetch changeset revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39629
diff changeset
173
41682
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
174 Output is flaky, save it in a file and check part independently
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
175 $ hg --debug clone -U -r 4432d83626e8 http://localhost:$HGPORT client-singlehead > clone-output
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
176
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
177 $ cat clone-output | grep -v "received frame"
39631
b9e453d683a1 exchangev2: fetch changeset revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39629
diff changeset
178 using http://localhost:$HGPORT/
b9e453d683a1 exchangev2: fetch changeset revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39629
diff changeset
179 sending capabilities command
b9e453d683a1 exchangev2: fetch changeset revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39629
diff changeset
180 sending 1 commands
b9e453d683a1 exchangev2: fetch changeset revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39629
diff changeset
181 sending command lookup: {
b9e453d683a1 exchangev2: fetch changeset revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39629
diff changeset
182 'key': '4432d83626e8'
b9e453d683a1 exchangev2: fetch changeset revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39629
diff changeset
183 }
b9e453d683a1 exchangev2: fetch changeset revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39629
diff changeset
184 query 1; heads
b9e453d683a1 exchangev2: fetch changeset revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39629
diff changeset
185 sending 2 commands
b9e453d683a1 exchangev2: fetch changeset revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39629
diff changeset
186 sending command heads: {}
b9e453d683a1 exchangev2: fetch changeset revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39629
diff changeset
187 sending command known: {
b9e453d683a1 exchangev2: fetch changeset revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39629
diff changeset
188 'nodes': []
b9e453d683a1 exchangev2: fetch changeset revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39629
diff changeset
189 }
b9e453d683a1 exchangev2: fetch changeset revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39629
diff changeset
190 sending 1 commands
b9e453d683a1 exchangev2: fetch changeset revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39629
diff changeset
191 sending command changesetdata: {
b9e453d683a1 exchangev2: fetch changeset revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39629
diff changeset
192 'fields': set([
39635
349482d726ee exchangev2: fetch and apply bookmarks
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39633
diff changeset
193 'bookmarks',
39631
b9e453d683a1 exchangev2: fetch changeset revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39629
diff changeset
194 'parents',
39633
ff2de4f2eb3c exchangev2: fetch and apply phases data
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39631
diff changeset
195 'phase',
39631
b9e453d683a1 exchangev2: fetch changeset revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39629
diff changeset
196 'revision'
b9e453d683a1 exchangev2: fetch changeset revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39629
diff changeset
197 ]),
40176
41263df08109 wireprotov2: change how revisions are specified to changesetdata
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40175
diff changeset
198 'revisions': [
41263df08109 wireprotov2: change how revisions are specified to changesetdata
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40175
diff changeset
199 {
41263df08109 wireprotov2: change how revisions are specified to changesetdata
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40175
diff changeset
200 'heads': [
41263df08109 wireprotov2: change how revisions are specified to changesetdata
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40175
diff changeset
201 'D2\xd86&\xe8\xa9\x86U\xf0b\xec\x1f*C\xb0\x7f\x7f\xbb\xb0'
41263df08109 wireprotov2: change how revisions are specified to changesetdata
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40175
diff changeset
202 ],
41263df08109 wireprotov2: change how revisions are specified to changesetdata
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40175
diff changeset
203 'roots': [],
41263df08109 wireprotov2: change how revisions are specified to changesetdata
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40175
diff changeset
204 'type': 'changesetdagrange'
41263df08109 wireprotov2: change how revisions are specified to changesetdata
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40175
diff changeset
205 }
39631
b9e453d683a1 exchangev2: fetch changeset revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39629
diff changeset
206 ]
b9e453d683a1 exchangev2: fetch changeset revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39629
diff changeset
207 }
b9e453d683a1 exchangev2: fetch changeset revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39629
diff changeset
208 add changeset 3390ef850073
b9e453d683a1 exchangev2: fetch changeset revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39629
diff changeset
209 add changeset 4432d83626e8
39635
349482d726ee exchangev2: fetch and apply bookmarks
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39633
diff changeset
210 checking for updated bookmarks
39638
d292328e0143 exchangev2: fetch manifest revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39635
diff changeset
211 sending 1 commands
d292328e0143 exchangev2: fetch manifest revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39635
diff changeset
212 sending command manifestdata: {
d292328e0143 exchangev2: fetch manifest revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39635
diff changeset
213 'fields': set([
d292328e0143 exchangev2: fetch manifest revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39635
diff changeset
214 'parents',
d292328e0143 exchangev2: fetch manifest revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39635
diff changeset
215 'revision'
d292328e0143 exchangev2: fetch manifest revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39635
diff changeset
216 ]),
39641
aa7e312375cf wireprotov2: let clients drive delta behavior
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39640
diff changeset
217 'haveparents': True,
39638
d292328e0143 exchangev2: fetch manifest revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39635
diff changeset
218 'nodes': [
d292328e0143 exchangev2: fetch manifest revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39635
diff changeset
219 '\x99/Gy\x02\x9a=\xf8\xd0fm\x00\xbb\x92OicN&A',
d292328e0143 exchangev2: fetch manifest revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39635
diff changeset
220 '\xa9\x88\xfbCX>\x87\x1d\x1e\xd5u\x0e\xe0t\xc6\xd8@\xbb\xbf\xc8'
d292328e0143 exchangev2: fetch manifest revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39635
diff changeset
221 ],
d292328e0143 exchangev2: fetch manifest revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39635
diff changeset
222 'tree': ''
d292328e0143 exchangev2: fetch manifest revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39635
diff changeset
223 }
40179
b843356d4ae1 exchangev2: use filesdata
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40176
diff changeset
224 sending 1 commands
b843356d4ae1 exchangev2: use filesdata
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40176
diff changeset
225 sending command filesdata: {
39640
039bf1eddc2e exchangev2: fetch file revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39638
diff changeset
226 'fields': set([
039bf1eddc2e exchangev2: fetch file revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39638
diff changeset
227 'parents',
039bf1eddc2e exchangev2: fetch file revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39638
diff changeset
228 'revision'
039bf1eddc2e exchangev2: fetch file revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39638
diff changeset
229 ]),
39641
aa7e312375cf wireprotov2: let clients drive delta behavior
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39640
diff changeset
230 'haveparents': True,
40179
b843356d4ae1 exchangev2: use filesdata
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40176
diff changeset
231 'revisions': [
b843356d4ae1 exchangev2: use filesdata
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40176
diff changeset
232 {
b843356d4ae1 exchangev2: use filesdata
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40176
diff changeset
233 'nodes': [
b843356d4ae1 exchangev2: use filesdata
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40176
diff changeset
234 '3\x90\xef\x85\x00s\xfb\xc2\xf0\xdf\xff"D4,\x8e\x92)\x01:',
b843356d4ae1 exchangev2: use filesdata
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40176
diff changeset
235 'D2\xd86&\xe8\xa9\x86U\xf0b\xec\x1f*C\xb0\x7f\x7f\xbb\xb0'
b843356d4ae1 exchangev2: use filesdata
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40176
diff changeset
236 ],
b843356d4ae1 exchangev2: use filesdata
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40176
diff changeset
237 'type': 'changesetexplicit'
b843356d4ae1 exchangev2: use filesdata
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40176
diff changeset
238 }
b843356d4ae1 exchangev2: use filesdata
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40176
diff changeset
239 ]
39640
039bf1eddc2e exchangev2: fetch file revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39638
diff changeset
240 }
41682
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
241 updating the branch cache
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
242 new changesets 3390ef850073:4432d83626e8
46314
95a615dd77bf clone: make sure we warm the cache after a clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 42884
diff changeset
243 updating the branch cache
41682
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
244 (sent 6 HTTP requests and * bytes; received * bytes in responses) (glob)
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
245
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
246 $ cat clone-output | grep "received frame"
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
247 received frame(size=9; request=1; stream=2; streamflags=stream-begin; type=stream-settings; flags=eos)
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
248 received frame(size=11; request=1; stream=2; streamflags=encoded; type=command-response; flags=continuation)
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
249 received frame(size=21; request=1; stream=2; streamflags=encoded; type=command-response; flags=continuation)
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
250 received frame(size=0; request=1; stream=2; streamflags=; type=command-response; flags=eos)
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
251 received frame(size=9; request=1; stream=2; streamflags=stream-begin; type=stream-settings; flags=eos)
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
252 received frame(size=11; request=1; stream=2; streamflags=encoded; type=command-response; flags=continuation)
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
253 received frame(size=43; request=1; stream=2; streamflags=encoded; type=command-response; flags=continuation)
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
254 received frame(size=0; request=1; stream=2; streamflags=; type=command-response; flags=eos)
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
255 received frame(size=11; request=3; stream=2; streamflags=encoded; type=command-response; flags=continuation)
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
256 received frame(size=1; request=3; stream=2; streamflags=encoded; type=command-response; flags=continuation)
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
257 received frame(size=0; request=3; stream=2; streamflags=; type=command-response; flags=eos)
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
258 received frame(size=9; request=1; stream=2; streamflags=stream-begin; type=stream-settings; flags=eos)
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
259 received frame(size=11; request=1; stream=2; streamflags=encoded; type=command-response; flags=continuation)
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
260 received frame(size=381; request=1; stream=2; streamflags=encoded; type=command-response; flags=continuation)
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
261 received frame(size=0; request=1; stream=2; streamflags=; type=command-response; flags=eos)
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
262 received frame(size=9; request=1; stream=2; streamflags=stream-begin; type=stream-settings; flags=eos)
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
263 received frame(size=11; request=1; stream=2; streamflags=encoded; type=command-response; flags=continuation)
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
264 received frame(size=404; request=1; stream=2; streamflags=encoded; type=command-response; flags=continuation)
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
265 received frame(size=0; request=1; stream=2; streamflags=; type=command-response; flags=eos)
40138
b5bf3dd6ec5b wireprotov2: send content encoded frames from server
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40034
diff changeset
266 received frame(size=9; request=1; stream=2; streamflags=stream-begin; type=stream-settings; flags=eos)
b5bf3dd6ec5b wireprotov2: send content encoded frames from server
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40034
diff changeset
267 received frame(size=11; request=1; stream=2; streamflags=encoded; type=command-response; flags=continuation)
40179
b843356d4ae1 exchangev2: use filesdata
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40176
diff changeset
268 received frame(size=439; request=1; stream=2; streamflags=encoded; type=command-response; flags=continuation)
39640
039bf1eddc2e exchangev2: fetch file revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39638
diff changeset
269 received frame(size=0; request=1; stream=2; streamflags=; type=command-response; flags=eos)
41682
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
270
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
271 $ rm clone-output
39631
b9e453d683a1 exchangev2: fetch changeset revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39629
diff changeset
272
b9e453d683a1 exchangev2: fetch changeset revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39629
diff changeset
273 $ cd client-singlehead
b9e453d683a1 exchangev2: fetch changeset revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39629
diff changeset
274
b9e453d683a1 exchangev2: fetch changeset revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39629
diff changeset
275 $ hg log -G -T '{rev} {node} {phase}\n'
b9e453d683a1 exchangev2: fetch changeset revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39629
diff changeset
276 o 1 4432d83626e8a98655f062ec1f2a43b07f7fbbb0 public
b9e453d683a1 exchangev2: fetch changeset revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39629
diff changeset
277 |
b9e453d683a1 exchangev2: fetch changeset revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39629
diff changeset
278 o 0 3390ef850073fbc2f0dfff2244342c8e9229013a public
b9e453d683a1 exchangev2: fetch changeset revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39629
diff changeset
279
b9e453d683a1 exchangev2: fetch changeset revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39629
diff changeset
280
39638
d292328e0143 exchangev2: fetch manifest revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39635
diff changeset
281 $ hg debugindex -m
d292328e0143 exchangev2: fetch manifest revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39635
diff changeset
282 rev linkrev nodeid p1 p2
d292328e0143 exchangev2: fetch manifest revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39635
diff changeset
283 0 0 992f4779029a 000000000000 000000000000
d292328e0143 exchangev2: fetch manifest revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39635
diff changeset
284 1 1 a988fb43583e 992f4779029a 000000000000
d292328e0143 exchangev2: fetch manifest revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39635
diff changeset
285
39631
b9e453d683a1 exchangev2: fetch changeset revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39629
diff changeset
286 Incremental pull works
b9e453d683a1 exchangev2: fetch changeset revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39629
diff changeset
287
41682
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
288 Output is flaky, save it in a file and check part independently
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
289 $ hg --debug pull > pull-output
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
290
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
291 $ cat pull-output | grep -v "received frame"
39631
b9e453d683a1 exchangev2: fetch changeset revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39629
diff changeset
292 pulling from http://localhost:$HGPORT/
b9e453d683a1 exchangev2: fetch changeset revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39629
diff changeset
293 using http://localhost:$HGPORT/
b9e453d683a1 exchangev2: fetch changeset revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39629
diff changeset
294 sending capabilities command
b9e453d683a1 exchangev2: fetch changeset revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39629
diff changeset
295 query 1; heads
b9e453d683a1 exchangev2: fetch changeset revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39629
diff changeset
296 sending 2 commands
b9e453d683a1 exchangev2: fetch changeset revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39629
diff changeset
297 sending command heads: {}
b9e453d683a1 exchangev2: fetch changeset revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39629
diff changeset
298 sending command known: {
b9e453d683a1 exchangev2: fetch changeset revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39629
diff changeset
299 'nodes': [
b9e453d683a1 exchangev2: fetch changeset revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39629
diff changeset
300 'D2\xd86&\xe8\xa9\x86U\xf0b\xec\x1f*C\xb0\x7f\x7f\xbb\xb0'
b9e453d683a1 exchangev2: fetch changeset revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39629
diff changeset
301 ]
b9e453d683a1 exchangev2: fetch changeset revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39629
diff changeset
302 }
b9e453d683a1 exchangev2: fetch changeset revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39629
diff changeset
303 searching for changes
42884
775224e26d74 discovery: replace "heads" by "changesets" in a output note (BC)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 41682
diff changeset
304 all local changesets known remotely
39631
b9e453d683a1 exchangev2: fetch changeset revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39629
diff changeset
305 sending 1 commands
b9e453d683a1 exchangev2: fetch changeset revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39629
diff changeset
306 sending command changesetdata: {
b9e453d683a1 exchangev2: fetch changeset revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39629
diff changeset
307 'fields': set([
39635
349482d726ee exchangev2: fetch and apply bookmarks
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39633
diff changeset
308 'bookmarks',
39631
b9e453d683a1 exchangev2: fetch changeset revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39629
diff changeset
309 'parents',
39633
ff2de4f2eb3c exchangev2: fetch and apply phases data
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39631
diff changeset
310 'phase',
39631
b9e453d683a1 exchangev2: fetch changeset revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39629
diff changeset
311 'revision'
b9e453d683a1 exchangev2: fetch changeset revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39629
diff changeset
312 ]),
40176
41263df08109 wireprotov2: change how revisions are specified to changesetdata
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40175
diff changeset
313 'revisions': [
41263df08109 wireprotov2: change how revisions are specified to changesetdata
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40175
diff changeset
314 {
41263df08109 wireprotov2: change how revisions are specified to changesetdata
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40175
diff changeset
315 'heads': [
41263df08109 wireprotov2: change how revisions are specified to changesetdata
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40175
diff changeset
316 '\xca\xa2\xa4eE\x1d\xd1\xfa\xcd\xa0\xf5\xb1#\x12\xc3UXA\x88\xa1',
41263df08109 wireprotov2: change how revisions are specified to changesetdata
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40175
diff changeset
317 '\xcd%4vk\xec\xe18\xc7\xc1\xaf\xdch%0/\x0fb\xd8\x1f'
41263df08109 wireprotov2: change how revisions are specified to changesetdata
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40175
diff changeset
318 ],
41263df08109 wireprotov2: change how revisions are specified to changesetdata
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40175
diff changeset
319 'roots': [
41263df08109 wireprotov2: change how revisions are specified to changesetdata
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40175
diff changeset
320 'D2\xd86&\xe8\xa9\x86U\xf0b\xec\x1f*C\xb0\x7f\x7f\xbb\xb0'
41263df08109 wireprotov2: change how revisions are specified to changesetdata
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40175
diff changeset
321 ],
41263df08109 wireprotov2: change how revisions are specified to changesetdata
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40175
diff changeset
322 'type': 'changesetdagrange'
41263df08109 wireprotov2: change how revisions are specified to changesetdata
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40175
diff changeset
323 }
39631
b9e453d683a1 exchangev2: fetch changeset revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39629
diff changeset
324 ]
b9e453d683a1 exchangev2: fetch changeset revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39629
diff changeset
325 }
b9e453d683a1 exchangev2: fetch changeset revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39629
diff changeset
326 add changeset cd2534766bec
b9e453d683a1 exchangev2: fetch changeset revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39629
diff changeset
327 add changeset e96ae20f4188
b9e453d683a1 exchangev2: fetch changeset revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39629
diff changeset
328 add changeset caa2a465451d
39635
349482d726ee exchangev2: fetch and apply bookmarks
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39633
diff changeset
329 checking for updated bookmarks
39638
d292328e0143 exchangev2: fetch manifest revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39635
diff changeset
330 sending 1 commands
d292328e0143 exchangev2: fetch manifest revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39635
diff changeset
331 sending command manifestdata: {
d292328e0143 exchangev2: fetch manifest revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39635
diff changeset
332 'fields': set([
d292328e0143 exchangev2: fetch manifest revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39635
diff changeset
333 'parents',
d292328e0143 exchangev2: fetch manifest revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39635
diff changeset
334 'revision'
d292328e0143 exchangev2: fetch manifest revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39635
diff changeset
335 ]),
39641
aa7e312375cf wireprotov2: let clients drive delta behavior
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39640
diff changeset
336 'haveparents': True,
39638
d292328e0143 exchangev2: fetch manifest revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39635
diff changeset
337 'nodes': [
d292328e0143 exchangev2: fetch manifest revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39635
diff changeset
338 '\xec\x80NH\x8c \x88\xc25\t\x9a\x10 u\x13\xbe\xcd\xc3\xdd\xa5',
d292328e0143 exchangev2: fetch manifest revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39635
diff changeset
339 '\x04\\\x7f9\'\xda\x13\xe7Z\xf8\xf0\xe4\xf0HI\xe4a\xa9x\x0f',
d292328e0143 exchangev2: fetch manifest revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39635
diff changeset
340 '7\x9c\xb0\xc2\xe6d\\y\xdd\xc5\x9a\x1dG\'\xa9\xfb\x83\n\xeb&'
d292328e0143 exchangev2: fetch manifest revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39635
diff changeset
341 ],
d292328e0143 exchangev2: fetch manifest revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39635
diff changeset
342 'tree': ''
d292328e0143 exchangev2: fetch manifest revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39635
diff changeset
343 }
40179
b843356d4ae1 exchangev2: use filesdata
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40176
diff changeset
344 sending 1 commands
b843356d4ae1 exchangev2: use filesdata
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40176
diff changeset
345 sending command filesdata: {
39640
039bf1eddc2e exchangev2: fetch file revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39638
diff changeset
346 'fields': set([
039bf1eddc2e exchangev2: fetch file revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39638
diff changeset
347 'parents',
039bf1eddc2e exchangev2: fetch file revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39638
diff changeset
348 'revision'
039bf1eddc2e exchangev2: fetch file revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39638
diff changeset
349 ]),
39641
aa7e312375cf wireprotov2: let clients drive delta behavior
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39640
diff changeset
350 'haveparents': True,
40179
b843356d4ae1 exchangev2: use filesdata
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40176
diff changeset
351 'revisions': [
b843356d4ae1 exchangev2: use filesdata
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40176
diff changeset
352 {
b843356d4ae1 exchangev2: use filesdata
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40176
diff changeset
353 'nodes': [
b843356d4ae1 exchangev2: use filesdata
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40176
diff changeset
354 '\xcd%4vk\xec\xe18\xc7\xc1\xaf\xdch%0/\x0fb\xd8\x1f',
b843356d4ae1 exchangev2: use filesdata
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40176
diff changeset
355 '\xe9j\xe2\x0fA\x88H{\x9a\xe4\xef9A\xc2|\x81\x141F\xe5',
b843356d4ae1 exchangev2: use filesdata
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40176
diff changeset
356 '\xca\xa2\xa4eE\x1d\xd1\xfa\xcd\xa0\xf5\xb1#\x12\xc3UXA\x88\xa1'
b843356d4ae1 exchangev2: use filesdata
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40176
diff changeset
357 ],
b843356d4ae1 exchangev2: use filesdata
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40176
diff changeset
358 'type': 'changesetexplicit'
b843356d4ae1 exchangev2: use filesdata
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40176
diff changeset
359 }
b843356d4ae1 exchangev2: use filesdata
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40176
diff changeset
360 ]
39640
039bf1eddc2e exchangev2: fetch file revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39638
diff changeset
361 }
41682
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
362 updating the branch cache
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
363 new changesets cd2534766bec:caa2a465451d (3 drafts)
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
364 (run 'hg update' to get a working copy)
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
365 (sent 5 HTTP requests and * bytes; received * bytes in responses) (glob)
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
366
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
367 $ cat pull-output | grep "received frame"
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
368 received frame(size=9; request=1; stream=2; streamflags=stream-begin; type=stream-settings; flags=eos)
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
369 received frame(size=11; request=1; stream=2; streamflags=encoded; type=command-response; flags=continuation)
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
370 received frame(size=43; request=1; stream=2; streamflags=encoded; type=command-response; flags=continuation)
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
371 received frame(size=0; request=1; stream=2; streamflags=; type=command-response; flags=eos)
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
372 received frame(size=11; request=3; stream=2; streamflags=encoded; type=command-response; flags=continuation)
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
373 received frame(size=2; request=3; stream=2; streamflags=encoded; type=command-response; flags=continuation)
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
374 received frame(size=0; request=3; stream=2; streamflags=; type=command-response; flags=eos)
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
375 received frame(size=9; request=1; stream=2; streamflags=stream-begin; type=stream-settings; flags=eos)
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
376 received frame(size=11; request=1; stream=2; streamflags=encoded; type=command-response; flags=continuation)
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
377 received frame(size=573; request=1; stream=2; streamflags=encoded; type=command-response; flags=continuation)
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
378 received frame(size=0; request=1; stream=2; streamflags=; type=command-response; flags=eos)
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
379 received frame(size=9; request=1; stream=2; streamflags=stream-begin; type=stream-settings; flags=eos)
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
380 received frame(size=11; request=1; stream=2; streamflags=encoded; type=command-response; flags=continuation)
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
381 received frame(size=601; request=1; stream=2; streamflags=encoded; type=command-response; flags=continuation)
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
382 received frame(size=0; request=1; stream=2; streamflags=; type=command-response; flags=eos)
40138
b5bf3dd6ec5b wireprotov2: send content encoded frames from server
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40034
diff changeset
383 received frame(size=9; request=1; stream=2; streamflags=stream-begin; type=stream-settings; flags=eos)
b5bf3dd6ec5b wireprotov2: send content encoded frames from server
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40034
diff changeset
384 received frame(size=11; request=1; stream=2; streamflags=encoded; type=command-response; flags=continuation)
40179
b843356d4ae1 exchangev2: use filesdata
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40176
diff changeset
385 received frame(size=527; request=1; stream=2; streamflags=encoded; type=command-response; flags=continuation)
39640
039bf1eddc2e exchangev2: fetch file revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39638
diff changeset
386 received frame(size=0; request=1; stream=2; streamflags=; type=command-response; flags=eos)
41682
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
387
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
388 $ rm pull-output
39633
ff2de4f2eb3c exchangev2: fetch and apply phases data
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39631
diff changeset
389
ff2de4f2eb3c exchangev2: fetch and apply phases data
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39631
diff changeset
390 $ hg log -G -T '{rev} {node} {phase}\n'
ff2de4f2eb3c exchangev2: fetch and apply phases data
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39631
diff changeset
391 o 4 caa2a465451dd1facda0f5b12312c355584188a1 draft
ff2de4f2eb3c exchangev2: fetch and apply phases data
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39631
diff changeset
392 |
ff2de4f2eb3c exchangev2: fetch and apply phases data
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39631
diff changeset
393 o 3 e96ae20f4188487b9ae4ef3941c27c81143146e5 draft
ff2de4f2eb3c exchangev2: fetch and apply phases data
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39631
diff changeset
394 |
ff2de4f2eb3c exchangev2: fetch and apply phases data
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39631
diff changeset
395 | o 2 cd2534766bece138c7c1afdc6825302f0f62d81f draft
ff2de4f2eb3c exchangev2: fetch and apply phases data
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39631
diff changeset
396 | |
ff2de4f2eb3c exchangev2: fetch and apply phases data
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39631
diff changeset
397 | o 1 4432d83626e8a98655f062ec1f2a43b07f7fbbb0 public
ff2de4f2eb3c exchangev2: fetch and apply phases data
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39631
diff changeset
398 |/
ff2de4f2eb3c exchangev2: fetch and apply phases data
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39631
diff changeset
399 o 0 3390ef850073fbc2f0dfff2244342c8e9229013a public
ff2de4f2eb3c exchangev2: fetch and apply phases data
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39631
diff changeset
400
ff2de4f2eb3c exchangev2: fetch and apply phases data
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39631
diff changeset
401
39638
d292328e0143 exchangev2: fetch manifest revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39635
diff changeset
402 $ hg debugindex -m
d292328e0143 exchangev2: fetch manifest revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39635
diff changeset
403 rev linkrev nodeid p1 p2
d292328e0143 exchangev2: fetch manifest revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39635
diff changeset
404 0 0 992f4779029a 000000000000 000000000000
d292328e0143 exchangev2: fetch manifest revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39635
diff changeset
405 1 1 a988fb43583e 992f4779029a 000000000000
d292328e0143 exchangev2: fetch manifest revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39635
diff changeset
406 2 2 ec804e488c20 a988fb43583e 000000000000
d292328e0143 exchangev2: fetch manifest revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39635
diff changeset
407 3 3 045c7f3927da 992f4779029a 000000000000
d292328e0143 exchangev2: fetch manifest revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39635
diff changeset
408 4 4 379cb0c2e664 045c7f3927da 000000000000
d292328e0143 exchangev2: fetch manifest revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39635
diff changeset
409
39633
ff2de4f2eb3c exchangev2: fetch and apply phases data
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39631
diff changeset
410 Phase-only update works
40175
6c42409691ec wireprotov2: stop sending phase updates for base revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40138
diff changeset
411 TODO this doesn't work
39633
ff2de4f2eb3c exchangev2: fetch and apply phases data
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39631
diff changeset
412
ff2de4f2eb3c exchangev2: fetch and apply phases data
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39631
diff changeset
413 $ hg -R ../server-simple phase --public -r caa2a465451dd
ff2de4f2eb3c exchangev2: fetch and apply phases data
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39631
diff changeset
414 $ hg --debug pull
ff2de4f2eb3c exchangev2: fetch and apply phases data
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39631
diff changeset
415 pulling from http://localhost:$HGPORT/
ff2de4f2eb3c exchangev2: fetch and apply phases data
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39631
diff changeset
416 using http://localhost:$HGPORT/
ff2de4f2eb3c exchangev2: fetch and apply phases data
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39631
diff changeset
417 sending capabilities command
ff2de4f2eb3c exchangev2: fetch and apply phases data
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39631
diff changeset
418 query 1; heads
ff2de4f2eb3c exchangev2: fetch and apply phases data
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39631
diff changeset
419 sending 2 commands
ff2de4f2eb3c exchangev2: fetch and apply phases data
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39631
diff changeset
420 sending command heads: {}
ff2de4f2eb3c exchangev2: fetch and apply phases data
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39631
diff changeset
421 sending command known: {
ff2de4f2eb3c exchangev2: fetch and apply phases data
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39631
diff changeset
422 'nodes': [
ff2de4f2eb3c exchangev2: fetch and apply phases data
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39631
diff changeset
423 '\xcd%4vk\xec\xe18\xc7\xc1\xaf\xdch%0/\x0fb\xd8\x1f',
ff2de4f2eb3c exchangev2: fetch and apply phases data
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39631
diff changeset
424 '\xca\xa2\xa4eE\x1d\xd1\xfa\xcd\xa0\xf5\xb1#\x12\xc3UXA\x88\xa1'
ff2de4f2eb3c exchangev2: fetch and apply phases data
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39631
diff changeset
425 ]
ff2de4f2eb3c exchangev2: fetch and apply phases data
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39631
diff changeset
426 }
40138
b5bf3dd6ec5b wireprotov2: send content encoded frames from server
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40034
diff changeset
427 received frame(size=9; request=1; stream=2; streamflags=stream-begin; type=stream-settings; flags=eos)
b5bf3dd6ec5b wireprotov2: send content encoded frames from server
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40034
diff changeset
428 received frame(size=11; request=1; stream=2; streamflags=encoded; type=command-response; flags=continuation)
b5bf3dd6ec5b wireprotov2: send content encoded frames from server
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40034
diff changeset
429 received frame(size=43; request=1; stream=2; streamflags=encoded; type=command-response; flags=continuation)
39633
ff2de4f2eb3c exchangev2: fetch and apply phases data
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39631
diff changeset
430 received frame(size=0; request=1; stream=2; streamflags=; type=command-response; flags=eos)
40138
b5bf3dd6ec5b wireprotov2: send content encoded frames from server
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40034
diff changeset
431 received frame(size=11; request=3; stream=2; streamflags=encoded; type=command-response; flags=continuation)
b5bf3dd6ec5b wireprotov2: send content encoded frames from server
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40034
diff changeset
432 received frame(size=3; request=3; stream=2; streamflags=encoded; type=command-response; flags=continuation)
39633
ff2de4f2eb3c exchangev2: fetch and apply phases data
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39631
diff changeset
433 received frame(size=0; request=3; stream=2; streamflags=; type=command-response; flags=eos)
ff2de4f2eb3c exchangev2: fetch and apply phases data
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39631
diff changeset
434 searching for changes
ff2de4f2eb3c exchangev2: fetch and apply phases data
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39631
diff changeset
435 all remote heads known locally
ff2de4f2eb3c exchangev2: fetch and apply phases data
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39631
diff changeset
436 sending 1 commands
ff2de4f2eb3c exchangev2: fetch and apply phases data
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39631
diff changeset
437 sending command changesetdata: {
ff2de4f2eb3c exchangev2: fetch and apply phases data
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39631
diff changeset
438 'fields': set([
39635
349482d726ee exchangev2: fetch and apply bookmarks
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39633
diff changeset
439 'bookmarks',
39633
ff2de4f2eb3c exchangev2: fetch and apply phases data
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39631
diff changeset
440 'parents',
ff2de4f2eb3c exchangev2: fetch and apply phases data
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39631
diff changeset
441 'phase',
ff2de4f2eb3c exchangev2: fetch and apply phases data
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39631
diff changeset
442 'revision'
ff2de4f2eb3c exchangev2: fetch and apply phases data
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39631
diff changeset
443 ]),
40176
41263df08109 wireprotov2: change how revisions are specified to changesetdata
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40175
diff changeset
444 'revisions': [
41263df08109 wireprotov2: change how revisions are specified to changesetdata
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40175
diff changeset
445 {
41263df08109 wireprotov2: change how revisions are specified to changesetdata
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40175
diff changeset
446 'heads': [
41263df08109 wireprotov2: change how revisions are specified to changesetdata
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40175
diff changeset
447 '\xca\xa2\xa4eE\x1d\xd1\xfa\xcd\xa0\xf5\xb1#\x12\xc3UXA\x88\xa1',
41263df08109 wireprotov2: change how revisions are specified to changesetdata
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40175
diff changeset
448 '\xcd%4vk\xec\xe18\xc7\xc1\xaf\xdch%0/\x0fb\xd8\x1f'
41263df08109 wireprotov2: change how revisions are specified to changesetdata
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40175
diff changeset
449 ],
41263df08109 wireprotov2: change how revisions are specified to changesetdata
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40175
diff changeset
450 'roots': [
41263df08109 wireprotov2: change how revisions are specified to changesetdata
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40175
diff changeset
451 '\xca\xa2\xa4eE\x1d\xd1\xfa\xcd\xa0\xf5\xb1#\x12\xc3UXA\x88\xa1',
41263df08109 wireprotov2: change how revisions are specified to changesetdata
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40175
diff changeset
452 '\xcd%4vk\xec\xe18\xc7\xc1\xaf\xdch%0/\x0fb\xd8\x1f'
41263df08109 wireprotov2: change how revisions are specified to changesetdata
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40175
diff changeset
453 ],
41263df08109 wireprotov2: change how revisions are specified to changesetdata
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40175
diff changeset
454 'type': 'changesetdagrange'
41263df08109 wireprotov2: change how revisions are specified to changesetdata
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40175
diff changeset
455 }
39633
ff2de4f2eb3c exchangev2: fetch and apply phases data
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39631
diff changeset
456 ]
ff2de4f2eb3c exchangev2: fetch and apply phases data
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39631
diff changeset
457 }
40138
b5bf3dd6ec5b wireprotov2: send content encoded frames from server
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40034
diff changeset
458 received frame(size=9; request=1; stream=2; streamflags=stream-begin; type=stream-settings; flags=eos)
b5bf3dd6ec5b wireprotov2: send content encoded frames from server
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40034
diff changeset
459 received frame(size=11; request=1; stream=2; streamflags=encoded; type=command-response; flags=continuation)
40175
6c42409691ec wireprotov2: stop sending phase updates for base revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40138
diff changeset
460 received frame(size=13; request=1; stream=2; streamflags=encoded; type=command-response; flags=continuation)
39633
ff2de4f2eb3c exchangev2: fetch and apply phases data
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39631
diff changeset
461 received frame(size=0; request=1; stream=2; streamflags=; type=command-response; flags=eos)
39635
349482d726ee exchangev2: fetch and apply bookmarks
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39633
diff changeset
462 checking for updated bookmarks
39631
b9e453d683a1 exchangev2: fetch changeset revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39629
diff changeset
463 (run 'hg update' to get a working copy)
40034
393e44324037 httppeer: report http statistics
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39814
diff changeset
464 (sent 3 HTTP requests and * bytes; received * bytes in responses) (glob)
39631
b9e453d683a1 exchangev2: fetch changeset revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39629
diff changeset
465
b9e453d683a1 exchangev2: fetch changeset revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39629
diff changeset
466 $ hg log -G -T '{rev} {node} {phase}\n'
40175
6c42409691ec wireprotov2: stop sending phase updates for base revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40138
diff changeset
467 o 4 caa2a465451dd1facda0f5b12312c355584188a1 draft
39631
b9e453d683a1 exchangev2: fetch changeset revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39629
diff changeset
468 |
40175
6c42409691ec wireprotov2: stop sending phase updates for base revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40138
diff changeset
469 o 3 e96ae20f4188487b9ae4ef3941c27c81143146e5 draft
39631
b9e453d683a1 exchangev2: fetch changeset revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39629
diff changeset
470 |
39633
ff2de4f2eb3c exchangev2: fetch and apply phases data
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39631
diff changeset
471 | o 2 cd2534766bece138c7c1afdc6825302f0f62d81f draft
39631
b9e453d683a1 exchangev2: fetch changeset revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39629
diff changeset
472 | |
b9e453d683a1 exchangev2: fetch changeset revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39629
diff changeset
473 | o 1 4432d83626e8a98655f062ec1f2a43b07f7fbbb0 public
b9e453d683a1 exchangev2: fetch changeset revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39629
diff changeset
474 |/
b9e453d683a1 exchangev2: fetch changeset revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39629
diff changeset
475 o 0 3390ef850073fbc2f0dfff2244342c8e9229013a public
b9e453d683a1 exchangev2: fetch changeset revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39629
diff changeset
476
b9e453d683a1 exchangev2: fetch changeset revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39629
diff changeset
477
b9e453d683a1 exchangev2: fetch changeset revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39629
diff changeset
478 $ cd ..
39635
349482d726ee exchangev2: fetch and apply bookmarks
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39633
diff changeset
479
349482d726ee exchangev2: fetch and apply bookmarks
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39633
diff changeset
480 Bookmarks are transferred on clone
349482d726ee exchangev2: fetch and apply bookmarks
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39633
diff changeset
481
349482d726ee exchangev2: fetch and apply bookmarks
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39633
diff changeset
482 $ hg -R server-simple bookmark -r 3390ef850073fbc2f0dfff2244342c8e9229013a book-1
349482d726ee exchangev2: fetch and apply bookmarks
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39633
diff changeset
483 $ hg -R server-simple bookmark -r cd2534766bece138c7c1afdc6825302f0f62d81f book-2
349482d726ee exchangev2: fetch and apply bookmarks
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39633
diff changeset
484
41682
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
485 Output is flaky, save it in a file and check part independently
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
486 $ hg --debug clone -U http://localhost:$HGPORT/ client-bookmarks > clone-output
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
487
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
488 $ cat clone-output | grep -v "received frame"
39635
349482d726ee exchangev2: fetch and apply bookmarks
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39633
diff changeset
489 using http://localhost:$HGPORT/
349482d726ee exchangev2: fetch and apply bookmarks
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39633
diff changeset
490 sending capabilities command
349482d726ee exchangev2: fetch and apply bookmarks
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39633
diff changeset
491 query 1; heads
349482d726ee exchangev2: fetch and apply bookmarks
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39633
diff changeset
492 sending 2 commands
349482d726ee exchangev2: fetch and apply bookmarks
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39633
diff changeset
493 sending command heads: {}
349482d726ee exchangev2: fetch and apply bookmarks
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39633
diff changeset
494 sending command known: {
349482d726ee exchangev2: fetch and apply bookmarks
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39633
diff changeset
495 'nodes': []
349482d726ee exchangev2: fetch and apply bookmarks
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39633
diff changeset
496 }
349482d726ee exchangev2: fetch and apply bookmarks
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39633
diff changeset
497 sending 1 commands
349482d726ee exchangev2: fetch and apply bookmarks
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39633
diff changeset
498 sending command changesetdata: {
349482d726ee exchangev2: fetch and apply bookmarks
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39633
diff changeset
499 'fields': set([
349482d726ee exchangev2: fetch and apply bookmarks
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39633
diff changeset
500 'bookmarks',
349482d726ee exchangev2: fetch and apply bookmarks
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39633
diff changeset
501 'parents',
349482d726ee exchangev2: fetch and apply bookmarks
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39633
diff changeset
502 'phase',
349482d726ee exchangev2: fetch and apply bookmarks
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39633
diff changeset
503 'revision'
349482d726ee exchangev2: fetch and apply bookmarks
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39633
diff changeset
504 ]),
40176
41263df08109 wireprotov2: change how revisions are specified to changesetdata
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40175
diff changeset
505 'revisions': [
41263df08109 wireprotov2: change how revisions are specified to changesetdata
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40175
diff changeset
506 {
41263df08109 wireprotov2: change how revisions are specified to changesetdata
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40175
diff changeset
507 'heads': [
41263df08109 wireprotov2: change how revisions are specified to changesetdata
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40175
diff changeset
508 '\xca\xa2\xa4eE\x1d\xd1\xfa\xcd\xa0\xf5\xb1#\x12\xc3UXA\x88\xa1',
41263df08109 wireprotov2: change how revisions are specified to changesetdata
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40175
diff changeset
509 '\xcd%4vk\xec\xe18\xc7\xc1\xaf\xdch%0/\x0fb\xd8\x1f'
41263df08109 wireprotov2: change how revisions are specified to changesetdata
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40175
diff changeset
510 ],
41263df08109 wireprotov2: change how revisions are specified to changesetdata
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40175
diff changeset
511 'roots': [],
41263df08109 wireprotov2: change how revisions are specified to changesetdata
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40175
diff changeset
512 'type': 'changesetdagrange'
41263df08109 wireprotov2: change how revisions are specified to changesetdata
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40175
diff changeset
513 }
39635
349482d726ee exchangev2: fetch and apply bookmarks
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39633
diff changeset
514 ]
349482d726ee exchangev2: fetch and apply bookmarks
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39633
diff changeset
515 }
349482d726ee exchangev2: fetch and apply bookmarks
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39633
diff changeset
516 add changeset 3390ef850073
349482d726ee exchangev2: fetch and apply bookmarks
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39633
diff changeset
517 add changeset 4432d83626e8
349482d726ee exchangev2: fetch and apply bookmarks
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39633
diff changeset
518 add changeset cd2534766bec
349482d726ee exchangev2: fetch and apply bookmarks
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39633
diff changeset
519 add changeset e96ae20f4188
349482d726ee exchangev2: fetch and apply bookmarks
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39633
diff changeset
520 add changeset caa2a465451d
349482d726ee exchangev2: fetch and apply bookmarks
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39633
diff changeset
521 checking for updated bookmarks
349482d726ee exchangev2: fetch and apply bookmarks
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39633
diff changeset
522 adding remote bookmark book-1
349482d726ee exchangev2: fetch and apply bookmarks
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39633
diff changeset
523 adding remote bookmark book-2
39638
d292328e0143 exchangev2: fetch manifest revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39635
diff changeset
524 sending 1 commands
d292328e0143 exchangev2: fetch manifest revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39635
diff changeset
525 sending command manifestdata: {
d292328e0143 exchangev2: fetch manifest revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39635
diff changeset
526 'fields': set([
d292328e0143 exchangev2: fetch manifest revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39635
diff changeset
527 'parents',
d292328e0143 exchangev2: fetch manifest revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39635
diff changeset
528 'revision'
d292328e0143 exchangev2: fetch manifest revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39635
diff changeset
529 ]),
39641
aa7e312375cf wireprotov2: let clients drive delta behavior
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39640
diff changeset
530 'haveparents': True,
39638
d292328e0143 exchangev2: fetch manifest revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39635
diff changeset
531 'nodes': [
d292328e0143 exchangev2: fetch manifest revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39635
diff changeset
532 '\x99/Gy\x02\x9a=\xf8\xd0fm\x00\xbb\x92OicN&A',
d292328e0143 exchangev2: fetch manifest revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39635
diff changeset
533 '\xa9\x88\xfbCX>\x87\x1d\x1e\xd5u\x0e\xe0t\xc6\xd8@\xbb\xbf\xc8',
d292328e0143 exchangev2: fetch manifest revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39635
diff changeset
534 '\xec\x80NH\x8c \x88\xc25\t\x9a\x10 u\x13\xbe\xcd\xc3\xdd\xa5',
d292328e0143 exchangev2: fetch manifest revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39635
diff changeset
535 '\x04\\\x7f9\'\xda\x13\xe7Z\xf8\xf0\xe4\xf0HI\xe4a\xa9x\x0f',
d292328e0143 exchangev2: fetch manifest revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39635
diff changeset
536 '7\x9c\xb0\xc2\xe6d\\y\xdd\xc5\x9a\x1dG\'\xa9\xfb\x83\n\xeb&'
d292328e0143 exchangev2: fetch manifest revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39635
diff changeset
537 ],
d292328e0143 exchangev2: fetch manifest revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39635
diff changeset
538 'tree': ''
d292328e0143 exchangev2: fetch manifest revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39635
diff changeset
539 }
40179
b843356d4ae1 exchangev2: use filesdata
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40176
diff changeset
540 sending 1 commands
b843356d4ae1 exchangev2: use filesdata
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40176
diff changeset
541 sending command filesdata: {
39640
039bf1eddc2e exchangev2: fetch file revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39638
diff changeset
542 'fields': set([
039bf1eddc2e exchangev2: fetch file revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39638
diff changeset
543 'parents',
039bf1eddc2e exchangev2: fetch file revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39638
diff changeset
544 'revision'
039bf1eddc2e exchangev2: fetch file revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39638
diff changeset
545 ]),
39641
aa7e312375cf wireprotov2: let clients drive delta behavior
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39640
diff changeset
546 'haveparents': True,
40179
b843356d4ae1 exchangev2: use filesdata
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40176
diff changeset
547 'revisions': [
b843356d4ae1 exchangev2: use filesdata
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40176
diff changeset
548 {
b843356d4ae1 exchangev2: use filesdata
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40176
diff changeset
549 'nodes': [
b843356d4ae1 exchangev2: use filesdata
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40176
diff changeset
550 '3\x90\xef\x85\x00s\xfb\xc2\xf0\xdf\xff"D4,\x8e\x92)\x01:',
b843356d4ae1 exchangev2: use filesdata
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40176
diff changeset
551 'D2\xd86&\xe8\xa9\x86U\xf0b\xec\x1f*C\xb0\x7f\x7f\xbb\xb0',
b843356d4ae1 exchangev2: use filesdata
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40176
diff changeset
552 '\xcd%4vk\xec\xe18\xc7\xc1\xaf\xdch%0/\x0fb\xd8\x1f',
b843356d4ae1 exchangev2: use filesdata
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40176
diff changeset
553 '\xe9j\xe2\x0fA\x88H{\x9a\xe4\xef9A\xc2|\x81\x141F\xe5',
b843356d4ae1 exchangev2: use filesdata
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40176
diff changeset
554 '\xca\xa2\xa4eE\x1d\xd1\xfa\xcd\xa0\xf5\xb1#\x12\xc3UXA\x88\xa1'
b843356d4ae1 exchangev2: use filesdata
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40176
diff changeset
555 ],
b843356d4ae1 exchangev2: use filesdata
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40176
diff changeset
556 'type': 'changesetexplicit'
b843356d4ae1 exchangev2: use filesdata
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40176
diff changeset
557 }
b843356d4ae1 exchangev2: use filesdata
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40176
diff changeset
558 ]
39640
039bf1eddc2e exchangev2: fetch file revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39638
diff changeset
559 }
41682
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
560 updating the branch cache
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
561 new changesets 3390ef850073:caa2a465451d (1 drafts)
46314
95a615dd77bf clone: make sure we warm the cache after a clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 42884
diff changeset
562 updating the branch cache
41682
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
563 (sent 5 HTTP requests and * bytes; received * bytes in responses) (glob)
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
564
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
565 $ cat clone-output | grep "received frame"
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
566 received frame(size=9; request=1; stream=2; streamflags=stream-begin; type=stream-settings; flags=eos)
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
567 received frame(size=11; request=1; stream=2; streamflags=encoded; type=command-response; flags=continuation)
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
568 received frame(size=43; request=1; stream=2; streamflags=encoded; type=command-response; flags=continuation)
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
569 received frame(size=0; request=1; stream=2; streamflags=; type=command-response; flags=eos)
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
570 received frame(size=11; request=3; stream=2; streamflags=encoded; type=command-response; flags=continuation)
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
571 received frame(size=1; request=3; stream=2; streamflags=encoded; type=command-response; flags=continuation)
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
572 received frame(size=0; request=3; stream=2; streamflags=; type=command-response; flags=eos)
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
573 received frame(size=9; request=1; stream=2; streamflags=stream-begin; type=stream-settings; flags=eos)
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
574 received frame(size=11; request=1; stream=2; streamflags=encoded; type=command-response; flags=continuation)
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
575 received frame(size=979; request=1; stream=2; streamflags=encoded; type=command-response; flags=continuation)
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
576 received frame(size=0; request=1; stream=2; streamflags=; type=command-response; flags=eos)
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
577 received frame(size=9; request=1; stream=2; streamflags=stream-begin; type=stream-settings; flags=eos)
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
578 received frame(size=11; request=1; stream=2; streamflags=encoded; type=command-response; flags=continuation)
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
579 received frame(size=992; request=1; stream=2; streamflags=encoded; type=command-response; flags=continuation)
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
580 received frame(size=0; request=1; stream=2; streamflags=; type=command-response; flags=eos)
40138
b5bf3dd6ec5b wireprotov2: send content encoded frames from server
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40034
diff changeset
581 received frame(size=9; request=1; stream=2; streamflags=stream-begin; type=stream-settings; flags=eos)
b5bf3dd6ec5b wireprotov2: send content encoded frames from server
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40034
diff changeset
582 received frame(size=11; request=1; stream=2; streamflags=encoded; type=command-response; flags=continuation)
40179
b843356d4ae1 exchangev2: use filesdata
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40176
diff changeset
583 received frame(size=901; request=1; stream=2; streamflags=encoded; type=command-response; flags=continuation)
39640
039bf1eddc2e exchangev2: fetch file revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39638
diff changeset
584 received frame(size=0; request=1; stream=2; streamflags=; type=command-response; flags=eos)
41682
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
585
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
586 $ rm clone-output
39635
349482d726ee exchangev2: fetch and apply bookmarks
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39633
diff changeset
587
349482d726ee exchangev2: fetch and apply bookmarks
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39633
diff changeset
588 $ hg -R client-bookmarks bookmarks
349482d726ee exchangev2: fetch and apply bookmarks
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39633
diff changeset
589 book-1 0:3390ef850073
349482d726ee exchangev2: fetch and apply bookmarks
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39633
diff changeset
590 book-2 2:cd2534766bec
349482d726ee exchangev2: fetch and apply bookmarks
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39633
diff changeset
591
349482d726ee exchangev2: fetch and apply bookmarks
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39633
diff changeset
592 Server-side bookmark moves are reflected during `hg pull`
349482d726ee exchangev2: fetch and apply bookmarks
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39633
diff changeset
593
349482d726ee exchangev2: fetch and apply bookmarks
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39633
diff changeset
594 $ hg -R server-simple bookmark -r cd2534766bece138c7c1afdc6825302f0f62d81f book-1
349482d726ee exchangev2: fetch and apply bookmarks
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39633
diff changeset
595 moving bookmark 'book-1' forward from 3390ef850073
349482d726ee exchangev2: fetch and apply bookmarks
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39633
diff changeset
596
41682
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
597 Output is flaky, save it in a file and check part independently
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
598 $ hg -R client-bookmarks --debug pull > pull-output
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
599
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
600 $ cat pull-output | grep -v "received frame"
39635
349482d726ee exchangev2: fetch and apply bookmarks
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39633
diff changeset
601 pulling from http://localhost:$HGPORT/
349482d726ee exchangev2: fetch and apply bookmarks
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39633
diff changeset
602 using http://localhost:$HGPORT/
349482d726ee exchangev2: fetch and apply bookmarks
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39633
diff changeset
603 sending capabilities command
349482d726ee exchangev2: fetch and apply bookmarks
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39633
diff changeset
604 query 1; heads
349482d726ee exchangev2: fetch and apply bookmarks
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39633
diff changeset
605 sending 2 commands
349482d726ee exchangev2: fetch and apply bookmarks
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39633
diff changeset
606 sending command heads: {}
349482d726ee exchangev2: fetch and apply bookmarks
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39633
diff changeset
607 sending command known: {
349482d726ee exchangev2: fetch and apply bookmarks
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39633
diff changeset
608 'nodes': [
349482d726ee exchangev2: fetch and apply bookmarks
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39633
diff changeset
609 '\xcd%4vk\xec\xe18\xc7\xc1\xaf\xdch%0/\x0fb\xd8\x1f',
349482d726ee exchangev2: fetch and apply bookmarks
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39633
diff changeset
610 '\xca\xa2\xa4eE\x1d\xd1\xfa\xcd\xa0\xf5\xb1#\x12\xc3UXA\x88\xa1'
349482d726ee exchangev2: fetch and apply bookmarks
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39633
diff changeset
611 ]
349482d726ee exchangev2: fetch and apply bookmarks
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39633
diff changeset
612 }
349482d726ee exchangev2: fetch and apply bookmarks
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39633
diff changeset
613 searching for changes
349482d726ee exchangev2: fetch and apply bookmarks
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39633
diff changeset
614 all remote heads known locally
349482d726ee exchangev2: fetch and apply bookmarks
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39633
diff changeset
615 sending 1 commands
349482d726ee exchangev2: fetch and apply bookmarks
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39633
diff changeset
616 sending command changesetdata: {
349482d726ee exchangev2: fetch and apply bookmarks
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39633
diff changeset
617 'fields': set([
349482d726ee exchangev2: fetch and apply bookmarks
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39633
diff changeset
618 'bookmarks',
349482d726ee exchangev2: fetch and apply bookmarks
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39633
diff changeset
619 'parents',
349482d726ee exchangev2: fetch and apply bookmarks
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39633
diff changeset
620 'phase',
349482d726ee exchangev2: fetch and apply bookmarks
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39633
diff changeset
621 'revision'
349482d726ee exchangev2: fetch and apply bookmarks
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39633
diff changeset
622 ]),
40176
41263df08109 wireprotov2: change how revisions are specified to changesetdata
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40175
diff changeset
623 'revisions': [
41263df08109 wireprotov2: change how revisions are specified to changesetdata
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40175
diff changeset
624 {
41263df08109 wireprotov2: change how revisions are specified to changesetdata
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40175
diff changeset
625 'heads': [
41263df08109 wireprotov2: change how revisions are specified to changesetdata
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40175
diff changeset
626 '\xca\xa2\xa4eE\x1d\xd1\xfa\xcd\xa0\xf5\xb1#\x12\xc3UXA\x88\xa1',
41263df08109 wireprotov2: change how revisions are specified to changesetdata
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40175
diff changeset
627 '\xcd%4vk\xec\xe18\xc7\xc1\xaf\xdch%0/\x0fb\xd8\x1f'
41263df08109 wireprotov2: change how revisions are specified to changesetdata
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40175
diff changeset
628 ],
41263df08109 wireprotov2: change how revisions are specified to changesetdata
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40175
diff changeset
629 'roots': [
41263df08109 wireprotov2: change how revisions are specified to changesetdata
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40175
diff changeset
630 '\xca\xa2\xa4eE\x1d\xd1\xfa\xcd\xa0\xf5\xb1#\x12\xc3UXA\x88\xa1',
41263df08109 wireprotov2: change how revisions are specified to changesetdata
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40175
diff changeset
631 '\xcd%4vk\xec\xe18\xc7\xc1\xaf\xdch%0/\x0fb\xd8\x1f'
41263df08109 wireprotov2: change how revisions are specified to changesetdata
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40175
diff changeset
632 ],
41263df08109 wireprotov2: change how revisions are specified to changesetdata
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40175
diff changeset
633 'type': 'changesetdagrange'
41263df08109 wireprotov2: change how revisions are specified to changesetdata
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40175
diff changeset
634 }
39635
349482d726ee exchangev2: fetch and apply bookmarks
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39633
diff changeset
635 ]
349482d726ee exchangev2: fetch and apply bookmarks
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39633
diff changeset
636 }
41682
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
637 checking for updated bookmarks
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
638 updating bookmark book-1
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
639 (run 'hg update' to get a working copy)
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
640 (sent 3 HTTP requests and * bytes; received * bytes in responses) (glob)
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
641
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
642 $ cat pull-output | grep "received frame"
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
643 received frame(size=9; request=1; stream=2; streamflags=stream-begin; type=stream-settings; flags=eos)
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
644 received frame(size=11; request=1; stream=2; streamflags=encoded; type=command-response; flags=continuation)
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
645 received frame(size=43; request=1; stream=2; streamflags=encoded; type=command-response; flags=continuation)
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
646 received frame(size=0; request=1; stream=2; streamflags=; type=command-response; flags=eos)
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
647 received frame(size=11; request=3; stream=2; streamflags=encoded; type=command-response; flags=continuation)
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
648 received frame(size=3; request=3; stream=2; streamflags=encoded; type=command-response; flags=continuation)
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
649 received frame(size=0; request=3; stream=2; streamflags=; type=command-response; flags=eos)
40138
b5bf3dd6ec5b wireprotov2: send content encoded frames from server
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40034
diff changeset
650 received frame(size=9; request=1; stream=2; streamflags=stream-begin; type=stream-settings; flags=eos)
b5bf3dd6ec5b wireprotov2: send content encoded frames from server
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40034
diff changeset
651 received frame(size=11; request=1; stream=2; streamflags=encoded; type=command-response; flags=continuation)
40175
6c42409691ec wireprotov2: stop sending phase updates for base revisions
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40138
diff changeset
652 received frame(size=65; request=1; stream=2; streamflags=encoded; type=command-response; flags=continuation)
39635
349482d726ee exchangev2: fetch and apply bookmarks
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39633
diff changeset
653 received frame(size=0; request=1; stream=2; streamflags=; type=command-response; flags=eos)
41682
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
654
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
655 $ rm pull-output
39635
349482d726ee exchangev2: fetch and apply bookmarks
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39633
diff changeset
656
349482d726ee exchangev2: fetch and apply bookmarks
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39633
diff changeset
657 $ hg -R client-bookmarks bookmarks
349482d726ee exchangev2: fetch and apply bookmarks
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39633
diff changeset
658 book-1 2:cd2534766bec
349482d726ee exchangev2: fetch and apply bookmarks
Gregory Szorc <gregory.szorc@gmail.com>
parents: 39633
diff changeset
659 book-2 2:cd2534766bec
40327
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
660
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
661 $ killdaemons.py
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
662
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
663 Let's set up a slightly more complicated server
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
664
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
665 $ hg init server-2
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
666 $ enablehttpv2 server-2
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
667 $ cd server-2
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
668 $ mkdir dir0 dir1
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
669 $ echo a0 > a
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
670 $ echo b0 > b
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
671 $ hg -q commit -A -m 'commit 0'
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
672 $ echo c0 > dir0/c
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
673 $ echo d0 > dir0/d
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
674 $ hg -q commit -A -m 'commit 1'
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
675 $ echo e0 > dir1/e
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
676 $ echo f0 > dir1/f
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
677 $ hg -q commit -A -m 'commit 2'
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
678 $ echo c1 > dir0/c
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
679 $ echo e1 > dir1/e
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
680 $ hg commit -m 'commit 3'
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
681 $ hg serve -p $HGPORT -d --pid-file hg.pid -E error.log
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
682 $ cat hg.pid > $DAEMON_PIDS
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
683
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
684 $ cd ..
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
685
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
686 Narrow clone only fetches some files
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
687
41682
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
688 Output is flaky, save it in a file and check part independently
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
689 $ hg --config extensions.pullext=$TESTDIR/pullext.py --debug clone -U --include dir0/ http://localhost:$HGPORT/ client-narrow-0 > clone-output
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
690
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
691 $ cat clone-output | grep -v "received frame"
40327
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
692 using http://localhost:$HGPORT/
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
693 sending capabilities command
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
694 query 1; heads
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
695 sending 2 commands
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
696 sending command heads: {}
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
697 sending command known: {
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
698 'nodes': []
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
699 }
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
700 sending 1 commands
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
701 sending command changesetdata: {
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
702 'fields': set([
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
703 'bookmarks',
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
704 'parents',
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
705 'phase',
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
706 'revision'
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
707 ]),
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
708 'revisions': [
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
709 {
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
710 'heads': [
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
711 '\x97v_\xc3\xcdbO\xd1\xfa\x01v\x93,!\xff\xd1j\xdfC.'
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
712 ],
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
713 'roots': [],
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
714 'type': 'changesetdagrange'
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
715 }
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
716 ]
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
717 }
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
718 add changeset 3390ef850073
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
719 add changeset b709380892b1
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
720 add changeset 47fe012ab237
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
721 add changeset 97765fc3cd62
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
722 checking for updated bookmarks
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
723 sending 1 commands
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
724 sending command manifestdata: {
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
725 'fields': set([
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
726 'parents',
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
727 'revision'
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
728 ]),
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
729 'haveparents': True,
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
730 'nodes': [
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
731 '\x99/Gy\x02\x9a=\xf8\xd0fm\x00\xbb\x92OicN&A',
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
732 '|2 \x1a\xa3\xa1R\xa9\xe6\xa9"+?\xa8\xd0\xe3\x0f\xc2V\xe8',
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
733 '\x8d\xd0W<\x7f\xaf\xe2\x04F\xcc\xea\xac\x05N\xea\xa4x\x91M\xdb',
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
734 '113\x85\xf2!\x8b\x08^\xb2Z\x821\x1e*\xdd\x0e\xeb\x8c3'
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
735 ],
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
736 'tree': ''
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
737 }
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
738 sending 1 commands
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
739 sending command filesdata: {
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
740 'fields': set([
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
741 'parents',
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
742 'revision'
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
743 ]),
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
744 'haveparents': True,
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
745 'pathfilter': {
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
746 'include': [
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
747 'path:dir0'
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
748 ]
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
749 },
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
750 'revisions': [
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
751 {
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
752 'nodes': [
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
753 '3\x90\xef\x85\x00s\xfb\xc2\xf0\xdf\xff"D4,\x8e\x92)\x01:',
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
754 '\xb7\t8\x08\x92\xb1\x93\xc1\t\x1d:\x81\x7fp`R\xe3F\x82\x1b',
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
755 'G\xfe\x01*\xb27\xa8\xc7\xfc\x0cx\xf9\xf2mXf\xee\xf3\xf8%',
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
756 '\x97v_\xc3\xcdbO\xd1\xfa\x01v\x93,!\xff\xd1j\xdfC.'
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
757 ],
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
758 'type': 'changesetexplicit'
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
759 }
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
760 ]
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
761 }
41682
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
762 updating the branch cache
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
763 new changesets 3390ef850073:97765fc3cd62
46314
95a615dd77bf clone: make sure we warm the cache after a clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 42884
diff changeset
764 updating the branch cache
41682
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
765 (sent 5 HTTP requests and * bytes; received * bytes in responses) (glob)
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
766
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
767 $ cat clone-output | grep "received frame"
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
768 received frame(size=9; request=1; stream=2; streamflags=stream-begin; type=stream-settings; flags=eos)
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
769 received frame(size=11; request=1; stream=2; streamflags=encoded; type=command-response; flags=continuation)
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
770 received frame(size=22; request=1; stream=2; streamflags=encoded; type=command-response; flags=continuation)
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
771 received frame(size=0; request=1; stream=2; streamflags=; type=command-response; flags=eos)
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
772 received frame(size=11; request=3; stream=2; streamflags=encoded; type=command-response; flags=continuation)
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
773 received frame(size=1; request=3; stream=2; streamflags=encoded; type=command-response; flags=continuation)
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
774 received frame(size=0; request=3; stream=2; streamflags=; type=command-response; flags=eos)
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
775 received frame(size=9; request=1; stream=2; streamflags=stream-begin; type=stream-settings; flags=eos)
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
776 received frame(size=11; request=1; stream=2; streamflags=encoded; type=command-response; flags=continuation)
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
777 received frame(size=783; request=1; stream=2; streamflags=encoded; type=command-response; flags=continuation)
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
778 received frame(size=0; request=1; stream=2; streamflags=; type=command-response; flags=eos)
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
779 received frame(size=9; request=1; stream=2; streamflags=stream-begin; type=stream-settings; flags=eos)
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
780 received frame(size=11; request=1; stream=2; streamflags=encoded; type=command-response; flags=continuation)
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
781 received frame(size=967; request=1; stream=2; streamflags=encoded; type=command-response; flags=continuation)
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
782 received frame(size=0; request=1; stream=2; streamflags=; type=command-response; flags=eos)
40327
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
783 received frame(size=9; request=1; stream=2; streamflags=stream-begin; type=stream-settings; flags=eos)
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
784 received frame(size=11; request=1; stream=2; streamflags=encoded; type=command-response; flags=continuation)
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
785 received frame(size=449; request=1; stream=2; streamflags=encoded; type=command-response; flags=continuation)
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
786 received frame(size=0; request=1; stream=2; streamflags=; type=command-response; flags=eos)
41682
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
787
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
788 $ rm clone-output
40327
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
789
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
790 #if reporevlogstore
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
791 $ find client-narrow-0/.hg/store -type f -name '*.i' | sort
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
792 client-narrow-0/.hg/store/00changelog.i
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
793 client-narrow-0/.hg/store/00manifest.i
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
794 client-narrow-0/.hg/store/data/dir0/c.i
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
795 client-narrow-0/.hg/store/data/dir0/d.i
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
796 #endif
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
797
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
798 --exclude by itself works
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
799
41682
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
800 Output is flaky, save it in a file and check part independently
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
801 $ hg --config extensions.pullext=$TESTDIR/pullext.py --debug clone -U --exclude dir0/ http://localhost:$HGPORT/ client-narrow-1 > clone-output
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
802
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
803 $ cat clone-output | grep -v "received frame"
40327
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
804 using http://localhost:$HGPORT/
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
805 sending capabilities command
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
806 query 1; heads
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
807 sending 2 commands
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
808 sending command heads: {}
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
809 sending command known: {
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
810 'nodes': []
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
811 }
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
812 sending 1 commands
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
813 sending command changesetdata: {
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
814 'fields': set([
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
815 'bookmarks',
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
816 'parents',
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
817 'phase',
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
818 'revision'
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
819 ]),
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
820 'revisions': [
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
821 {
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
822 'heads': [
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
823 '\x97v_\xc3\xcdbO\xd1\xfa\x01v\x93,!\xff\xd1j\xdfC.'
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
824 ],
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
825 'roots': [],
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
826 'type': 'changesetdagrange'
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
827 }
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
828 ]
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
829 }
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
830 add changeset 3390ef850073
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
831 add changeset b709380892b1
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
832 add changeset 47fe012ab237
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
833 add changeset 97765fc3cd62
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
834 checking for updated bookmarks
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
835 sending 1 commands
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
836 sending command manifestdata: {
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
837 'fields': set([
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
838 'parents',
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
839 'revision'
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
840 ]),
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
841 'haveparents': True,
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
842 'nodes': [
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
843 '\x99/Gy\x02\x9a=\xf8\xd0fm\x00\xbb\x92OicN&A',
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
844 '|2 \x1a\xa3\xa1R\xa9\xe6\xa9"+?\xa8\xd0\xe3\x0f\xc2V\xe8',
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
845 '\x8d\xd0W<\x7f\xaf\xe2\x04F\xcc\xea\xac\x05N\xea\xa4x\x91M\xdb',
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
846 '113\x85\xf2!\x8b\x08^\xb2Z\x821\x1e*\xdd\x0e\xeb\x8c3'
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
847 ],
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
848 'tree': ''
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
849 }
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
850 sending 1 commands
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
851 sending command filesdata: {
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
852 'fields': set([
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
853 'parents',
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
854 'revision'
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
855 ]),
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
856 'haveparents': True,
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
857 'pathfilter': {
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
858 'exclude': [
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
859 'path:dir0'
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
860 ],
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
861 'include': [
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
862 'path:.'
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
863 ]
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
864 },
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
865 'revisions': [
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
866 {
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
867 'nodes': [
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
868 '3\x90\xef\x85\x00s\xfb\xc2\xf0\xdf\xff"D4,\x8e\x92)\x01:',
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
869 '\xb7\t8\x08\x92\xb1\x93\xc1\t\x1d:\x81\x7fp`R\xe3F\x82\x1b',
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
870 'G\xfe\x01*\xb27\xa8\xc7\xfc\x0cx\xf9\xf2mXf\xee\xf3\xf8%',
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
871 '\x97v_\xc3\xcdbO\xd1\xfa\x01v\x93,!\xff\xd1j\xdfC.'
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
872 ],
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
873 'type': 'changesetexplicit'
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
874 }
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
875 ]
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
876 }
41682
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
877 updating the branch cache
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
878 new changesets 3390ef850073:97765fc3cd62
46314
95a615dd77bf clone: make sure we warm the cache after a clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 42884
diff changeset
879 updating the branch cache
41682
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
880 (sent 5 HTTP requests and * bytes; received * bytes in responses) (glob)
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
881
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
882 $ cat clone-output | grep "received frame"
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
883 received frame(size=9; request=1; stream=2; streamflags=stream-begin; type=stream-settings; flags=eos)
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
884 received frame(size=11; request=1; stream=2; streamflags=encoded; type=command-response; flags=continuation)
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
885 received frame(size=22; request=1; stream=2; streamflags=encoded; type=command-response; flags=continuation)
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
886 received frame(size=0; request=1; stream=2; streamflags=; type=command-response; flags=eos)
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
887 received frame(size=11; request=3; stream=2; streamflags=encoded; type=command-response; flags=continuation)
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
888 received frame(size=1; request=3; stream=2; streamflags=encoded; type=command-response; flags=continuation)
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
889 received frame(size=0; request=3; stream=2; streamflags=; type=command-response; flags=eos)
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
890 received frame(size=9; request=1; stream=2; streamflags=stream-begin; type=stream-settings; flags=eos)
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
891 received frame(size=11; request=1; stream=2; streamflags=encoded; type=command-response; flags=continuation)
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
892 received frame(size=783; request=1; stream=2; streamflags=encoded; type=command-response; flags=continuation)
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
893 received frame(size=0; request=1; stream=2; streamflags=; type=command-response; flags=eos)
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
894 received frame(size=9; request=1; stream=2; streamflags=stream-begin; type=stream-settings; flags=eos)
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
895 received frame(size=11; request=1; stream=2; streamflags=encoded; type=command-response; flags=continuation)
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
896 received frame(size=967; request=1; stream=2; streamflags=encoded; type=command-response; flags=continuation)
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
897 received frame(size=0; request=1; stream=2; streamflags=; type=command-response; flags=eos)
40327
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
898 received frame(size=9; request=1; stream=2; streamflags=stream-begin; type=stream-settings; flags=eos)
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
899 received frame(size=11; request=1; stream=2; streamflags=encoded; type=command-response; flags=continuation)
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
900 received frame(size=709; request=1; stream=2; streamflags=encoded; type=command-response; flags=continuation)
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
901 received frame(size=0; request=1; stream=2; streamflags=; type=command-response; flags=eos)
41682
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
902
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
903 $ rm clone-output
40327
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
904
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
905 #if reporevlogstore
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
906 $ find client-narrow-1/.hg/store -type f -name '*.i' | sort
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
907 client-narrow-1/.hg/store/00changelog.i
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
908 client-narrow-1/.hg/store/00manifest.i
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
909 client-narrow-1/.hg/store/data/a.i
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
910 client-narrow-1/.hg/store/data/b.i
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
911 client-narrow-1/.hg/store/data/dir1/e.i
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
912 client-narrow-1/.hg/store/data/dir1/f.i
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
913 #endif
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
914
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
915 Mixing --include and --exclude works
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
916
41682
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
917 Output is flaky, save it in a file and check part independently
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
918 $ hg --config extensions.pullext=$TESTDIR/pullext.py --debug clone -U --include dir0/ --exclude dir0/c http://localhost:$HGPORT/ client-narrow-2 > clone-output
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
919
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
920 $ cat clone-output | grep -v "received frame"
40327
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
921 using http://localhost:$HGPORT/
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
922 sending capabilities command
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
923 query 1; heads
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
924 sending 2 commands
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
925 sending command heads: {}
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
926 sending command known: {
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
927 'nodes': []
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
928 }
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
929 sending 1 commands
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
930 sending command changesetdata: {
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
931 'fields': set([
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
932 'bookmarks',
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
933 'parents',
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
934 'phase',
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
935 'revision'
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
936 ]),
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
937 'revisions': [
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
938 {
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
939 'heads': [
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
940 '\x97v_\xc3\xcdbO\xd1\xfa\x01v\x93,!\xff\xd1j\xdfC.'
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
941 ],
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
942 'roots': [],
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
943 'type': 'changesetdagrange'
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
944 }
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
945 ]
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
946 }
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
947 add changeset 3390ef850073
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
948 add changeset b709380892b1
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
949 add changeset 47fe012ab237
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
950 add changeset 97765fc3cd62
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
951 checking for updated bookmarks
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
952 sending 1 commands
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
953 sending command manifestdata: {
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
954 'fields': set([
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
955 'parents',
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
956 'revision'
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
957 ]),
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
958 'haveparents': True,
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
959 'nodes': [
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
960 '\x99/Gy\x02\x9a=\xf8\xd0fm\x00\xbb\x92OicN&A',
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
961 '|2 \x1a\xa3\xa1R\xa9\xe6\xa9"+?\xa8\xd0\xe3\x0f\xc2V\xe8',
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
962 '\x8d\xd0W<\x7f\xaf\xe2\x04F\xcc\xea\xac\x05N\xea\xa4x\x91M\xdb',
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
963 '113\x85\xf2!\x8b\x08^\xb2Z\x821\x1e*\xdd\x0e\xeb\x8c3'
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
964 ],
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
965 'tree': ''
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
966 }
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
967 sending 1 commands
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
968 sending command filesdata: {
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
969 'fields': set([
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
970 'parents',
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
971 'revision'
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
972 ]),
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
973 'haveparents': True,
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
974 'pathfilter': {
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
975 'exclude': [
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
976 'path:dir0/c'
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
977 ],
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
978 'include': [
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
979 'path:dir0'
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
980 ]
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
981 },
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
982 'revisions': [
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
983 {
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
984 'nodes': [
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
985 '3\x90\xef\x85\x00s\xfb\xc2\xf0\xdf\xff"D4,\x8e\x92)\x01:',
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
986 '\xb7\t8\x08\x92\xb1\x93\xc1\t\x1d:\x81\x7fp`R\xe3F\x82\x1b',
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
987 'G\xfe\x01*\xb27\xa8\xc7\xfc\x0cx\xf9\xf2mXf\xee\xf3\xf8%',
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
988 '\x97v_\xc3\xcdbO\xd1\xfa\x01v\x93,!\xff\xd1j\xdfC.'
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
989 ],
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
990 'type': 'changesetexplicit'
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
991 }
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
992 ]
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
993 }
41682
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
994 updating the branch cache
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
995 new changesets 3390ef850073:97765fc3cd62
46314
95a615dd77bf clone: make sure we warm the cache after a clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 42884
diff changeset
996 updating the branch cache
41682
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
997 (sent 5 HTTP requests and * bytes; received * bytes in responses) (glob)
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
998
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
999 $ cat clone-output | grep "received frame"
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
1000 received frame(size=9; request=1; stream=2; streamflags=stream-begin; type=stream-settings; flags=eos)
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
1001 received frame(size=11; request=1; stream=2; streamflags=encoded; type=command-response; flags=continuation)
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
1002 received frame(size=22; request=1; stream=2; streamflags=encoded; type=command-response; flags=continuation)
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
1003 received frame(size=0; request=1; stream=2; streamflags=; type=command-response; flags=eos)
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
1004 received frame(size=11; request=3; stream=2; streamflags=encoded; type=command-response; flags=continuation)
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
1005 received frame(size=1; request=3; stream=2; streamflags=encoded; type=command-response; flags=continuation)
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
1006 received frame(size=0; request=3; stream=2; streamflags=; type=command-response; flags=eos)
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
1007 received frame(size=9; request=1; stream=2; streamflags=stream-begin; type=stream-settings; flags=eos)
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
1008 received frame(size=11; request=1; stream=2; streamflags=encoded; type=command-response; flags=continuation)
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
1009 received frame(size=783; request=1; stream=2; streamflags=encoded; type=command-response; flags=continuation)
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
1010 received frame(size=0; request=1; stream=2; streamflags=; type=command-response; flags=eos)
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
1011 received frame(size=9; request=1; stream=2; streamflags=stream-begin; type=stream-settings; flags=eos)
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
1012 received frame(size=11; request=1; stream=2; streamflags=encoded; type=command-response; flags=continuation)
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
1013 received frame(size=967; request=1; stream=2; streamflags=encoded; type=command-response; flags=continuation)
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
1014 received frame(size=0; request=1; stream=2; streamflags=; type=command-response; flags=eos)
40327
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
1015 received frame(size=9; request=1; stream=2; streamflags=stream-begin; type=stream-settings; flags=eos)
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
1016 received frame(size=11; request=1; stream=2; streamflags=encoded; type=command-response; flags=continuation)
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
1017 received frame(size=160; request=1; stream=2; streamflags=encoded; type=command-response; flags=continuation)
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
1018 received frame(size=0; request=1; stream=2; streamflags=; type=command-response; flags=eos)
41682
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
1019
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
1020 $ rm clone-output
40327
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
1021
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
1022 #if reporevlogstore
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
1023 $ find client-narrow-2/.hg/store -type f -name '*.i' | sort
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
1024 client-narrow-2/.hg/store/00changelog.i
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
1025 client-narrow-2/.hg/store/00manifest.i
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
1026 client-narrow-2/.hg/store/data/dir0/d.i
55836a34f41b exchangev2: recognize narrow patterns when pulling
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40179
diff changeset
1027 #endif
40330
00a4cd368e3f exchangev2: support for calling rawstorefiledata to retrieve raw files
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40327
diff changeset
1028
00a4cd368e3f exchangev2: support for calling rawstorefiledata to retrieve raw files
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40327
diff changeset
1029 --stream will use rawfiledata to transfer changelog and manifestlog, then
00a4cd368e3f exchangev2: support for calling rawstorefiledata to retrieve raw files
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40327
diff changeset
1030 fall through to get files data
00a4cd368e3f exchangev2: support for calling rawstorefiledata to retrieve raw files
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40327
diff changeset
1031
41682
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
1032 Output is flaky, save it in a file and check part independently
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
1033 $ hg --debug clone --stream -U http://localhost:$HGPORT client-stream-0 > clone-output
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
1034
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
1035 $ cat clone-output | grep -v "received frame"
40330
00a4cd368e3f exchangev2: support for calling rawstorefiledata to retrieve raw files
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40327
diff changeset
1036 using http://localhost:$HGPORT/
00a4cd368e3f exchangev2: support for calling rawstorefiledata to retrieve raw files
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40327
diff changeset
1037 sending capabilities command
00a4cd368e3f exchangev2: support for calling rawstorefiledata to retrieve raw files
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40327
diff changeset
1038 sending 1 commands
00a4cd368e3f exchangev2: support for calling rawstorefiledata to retrieve raw files
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40327
diff changeset
1039 sending command rawstorefiledata: {
00a4cd368e3f exchangev2: support for calling rawstorefiledata to retrieve raw files
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40327
diff changeset
1040 'files': [
00a4cd368e3f exchangev2: support for calling rawstorefiledata to retrieve raw files
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40327
diff changeset
1041 'changelog',
00a4cd368e3f exchangev2: support for calling rawstorefiledata to retrieve raw files
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40327
diff changeset
1042 'manifestlog'
00a4cd368e3f exchangev2: support for calling rawstorefiledata to retrieve raw files
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40327
diff changeset
1043 ]
00a4cd368e3f exchangev2: support for calling rawstorefiledata to retrieve raw files
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40327
diff changeset
1044 }
00a4cd368e3f exchangev2: support for calling rawstorefiledata to retrieve raw files
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40327
diff changeset
1045 updating the branch cache
00a4cd368e3f exchangev2: support for calling rawstorefiledata to retrieve raw files
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40327
diff changeset
1046 query 1; heads
00a4cd368e3f exchangev2: support for calling rawstorefiledata to retrieve raw files
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40327
diff changeset
1047 sending 2 commands
00a4cd368e3f exchangev2: support for calling rawstorefiledata to retrieve raw files
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40327
diff changeset
1048 sending command heads: {}
00a4cd368e3f exchangev2: support for calling rawstorefiledata to retrieve raw files
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40327
diff changeset
1049 sending command known: {
00a4cd368e3f exchangev2: support for calling rawstorefiledata to retrieve raw files
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40327
diff changeset
1050 'nodes': [
00a4cd368e3f exchangev2: support for calling rawstorefiledata to retrieve raw files
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40327
diff changeset
1051 '\x97v_\xc3\xcdbO\xd1\xfa\x01v\x93,!\xff\xd1j\xdfC.'
00a4cd368e3f exchangev2: support for calling rawstorefiledata to retrieve raw files
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40327
diff changeset
1052 ]
00a4cd368e3f exchangev2: support for calling rawstorefiledata to retrieve raw files
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40327
diff changeset
1053 }
00a4cd368e3f exchangev2: support for calling rawstorefiledata to retrieve raw files
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40327
diff changeset
1054 searching for changes
00a4cd368e3f exchangev2: support for calling rawstorefiledata to retrieve raw files
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40327
diff changeset
1055 all remote heads known locally
00a4cd368e3f exchangev2: support for calling rawstorefiledata to retrieve raw files
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40327
diff changeset
1056 sending 1 commands
00a4cd368e3f exchangev2: support for calling rawstorefiledata to retrieve raw files
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40327
diff changeset
1057 sending command changesetdata: {
00a4cd368e3f exchangev2: support for calling rawstorefiledata to retrieve raw files
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40327
diff changeset
1058 'fields': set([
00a4cd368e3f exchangev2: support for calling rawstorefiledata to retrieve raw files
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40327
diff changeset
1059 'bookmarks',
00a4cd368e3f exchangev2: support for calling rawstorefiledata to retrieve raw files
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40327
diff changeset
1060 'parents',
00a4cd368e3f exchangev2: support for calling rawstorefiledata to retrieve raw files
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40327
diff changeset
1061 'phase',
00a4cd368e3f exchangev2: support for calling rawstorefiledata to retrieve raw files
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40327
diff changeset
1062 'revision'
00a4cd368e3f exchangev2: support for calling rawstorefiledata to retrieve raw files
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40327
diff changeset
1063 ]),
00a4cd368e3f exchangev2: support for calling rawstorefiledata to retrieve raw files
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40327
diff changeset
1064 'revisions': [
00a4cd368e3f exchangev2: support for calling rawstorefiledata to retrieve raw files
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40327
diff changeset
1065 {
00a4cd368e3f exchangev2: support for calling rawstorefiledata to retrieve raw files
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40327
diff changeset
1066 'heads': [
00a4cd368e3f exchangev2: support for calling rawstorefiledata to retrieve raw files
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40327
diff changeset
1067 '\x97v_\xc3\xcdbO\xd1\xfa\x01v\x93,!\xff\xd1j\xdfC.'
00a4cd368e3f exchangev2: support for calling rawstorefiledata to retrieve raw files
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40327
diff changeset
1068 ],
00a4cd368e3f exchangev2: support for calling rawstorefiledata to retrieve raw files
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40327
diff changeset
1069 'roots': [
00a4cd368e3f exchangev2: support for calling rawstorefiledata to retrieve raw files
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40327
diff changeset
1070 '\x97v_\xc3\xcdbO\xd1\xfa\x01v\x93,!\xff\xd1j\xdfC.'
00a4cd368e3f exchangev2: support for calling rawstorefiledata to retrieve raw files
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40327
diff changeset
1071 ],
00a4cd368e3f exchangev2: support for calling rawstorefiledata to retrieve raw files
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40327
diff changeset
1072 'type': 'changesetdagrange'
00a4cd368e3f exchangev2: support for calling rawstorefiledata to retrieve raw files
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40327
diff changeset
1073 }
00a4cd368e3f exchangev2: support for calling rawstorefiledata to retrieve raw files
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40327
diff changeset
1074 ]
00a4cd368e3f exchangev2: support for calling rawstorefiledata to retrieve raw files
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40327
diff changeset
1075 }
00a4cd368e3f exchangev2: support for calling rawstorefiledata to retrieve raw files
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40327
diff changeset
1076 checking for updated bookmarks
00a4cd368e3f exchangev2: support for calling rawstorefiledata to retrieve raw files
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40327
diff changeset
1077 sending 1 commands
00a4cd368e3f exchangev2: support for calling rawstorefiledata to retrieve raw files
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40327
diff changeset
1078 sending command filesdata: {
00a4cd368e3f exchangev2: support for calling rawstorefiledata to retrieve raw files
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40327
diff changeset
1079 'fields': set([
00a4cd368e3f exchangev2: support for calling rawstorefiledata to retrieve raw files
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40327
diff changeset
1080 'parents',
00a4cd368e3f exchangev2: support for calling rawstorefiledata to retrieve raw files
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40327
diff changeset
1081 'revision'
00a4cd368e3f exchangev2: support for calling rawstorefiledata to retrieve raw files
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40327
diff changeset
1082 ]),
00a4cd368e3f exchangev2: support for calling rawstorefiledata to retrieve raw files
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40327
diff changeset
1083 'haveparents': True,
00a4cd368e3f exchangev2: support for calling rawstorefiledata to retrieve raw files
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40327
diff changeset
1084 'revisions': [
00a4cd368e3f exchangev2: support for calling rawstorefiledata to retrieve raw files
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40327
diff changeset
1085 {
00a4cd368e3f exchangev2: support for calling rawstorefiledata to retrieve raw files
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40327
diff changeset
1086 'nodes': [
00a4cd368e3f exchangev2: support for calling rawstorefiledata to retrieve raw files
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40327
diff changeset
1087 '3\x90\xef\x85\x00s\xfb\xc2\xf0\xdf\xff"D4,\x8e\x92)\x01:',
00a4cd368e3f exchangev2: support for calling rawstorefiledata to retrieve raw files
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40327
diff changeset
1088 '\xb7\t8\x08\x92\xb1\x93\xc1\t\x1d:\x81\x7fp`R\xe3F\x82\x1b',
00a4cd368e3f exchangev2: support for calling rawstorefiledata to retrieve raw files
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40327
diff changeset
1089 'G\xfe\x01*\xb27\xa8\xc7\xfc\x0cx\xf9\xf2mXf\xee\xf3\xf8%',
00a4cd368e3f exchangev2: support for calling rawstorefiledata to retrieve raw files
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40327
diff changeset
1090 '\x97v_\xc3\xcdbO\xd1\xfa\x01v\x93,!\xff\xd1j\xdfC.'
00a4cd368e3f exchangev2: support for calling rawstorefiledata to retrieve raw files
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40327
diff changeset
1091 ],
00a4cd368e3f exchangev2: support for calling rawstorefiledata to retrieve raw files
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40327
diff changeset
1092 'type': 'changesetexplicit'
00a4cd368e3f exchangev2: support for calling rawstorefiledata to retrieve raw files
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40327
diff changeset
1093 }
00a4cd368e3f exchangev2: support for calling rawstorefiledata to retrieve raw files
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40327
diff changeset
1094 ]
00a4cd368e3f exchangev2: support for calling rawstorefiledata to retrieve raw files
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40327
diff changeset
1095 }
46314
95a615dd77bf clone: make sure we warm the cache after a clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 42884
diff changeset
1096 updating the branch cache
41682
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
1097 (sent 5 HTTP requests and * bytes; received * bytes in responses) (glob)
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
1098
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
1099 $ cat clone-output | grep "received frame"
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
1100 received frame(size=9; request=1; stream=2; streamflags=stream-begin; type=stream-settings; flags=eos)
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
1101 received frame(size=11; request=1; stream=2; streamflags=encoded; type=command-response; flags=continuation)
46874
84a93fa7ecfd revlog-compression: use zstd by default (if available)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 46314
diff changeset
1102 received frame(size=1275; request=1; stream=2; streamflags=encoded; type=command-response; flags=continuation) (no-zstd !)
84a93fa7ecfd revlog-compression: use zstd by default (if available)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 46314
diff changeset
1103 received frame(size=1283; request=1; stream=2; streamflags=encoded; type=command-response; flags=continuation) (zstd !)
41682
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
1104 received frame(size=0; request=1; stream=2; streamflags=; type=command-response; flags=eos)
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
1105 received frame(size=9; request=1; stream=2; streamflags=stream-begin; type=stream-settings; flags=eos)
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
1106 received frame(size=11; request=1; stream=2; streamflags=encoded; type=command-response; flags=continuation)
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
1107 received frame(size=22; request=1; stream=2; streamflags=encoded; type=command-response; flags=continuation)
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
1108 received frame(size=0; request=1; stream=2; streamflags=; type=command-response; flags=eos)
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
1109 received frame(size=11; request=3; stream=2; streamflags=encoded; type=command-response; flags=continuation)
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
1110 received frame(size=2; request=3; stream=2; streamflags=encoded; type=command-response; flags=continuation)
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
1111 received frame(size=0; request=3; stream=2; streamflags=; type=command-response; flags=eos)
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
1112 received frame(size=9; request=1; stream=2; streamflags=stream-begin; type=stream-settings; flags=eos)
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
1113 received frame(size=11; request=1; stream=2; streamflags=encoded; type=command-response; flags=continuation)
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
1114 received frame(size=13; request=1; stream=2; streamflags=encoded; type=command-response; flags=continuation)
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
1115 received frame(size=0; request=1; stream=2; streamflags=; type=command-response; flags=eos)
40330
00a4cd368e3f exchangev2: support for calling rawstorefiledata to retrieve raw files
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40327
diff changeset
1116 received frame(size=9; request=1; stream=2; streamflags=stream-begin; type=stream-settings; flags=eos)
00a4cd368e3f exchangev2: support for calling rawstorefiledata to retrieve raw files
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40327
diff changeset
1117 received frame(size=11; request=1; stream=2; streamflags=encoded; type=command-response; flags=continuation)
00a4cd368e3f exchangev2: support for calling rawstorefiledata to retrieve raw files
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40327
diff changeset
1118 received frame(size=1133; request=1; stream=2; streamflags=encoded; type=command-response; flags=continuation)
00a4cd368e3f exchangev2: support for calling rawstorefiledata to retrieve raw files
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40327
diff changeset
1119 received frame(size=0; request=1; stream=2; streamflags=; type=command-response; flags=eos)
41682
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
1120
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
1121 $ rm clone-output
40330
00a4cd368e3f exchangev2: support for calling rawstorefiledata to retrieve raw files
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40327
diff changeset
1122
00a4cd368e3f exchangev2: support for calling rawstorefiledata to retrieve raw files
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40327
diff changeset
1123 --stream + --include/--exclude will only obtain some files
00a4cd368e3f exchangev2: support for calling rawstorefiledata to retrieve raw files
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40327
diff changeset
1124
41682
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
1125 Output is flaky, save it in a file and check part independently
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
1126 $ hg --debug --config extensions.pullext=$TESTDIR/pullext.py clone --stream --include dir0/ -U http://localhost:$HGPORT client-stream-2 > clone-output
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
1127
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
1128 $ cat clone-output | grep -v "received frame"
40330
00a4cd368e3f exchangev2: support for calling rawstorefiledata to retrieve raw files
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40327
diff changeset
1129 using http://localhost:$HGPORT/
00a4cd368e3f exchangev2: support for calling rawstorefiledata to retrieve raw files
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40327
diff changeset
1130 sending capabilities command
00a4cd368e3f exchangev2: support for calling rawstorefiledata to retrieve raw files
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40327
diff changeset
1131 sending 1 commands
00a4cd368e3f exchangev2: support for calling rawstorefiledata to retrieve raw files
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40327
diff changeset
1132 sending command rawstorefiledata: {
00a4cd368e3f exchangev2: support for calling rawstorefiledata to retrieve raw files
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40327
diff changeset
1133 'files': [
00a4cd368e3f exchangev2: support for calling rawstorefiledata to retrieve raw files
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40327
diff changeset
1134 'changelog',
00a4cd368e3f exchangev2: support for calling rawstorefiledata to retrieve raw files
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40327
diff changeset
1135 'manifestlog'
00a4cd368e3f exchangev2: support for calling rawstorefiledata to retrieve raw files
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40327
diff changeset
1136 ]
00a4cd368e3f exchangev2: support for calling rawstorefiledata to retrieve raw files
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40327
diff changeset
1137 }
00a4cd368e3f exchangev2: support for calling rawstorefiledata to retrieve raw files
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40327
diff changeset
1138 updating the branch cache
00a4cd368e3f exchangev2: support for calling rawstorefiledata to retrieve raw files
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40327
diff changeset
1139 query 1; heads
00a4cd368e3f exchangev2: support for calling rawstorefiledata to retrieve raw files
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40327
diff changeset
1140 sending 2 commands
00a4cd368e3f exchangev2: support for calling rawstorefiledata to retrieve raw files
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40327
diff changeset
1141 sending command heads: {}
00a4cd368e3f exchangev2: support for calling rawstorefiledata to retrieve raw files
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40327
diff changeset
1142 sending command known: {
00a4cd368e3f exchangev2: support for calling rawstorefiledata to retrieve raw files
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40327
diff changeset
1143 'nodes': [
00a4cd368e3f exchangev2: support for calling rawstorefiledata to retrieve raw files
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40327
diff changeset
1144 '\x97v_\xc3\xcdbO\xd1\xfa\x01v\x93,!\xff\xd1j\xdfC.'
00a4cd368e3f exchangev2: support for calling rawstorefiledata to retrieve raw files
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40327
diff changeset
1145 ]
00a4cd368e3f exchangev2: support for calling rawstorefiledata to retrieve raw files
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40327
diff changeset
1146 }
00a4cd368e3f exchangev2: support for calling rawstorefiledata to retrieve raw files
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40327
diff changeset
1147 searching for changes
00a4cd368e3f exchangev2: support for calling rawstorefiledata to retrieve raw files
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40327
diff changeset
1148 all remote heads known locally
00a4cd368e3f exchangev2: support for calling rawstorefiledata to retrieve raw files
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40327
diff changeset
1149 sending 1 commands
00a4cd368e3f exchangev2: support for calling rawstorefiledata to retrieve raw files
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40327
diff changeset
1150 sending command changesetdata: {
00a4cd368e3f exchangev2: support for calling rawstorefiledata to retrieve raw files
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40327
diff changeset
1151 'fields': set([
00a4cd368e3f exchangev2: support for calling rawstorefiledata to retrieve raw files
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40327
diff changeset
1152 'bookmarks',
00a4cd368e3f exchangev2: support for calling rawstorefiledata to retrieve raw files
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40327
diff changeset
1153 'parents',
00a4cd368e3f exchangev2: support for calling rawstorefiledata to retrieve raw files
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40327
diff changeset
1154 'phase',
00a4cd368e3f exchangev2: support for calling rawstorefiledata to retrieve raw files
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40327
diff changeset
1155 'revision'
00a4cd368e3f exchangev2: support for calling rawstorefiledata to retrieve raw files
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40327
diff changeset
1156 ]),
00a4cd368e3f exchangev2: support for calling rawstorefiledata to retrieve raw files
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40327
diff changeset
1157 'revisions': [
00a4cd368e3f exchangev2: support for calling rawstorefiledata to retrieve raw files
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40327
diff changeset
1158 {
00a4cd368e3f exchangev2: support for calling rawstorefiledata to retrieve raw files
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40327
diff changeset
1159 'heads': [
00a4cd368e3f exchangev2: support for calling rawstorefiledata to retrieve raw files
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40327
diff changeset
1160 '\x97v_\xc3\xcdbO\xd1\xfa\x01v\x93,!\xff\xd1j\xdfC.'
00a4cd368e3f exchangev2: support for calling rawstorefiledata to retrieve raw files
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40327
diff changeset
1161 ],
00a4cd368e3f exchangev2: support for calling rawstorefiledata to retrieve raw files
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40327
diff changeset
1162 'roots': [
00a4cd368e3f exchangev2: support for calling rawstorefiledata to retrieve raw files
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40327
diff changeset
1163 '\x97v_\xc3\xcdbO\xd1\xfa\x01v\x93,!\xff\xd1j\xdfC.'
00a4cd368e3f exchangev2: support for calling rawstorefiledata to retrieve raw files
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40327
diff changeset
1164 ],
00a4cd368e3f exchangev2: support for calling rawstorefiledata to retrieve raw files
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40327
diff changeset
1165 'type': 'changesetdagrange'
00a4cd368e3f exchangev2: support for calling rawstorefiledata to retrieve raw files
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40327
diff changeset
1166 }
00a4cd368e3f exchangev2: support for calling rawstorefiledata to retrieve raw files
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40327
diff changeset
1167 ]
00a4cd368e3f exchangev2: support for calling rawstorefiledata to retrieve raw files
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40327
diff changeset
1168 }
00a4cd368e3f exchangev2: support for calling rawstorefiledata to retrieve raw files
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40327
diff changeset
1169 checking for updated bookmarks
00a4cd368e3f exchangev2: support for calling rawstorefiledata to retrieve raw files
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40327
diff changeset
1170 sending 1 commands
00a4cd368e3f exchangev2: support for calling rawstorefiledata to retrieve raw files
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40327
diff changeset
1171 sending command filesdata: {
00a4cd368e3f exchangev2: support for calling rawstorefiledata to retrieve raw files
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40327
diff changeset
1172 'fields': set([
00a4cd368e3f exchangev2: support for calling rawstorefiledata to retrieve raw files
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40327
diff changeset
1173 'parents',
00a4cd368e3f exchangev2: support for calling rawstorefiledata to retrieve raw files
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40327
diff changeset
1174 'revision'
00a4cd368e3f exchangev2: support for calling rawstorefiledata to retrieve raw files
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40327
diff changeset
1175 ]),
00a4cd368e3f exchangev2: support for calling rawstorefiledata to retrieve raw files
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40327
diff changeset
1176 'haveparents': True,
00a4cd368e3f exchangev2: support for calling rawstorefiledata to retrieve raw files
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40327
diff changeset
1177 'pathfilter': {
00a4cd368e3f exchangev2: support for calling rawstorefiledata to retrieve raw files
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40327
diff changeset
1178 'include': [
00a4cd368e3f exchangev2: support for calling rawstorefiledata to retrieve raw files
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40327
diff changeset
1179 'path:dir0'
00a4cd368e3f exchangev2: support for calling rawstorefiledata to retrieve raw files
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40327
diff changeset
1180 ]
00a4cd368e3f exchangev2: support for calling rawstorefiledata to retrieve raw files
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40327
diff changeset
1181 },
00a4cd368e3f exchangev2: support for calling rawstorefiledata to retrieve raw files
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40327
diff changeset
1182 'revisions': [
00a4cd368e3f exchangev2: support for calling rawstorefiledata to retrieve raw files
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40327
diff changeset
1183 {
00a4cd368e3f exchangev2: support for calling rawstorefiledata to retrieve raw files
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40327
diff changeset
1184 'nodes': [
00a4cd368e3f exchangev2: support for calling rawstorefiledata to retrieve raw files
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40327
diff changeset
1185 '3\x90\xef\x85\x00s\xfb\xc2\xf0\xdf\xff"D4,\x8e\x92)\x01:',
00a4cd368e3f exchangev2: support for calling rawstorefiledata to retrieve raw files
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40327
diff changeset
1186 '\xb7\t8\x08\x92\xb1\x93\xc1\t\x1d:\x81\x7fp`R\xe3F\x82\x1b',
00a4cd368e3f exchangev2: support for calling rawstorefiledata to retrieve raw files
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40327
diff changeset
1187 'G\xfe\x01*\xb27\xa8\xc7\xfc\x0cx\xf9\xf2mXf\xee\xf3\xf8%',
00a4cd368e3f exchangev2: support for calling rawstorefiledata to retrieve raw files
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40327
diff changeset
1188 '\x97v_\xc3\xcdbO\xd1\xfa\x01v\x93,!\xff\xd1j\xdfC.'
00a4cd368e3f exchangev2: support for calling rawstorefiledata to retrieve raw files
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40327
diff changeset
1189 ],
00a4cd368e3f exchangev2: support for calling rawstorefiledata to retrieve raw files
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40327
diff changeset
1190 'type': 'changesetexplicit'
00a4cd368e3f exchangev2: support for calling rawstorefiledata to retrieve raw files
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40327
diff changeset
1191 }
00a4cd368e3f exchangev2: support for calling rawstorefiledata to retrieve raw files
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40327
diff changeset
1192 ]
00a4cd368e3f exchangev2: support for calling rawstorefiledata to retrieve raw files
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40327
diff changeset
1193 }
46314
95a615dd77bf clone: make sure we warm the cache after a clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 42884
diff changeset
1194 updating the branch cache
41682
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
1195 (sent 5 HTTP requests and * bytes; received * bytes in responses) (glob)
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
1196
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
1197 $ cat clone-output | grep "received frame"
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
1198 received frame(size=9; request=1; stream=2; streamflags=stream-begin; type=stream-settings; flags=eos)
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
1199 received frame(size=11; request=1; stream=2; streamflags=encoded; type=command-response; flags=continuation)
46874
84a93fa7ecfd revlog-compression: use zstd by default (if available)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 46314
diff changeset
1200 received frame(size=1275; request=1; stream=2; streamflags=encoded; type=command-response; flags=continuation) (no-zstd !)
84a93fa7ecfd revlog-compression: use zstd by default (if available)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 46314
diff changeset
1201 received frame(size=1283; request=1; stream=2; streamflags=encoded; type=command-response; flags=continuation) (zstd !)
41682
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
1202 received frame(size=0; request=1; stream=2; streamflags=; type=command-response; flags=eos)
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
1203 received frame(size=9; request=1; stream=2; streamflags=stream-begin; type=stream-settings; flags=eos)
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
1204 received frame(size=11; request=1; stream=2; streamflags=encoded; type=command-response; flags=continuation)
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
1205 received frame(size=22; request=1; stream=2; streamflags=encoded; type=command-response; flags=continuation)
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
1206 received frame(size=0; request=1; stream=2; streamflags=; type=command-response; flags=eos)
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
1207 received frame(size=11; request=3; stream=2; streamflags=encoded; type=command-response; flags=continuation)
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
1208 received frame(size=2; request=3; stream=2; streamflags=encoded; type=command-response; flags=continuation)
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
1209 received frame(size=0; request=3; stream=2; streamflags=; type=command-response; flags=eos)
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
1210 received frame(size=9; request=1; stream=2; streamflags=stream-begin; type=stream-settings; flags=eos)
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
1211 received frame(size=11; request=1; stream=2; streamflags=encoded; type=command-response; flags=continuation)
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
1212 received frame(size=13; request=1; stream=2; streamflags=encoded; type=command-response; flags=continuation)
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
1213 received frame(size=0; request=1; stream=2; streamflags=; type=command-response; flags=eos)
40330
00a4cd368e3f exchangev2: support for calling rawstorefiledata to retrieve raw files
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40327
diff changeset
1214 received frame(size=9; request=1; stream=2; streamflags=stream-begin; type=stream-settings; flags=eos)
00a4cd368e3f exchangev2: support for calling rawstorefiledata to retrieve raw files
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40327
diff changeset
1215 received frame(size=11; request=1; stream=2; streamflags=encoded; type=command-response; flags=continuation)
00a4cd368e3f exchangev2: support for calling rawstorefiledata to retrieve raw files
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40327
diff changeset
1216 received frame(size=449; request=1; stream=2; streamflags=encoded; type=command-response; flags=continuation)
00a4cd368e3f exchangev2: support for calling rawstorefiledata to retrieve raw files
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40327
diff changeset
1217 received frame(size=0; request=1; stream=2; streamflags=; type=command-response; flags=eos)
41682
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
1218
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
1219 $ rm clone-output
40330
00a4cd368e3f exchangev2: support for calling rawstorefiledata to retrieve raw files
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40327
diff changeset
1220
00a4cd368e3f exchangev2: support for calling rawstorefiledata to retrieve raw files
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40327
diff changeset
1221 #if reporevlogstore
00a4cd368e3f exchangev2: support for calling rawstorefiledata to retrieve raw files
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40327
diff changeset
1222 $ find client-stream-2/.hg/store -type f -name '*.i' | sort
00a4cd368e3f exchangev2: support for calling rawstorefiledata to retrieve raw files
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40327
diff changeset
1223 client-stream-2/.hg/store/00changelog.i
00a4cd368e3f exchangev2: support for calling rawstorefiledata to retrieve raw files
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40327
diff changeset
1224 client-stream-2/.hg/store/00manifest.i
00a4cd368e3f exchangev2: support for calling rawstorefiledata to retrieve raw files
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40327
diff changeset
1225 client-stream-2/.hg/store/data/dir0/c.i
00a4cd368e3f exchangev2: support for calling rawstorefiledata to retrieve raw files
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40327
diff changeset
1226 client-stream-2/.hg/store/data/dir0/d.i
00a4cd368e3f exchangev2: support for calling rawstorefiledata to retrieve raw files
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40327
diff changeset
1227 #endif
40393
229d23cdb203 exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40330
diff changeset
1228
229d23cdb203 exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40330
diff changeset
1229 Shallow clone doesn't work with revlogs
229d23cdb203 exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40330
diff changeset
1230
41682
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
1231 Output is flaky, save it in a file and check part independently
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
1232 $ hg --debug --config extensions.pullext=$TESTDIR/pullext.py clone --depth 1 -U http://localhost:$HGPORT client-shallow-revlogs > clone-output
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
1233 transaction abort!
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
1234 rollback completed
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
1235 abort: revlog storage does not support missing parents write mode
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
1236 [255]
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
1237
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
1238 $ cat clone-output | grep -v "received frame"
40393
229d23cdb203 exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40330
diff changeset
1239 using http://localhost:$HGPORT/
229d23cdb203 exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40330
diff changeset
1240 sending capabilities command
229d23cdb203 exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40330
diff changeset
1241 query 1; heads
229d23cdb203 exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40330
diff changeset
1242 sending 2 commands
229d23cdb203 exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40330
diff changeset
1243 sending command heads: {}
229d23cdb203 exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40330
diff changeset
1244 sending command known: {
229d23cdb203 exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40330
diff changeset
1245 'nodes': []
229d23cdb203 exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40330
diff changeset
1246 }
229d23cdb203 exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40330
diff changeset
1247 sending 1 commands
229d23cdb203 exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40330
diff changeset
1248 sending command changesetdata: {
229d23cdb203 exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40330
diff changeset
1249 'fields': set([
229d23cdb203 exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40330
diff changeset
1250 'bookmarks',
229d23cdb203 exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40330
diff changeset
1251 'parents',
229d23cdb203 exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40330
diff changeset
1252 'phase',
229d23cdb203 exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40330
diff changeset
1253 'revision'
229d23cdb203 exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40330
diff changeset
1254 ]),
229d23cdb203 exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40330
diff changeset
1255 'revisions': [
229d23cdb203 exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40330
diff changeset
1256 {
229d23cdb203 exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40330
diff changeset
1257 'heads': [
229d23cdb203 exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40330
diff changeset
1258 '\x97v_\xc3\xcdbO\xd1\xfa\x01v\x93,!\xff\xd1j\xdfC.'
229d23cdb203 exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40330
diff changeset
1259 ],
229d23cdb203 exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40330
diff changeset
1260 'roots': [],
229d23cdb203 exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40330
diff changeset
1261 'type': 'changesetdagrange'
229d23cdb203 exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40330
diff changeset
1262 }
229d23cdb203 exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40330
diff changeset
1263 ]
229d23cdb203 exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40330
diff changeset
1264 }
229d23cdb203 exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40330
diff changeset
1265 add changeset 3390ef850073
229d23cdb203 exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40330
diff changeset
1266 add changeset b709380892b1
229d23cdb203 exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40330
diff changeset
1267 add changeset 47fe012ab237
229d23cdb203 exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40330
diff changeset
1268 add changeset 97765fc3cd62
229d23cdb203 exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40330
diff changeset
1269 checking for updated bookmarks
229d23cdb203 exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40330
diff changeset
1270 sending 1 commands
229d23cdb203 exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40330
diff changeset
1271 sending command manifestdata: {
229d23cdb203 exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40330
diff changeset
1272 'fields': set([
229d23cdb203 exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40330
diff changeset
1273 'parents',
229d23cdb203 exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40330
diff changeset
1274 'revision'
229d23cdb203 exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40330
diff changeset
1275 ]),
229d23cdb203 exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40330
diff changeset
1276 'haveparents': True,
229d23cdb203 exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40330
diff changeset
1277 'nodes': [
229d23cdb203 exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40330
diff changeset
1278 '\x99/Gy\x02\x9a=\xf8\xd0fm\x00\xbb\x92OicN&A',
229d23cdb203 exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40330
diff changeset
1279 '|2 \x1a\xa3\xa1R\xa9\xe6\xa9"+?\xa8\xd0\xe3\x0f\xc2V\xe8',
229d23cdb203 exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40330
diff changeset
1280 '\x8d\xd0W<\x7f\xaf\xe2\x04F\xcc\xea\xac\x05N\xea\xa4x\x91M\xdb',
229d23cdb203 exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40330
diff changeset
1281 '113\x85\xf2!\x8b\x08^\xb2Z\x821\x1e*\xdd\x0e\xeb\x8c3'
229d23cdb203 exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40330
diff changeset
1282 ],
229d23cdb203 exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40330
diff changeset
1283 'tree': ''
229d23cdb203 exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40330
diff changeset
1284 }
229d23cdb203 exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40330
diff changeset
1285 sending 1 commands
229d23cdb203 exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40330
diff changeset
1286 sending command filesdata: {
229d23cdb203 exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40330
diff changeset
1287 'fields': set([
229d23cdb203 exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40330
diff changeset
1288 'linknode',
229d23cdb203 exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40330
diff changeset
1289 'parents',
229d23cdb203 exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40330
diff changeset
1290 'revision'
229d23cdb203 exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40330
diff changeset
1291 ]),
229d23cdb203 exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40330
diff changeset
1292 'haveparents': False,
229d23cdb203 exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40330
diff changeset
1293 'revisions': [
229d23cdb203 exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40330
diff changeset
1294 {
229d23cdb203 exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40330
diff changeset
1295 'nodes': [
229d23cdb203 exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40330
diff changeset
1296 '\x97v_\xc3\xcdbO\xd1\xfa\x01v\x93,!\xff\xd1j\xdfC.'
229d23cdb203 exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40330
diff changeset
1297 ],
229d23cdb203 exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40330
diff changeset
1298 'type': 'changesetexplicit'
229d23cdb203 exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40330
diff changeset
1299 }
229d23cdb203 exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40330
diff changeset
1300 ]
229d23cdb203 exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40330
diff changeset
1301 }
41682
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
1302 (sent 5 HTTP requests and * bytes; received * bytes in responses) (glob)
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
1303
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
1304 $ cat clone-output | grep "received frame"
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
1305 received frame(size=9; request=1; stream=2; streamflags=stream-begin; type=stream-settings; flags=eos)
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
1306 received frame(size=11; request=1; stream=2; streamflags=encoded; type=command-response; flags=continuation)
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
1307 received frame(size=22; request=1; stream=2; streamflags=encoded; type=command-response; flags=continuation)
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
1308 received frame(size=0; request=1; stream=2; streamflags=; type=command-response; flags=eos)
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
1309 received frame(size=11; request=3; stream=2; streamflags=encoded; type=command-response; flags=continuation)
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
1310 received frame(size=1; request=3; stream=2; streamflags=encoded; type=command-response; flags=continuation)
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
1311 received frame(size=0; request=3; stream=2; streamflags=; type=command-response; flags=eos)
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
1312 received frame(size=9; request=1; stream=2; streamflags=stream-begin; type=stream-settings; flags=eos)
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
1313 received frame(size=11; request=1; stream=2; streamflags=encoded; type=command-response; flags=continuation)
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
1314 received frame(size=783; request=1; stream=2; streamflags=encoded; type=command-response; flags=continuation)
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
1315 received frame(size=0; request=1; stream=2; streamflags=; type=command-response; flags=eos)
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
1316 received frame(size=9; request=1; stream=2; streamflags=stream-begin; type=stream-settings; flags=eos)
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
1317 received frame(size=11; request=1; stream=2; streamflags=encoded; type=command-response; flags=continuation)
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
1318 received frame(size=967; request=1; stream=2; streamflags=encoded; type=command-response; flags=continuation)
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
1319 received frame(size=0; request=1; stream=2; streamflags=; type=command-response; flags=eos)
40393
229d23cdb203 exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40330
diff changeset
1320 received frame(size=9; request=1; stream=2; streamflags=stream-begin; type=stream-settings; flags=eos)
229d23cdb203 exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40330
diff changeset
1321 received frame(size=11; request=1; stream=2; streamflags=encoded; type=command-response; flags=continuation)
229d23cdb203 exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40330
diff changeset
1322 received frame(size=1005; request=1; stream=2; streamflags=encoded; type=command-response; flags=continuation)
229d23cdb203 exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40330
diff changeset
1323 received frame(size=0; request=1; stream=2; streamflags=; type=command-response; flags=eos)
41682
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
1324
1ab6f5df263e test: stabilize test-wireproto-exchangev2.t flaky output
Boris Feld <boris.feld@octobus.net>
parents: 40924
diff changeset
1325 $ rm clone-output
40922
ca6372b7e566 tests: add tests for server-side linknode adjustment with wireprotov2
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40393
diff changeset
1326
ca6372b7e566 tests: add tests for server-side linknode adjustment with wireprotov2
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40393
diff changeset
1327 $ killdaemons.py
ca6372b7e566 tests: add tests for server-side linknode adjustment with wireprotov2
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40393
diff changeset
1328
ca6372b7e566 tests: add tests for server-side linknode adjustment with wireprotov2
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40393
diff changeset
1329 Repo with 2 DAG branches introducing same filenode, to test linknode adjustment
ca6372b7e566 tests: add tests for server-side linknode adjustment with wireprotov2
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40393
diff changeset
1330
ca6372b7e566 tests: add tests for server-side linknode adjustment with wireprotov2
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40393
diff changeset
1331 $ hg init server-linknode
ca6372b7e566 tests: add tests for server-side linknode adjustment with wireprotov2
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40393
diff changeset
1332 $ enablehttpv2 server-linknode
ca6372b7e566 tests: add tests for server-side linknode adjustment with wireprotov2
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40393
diff changeset
1333 $ cd server-linknode
ca6372b7e566 tests: add tests for server-side linknode adjustment with wireprotov2
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40393
diff changeset
1334 $ touch foo
ca6372b7e566 tests: add tests for server-side linknode adjustment with wireprotov2
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40393
diff changeset
1335 $ hg -q commit -Am initial
ca6372b7e566 tests: add tests for server-side linknode adjustment with wireprotov2
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40393
diff changeset
1336 $ echo foo > dupe-file
ca6372b7e566 tests: add tests for server-side linknode adjustment with wireprotov2
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40393
diff changeset
1337 $ hg commit -Am 'dupe 1'
ca6372b7e566 tests: add tests for server-side linknode adjustment with wireprotov2
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40393
diff changeset
1338 adding dupe-file
ca6372b7e566 tests: add tests for server-side linknode adjustment with wireprotov2
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40393
diff changeset
1339 $ hg -q up -r 0
ca6372b7e566 tests: add tests for server-side linknode adjustment with wireprotov2
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40393
diff changeset
1340 $ echo foo > dupe-file
ca6372b7e566 tests: add tests for server-side linknode adjustment with wireprotov2
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40393
diff changeset
1341 $ hg commit -Am 'dupe 2'
ca6372b7e566 tests: add tests for server-side linknode adjustment with wireprotov2
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40393
diff changeset
1342 adding dupe-file
ca6372b7e566 tests: add tests for server-side linknode adjustment with wireprotov2
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40393
diff changeset
1343 created new head
ca6372b7e566 tests: add tests for server-side linknode adjustment with wireprotov2
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40393
diff changeset
1344 $ hg serve -p $HGPORT -d --pid-file hg.pid -E error.log
ca6372b7e566 tests: add tests for server-side linknode adjustment with wireprotov2
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40393
diff changeset
1345 $ cat hg.pid > $DAEMON_PIDS
ca6372b7e566 tests: add tests for server-side linknode adjustment with wireprotov2
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40393
diff changeset
1346 $ cd ..
ca6372b7e566 tests: add tests for server-side linknode adjustment with wireprotov2
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40393
diff changeset
1347
ca6372b7e566 tests: add tests for server-side linknode adjustment with wireprotov2
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40393
diff changeset
1348 Perform an incremental pull of both heads and ensure linkrev is written out properly
ca6372b7e566 tests: add tests for server-side linknode adjustment with wireprotov2
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40393
diff changeset
1349
ca6372b7e566 tests: add tests for server-side linknode adjustment with wireprotov2
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40393
diff changeset
1350 $ hg clone -r 96ee1d7354c4 http://localhost:$HGPORT client-linknode-1
ca6372b7e566 tests: add tests for server-side linknode adjustment with wireprotov2
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40393
diff changeset
1351 new changesets 96ee1d7354c4
ca6372b7e566 tests: add tests for server-side linknode adjustment with wireprotov2
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40393
diff changeset
1352 updating to branch default
ca6372b7e566 tests: add tests for server-side linknode adjustment with wireprotov2
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40393
diff changeset
1353 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
ca6372b7e566 tests: add tests for server-side linknode adjustment with wireprotov2
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40393
diff changeset
1354 $ cd client-linknode-1
ca6372b7e566 tests: add tests for server-side linknode adjustment with wireprotov2
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40393
diff changeset
1355 $ touch extra
ca6372b7e566 tests: add tests for server-side linknode adjustment with wireprotov2
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40393
diff changeset
1356 $ hg commit -Am extra
ca6372b7e566 tests: add tests for server-side linknode adjustment with wireprotov2
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40393
diff changeset
1357 adding extra
ca6372b7e566 tests: add tests for server-side linknode adjustment with wireprotov2
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40393
diff changeset
1358 $ cd ..
ca6372b7e566 tests: add tests for server-side linknode adjustment with wireprotov2
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40393
diff changeset
1359
ca6372b7e566 tests: add tests for server-side linknode adjustment with wireprotov2
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40393
diff changeset
1360 $ hg clone -r 96ee1d7354c4 http://localhost:$HGPORT client-linknode-2
ca6372b7e566 tests: add tests for server-side linknode adjustment with wireprotov2
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40393
diff changeset
1361 new changesets 96ee1d7354c4
ca6372b7e566 tests: add tests for server-side linknode adjustment with wireprotov2
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40393
diff changeset
1362 updating to branch default
ca6372b7e566 tests: add tests for server-side linknode adjustment with wireprotov2
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40393
diff changeset
1363 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
ca6372b7e566 tests: add tests for server-side linknode adjustment with wireprotov2
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40393
diff changeset
1364 $ cd client-linknode-2
ca6372b7e566 tests: add tests for server-side linknode adjustment with wireprotov2
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40393
diff changeset
1365 $ touch extra
ca6372b7e566 tests: add tests for server-side linknode adjustment with wireprotov2
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40393
diff changeset
1366 $ hg commit -Am extra
ca6372b7e566 tests: add tests for server-side linknode adjustment with wireprotov2
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40393
diff changeset
1367 adding extra
ca6372b7e566 tests: add tests for server-side linknode adjustment with wireprotov2
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40393
diff changeset
1368 $ cd ..
ca6372b7e566 tests: add tests for server-side linknode adjustment with wireprotov2
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40393
diff changeset
1369
ca6372b7e566 tests: add tests for server-side linknode adjustment with wireprotov2
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40393
diff changeset
1370 $ hg -R client-linknode-1 pull -r 1681c33f9f80
ca6372b7e566 tests: add tests for server-side linknode adjustment with wireprotov2
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40393
diff changeset
1371 pulling from http://localhost:$HGPORT/
ca6372b7e566 tests: add tests for server-side linknode adjustment with wireprotov2
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40393
diff changeset
1372 searching for changes
ca6372b7e566 tests: add tests for server-side linknode adjustment with wireprotov2
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40393
diff changeset
1373 new changesets 1681c33f9f80
ca6372b7e566 tests: add tests for server-side linknode adjustment with wireprotov2
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40393
diff changeset
1374 (run 'hg update' to get a working copy)
ca6372b7e566 tests: add tests for server-side linknode adjustment with wireprotov2
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40393
diff changeset
1375
ca6372b7e566 tests: add tests for server-side linknode adjustment with wireprotov2
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40393
diff changeset
1376 #if reporevlogstore
ca6372b7e566 tests: add tests for server-side linknode adjustment with wireprotov2
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40393
diff changeset
1377 $ hg -R client-linknode-1 debugrevlogindex dupe-file
ca6372b7e566 tests: add tests for server-side linknode adjustment with wireprotov2
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40393
diff changeset
1378 rev linkrev nodeid p1 p2
ca6372b7e566 tests: add tests for server-side linknode adjustment with wireprotov2
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40393
diff changeset
1379 0 2 2ed2a3912a0b 000000000000 000000000000
ca6372b7e566 tests: add tests for server-side linknode adjustment with wireprotov2
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40393
diff changeset
1380 #endif
ca6372b7e566 tests: add tests for server-side linknode adjustment with wireprotov2
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40393
diff changeset
1381
ca6372b7e566 tests: add tests for server-side linknode adjustment with wireprotov2
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40393
diff changeset
1382 $ hg -R client-linknode-2 pull -r 639c8990d6a5
ca6372b7e566 tests: add tests for server-side linknode adjustment with wireprotov2
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40393
diff changeset
1383 pulling from http://localhost:$HGPORT/
ca6372b7e566 tests: add tests for server-side linknode adjustment with wireprotov2
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40393
diff changeset
1384 searching for changes
ca6372b7e566 tests: add tests for server-side linknode adjustment with wireprotov2
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40393
diff changeset
1385 new changesets 639c8990d6a5
ca6372b7e566 tests: add tests for server-side linknode adjustment with wireprotov2
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40393
diff changeset
1386 (run 'hg update' to get a working copy)
ca6372b7e566 tests: add tests for server-side linknode adjustment with wireprotov2
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40393
diff changeset
1387
ca6372b7e566 tests: add tests for server-side linknode adjustment with wireprotov2
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40393
diff changeset
1388 #if reporevlogstore
ca6372b7e566 tests: add tests for server-side linknode adjustment with wireprotov2
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40393
diff changeset
1389 $ hg -R client-linknode-2 debugrevlogindex dupe-file
40924
08cfa77d7288 wireprotov2: unify file revision collection and linknode derivation
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40922
diff changeset
1390 rev linkrev nodeid p1 p2
08cfa77d7288 wireprotov2: unify file revision collection and linknode derivation
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40922
diff changeset
1391 0 2 2ed2a3912a0b 000000000000 000000000000
40922
ca6372b7e566 tests: add tests for server-side linknode adjustment with wireprotov2
Gregory Szorc <gregory.szorc@gmail.com>
parents: 40393
diff changeset
1392 #endif