Mercurial > hg
annotate tests/test-wireproto-exchangev2-shallow.t @ 47507:d4c795576aeb
dirstate-entry: turn dirstate tuple into a real object (like in C)
With dirstate V2, the stored information and actual format will change. This mean we need to start an a better abstraction for a dirstate entry that a tuple directly accessed.
By chance, the C code is already doing this and pretend to be a tuple. So it
should be fairly easy. We start with turning the tuple into an object, we will
slowly migrate the dirstate code to no longer use the tuple directly in later
changesets.
Differential Revision: https://phab.mercurial-scm.org/D10949
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Sat, 03 Jul 2021 03:48:35 +0200 |
parents | 186c0f6fbc16 |
children |
rev | line source |
---|---|
40393
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1 #require sqlite |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
2 |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
3 Tests for wire protocol version 2 exchange. |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
4 Tests in this file should be folded into existing tests once protocol |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
5 v2 has enough features that it can be enabled via #testcase in existing |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
6 tests. |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
7 |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
8 $ . $TESTDIR/wireprotohelpers.sh |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
9 $ enablehttpv2client |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
10 $ cat >> $HGRCPATH << EOF |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
11 > [extensions] |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
12 > sqlitestore = |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
13 > pullext = $TESTDIR/pullext.py |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
14 > [storage] |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
15 > new-repo-backend=sqlite |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
16 > EOF |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
17 |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
18 Configure a server |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
19 |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
20 $ hg init server-basic |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
21 $ enablehttpv2 server-basic |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
22 $ cd server-basic |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
23 $ mkdir dir0 dir1 |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
24 $ echo a0 > a |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
25 $ echo b0 > b |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
26 $ hg -q commit -A -m 'commit 0' |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
27 $ echo c0 > dir0/c |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
28 $ echo d0 > dir0/d |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
29 $ hg -q commit -A -m 'commit 1' |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
30 $ echo e0 > dir1/e |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
31 $ echo f0 > dir1/f |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
32 $ hg -q commit -A -m 'commit 2' |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
33 $ echo c1 > dir0/c |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
34 $ echo e1 > dir1/e |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
35 $ hg commit -m 'commit 3' |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
36 $ echo c2 > dir0/c |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
37 $ echo e2 > dir1/e |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
38 $ echo f1 > dir1/f |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
39 $ hg commit -m 'commit 4' |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
40 $ echo a1 > a |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
41 $ echo b1 > b |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
42 $ hg commit -m 'commit 5' |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
43 |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
44 $ hg log -G -T '{node} {desc}' |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
45 @ 93a8bd067ed2840d9aa810ad598168383a3a2c3a commit 5 |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
46 | |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
47 o dc666cf9ecf3d94e6b830f30e5f1272e2a9164d9 commit 4 |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
48 | |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
49 o 97765fc3cd624fd1fa0176932c21ffd16adf432e commit 3 |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
50 | |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
51 o 47fe012ab237a8c7fc0c78f9f26d5866eef3f825 commit 2 |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
52 | |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
53 o b709380892b193c1091d3a817f706052e346821b commit 1 |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
54 | |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
55 o 3390ef850073fbc2f0dfff2244342c8e9229013a commit 0 |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
56 |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
57 $ hg serve -p $HGPORT -d --pid-file hg.pid -E error.log |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
58 $ cat hg.pid > $DAEMON_PIDS |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
59 |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
60 $ cd .. |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
61 |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
62 Shallow clone pulls down latest revision of every file |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
63 |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
64 $ hg --debug clone --depth 1 http://localhost:$HGPORT client-shallow-1 |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
65 using http://localhost:$HGPORT/ |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
66 sending capabilities command |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
67 query 1; heads |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
68 sending 2 commands |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
69 sending command heads: {} |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
70 sending command known: { |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
71 'nodes': [] |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
72 } |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
73 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:
diff
changeset
|
74 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:
diff
changeset
|
75 received frame(size=22; 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:
diff
changeset
|
76 received frame(size=0; request=1; stream=2; streamflags=; type=command-response; flags=eos) |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
77 received frame(size=11; request=3; stream=2; streamflags=encoded; type=command-response; flags=continuation) |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
78 received frame(size=1; request=3; stream=2; streamflags=encoded; type=command-response; flags=continuation) |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
79 received frame(size=0; request=3; stream=2; streamflags=; type=command-response; flags=eos) |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
80 sending 1 commands |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
81 sending command changesetdata: { |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
82 'fields': set([ |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
83 'bookmarks', |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
84 'parents', |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
85 'phase', |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
86 'revision' |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
87 ]), |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
88 'revisions': [ |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
89 { |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
90 'heads': [ |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
91 '\x93\xa8\xbd\x06~\xd2\x84\r\x9a\xa8\x10\xadY\x81h8::,:' |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
92 ], |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
93 'roots': [], |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
94 'type': 'changesetdagrange' |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
95 } |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
96 ] |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
97 } |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
98 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:
diff
changeset
|
99 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:
diff
changeset
|
100 received frame(size=1170; request=1; stream=2; streamflags=encoded; type=command-response; flags=continuation) |
46122
1b5aeb928c8f
tests: workaround for a flaky test
Joerg Sonnenberger <joerg@bec.de>
parents:
45060
diff
changeset
|
101 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:
diff
changeset
|
102 add changeset 3390ef850073 |
46342
c4787ea85cc7
tests: deal with more timing differences in output
Joerg Sonnenberger <joerg@bec.de>
parents:
46314
diff
changeset
|
103 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:
diff
changeset
|
104 add changeset b709380892b1 |
46342
c4787ea85cc7
tests: deal with more timing differences in output
Joerg Sonnenberger <joerg@bec.de>
parents:
46314
diff
changeset
|
105 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:
diff
changeset
|
106 add changeset 47fe012ab237 |
46342
c4787ea85cc7
tests: deal with more timing differences in output
Joerg Sonnenberger <joerg@bec.de>
parents:
46314
diff
changeset
|
107 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:
diff
changeset
|
108 add changeset 97765fc3cd62 |
46342
c4787ea85cc7
tests: deal with more timing differences in output
Joerg Sonnenberger <joerg@bec.de>
parents:
46314
diff
changeset
|
109 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:
diff
changeset
|
110 add changeset dc666cf9ecf3 |
46342
c4787ea85cc7
tests: deal with more timing differences in output
Joerg Sonnenberger <joerg@bec.de>
parents:
46314
diff
changeset
|
111 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:
diff
changeset
|
112 add changeset 93a8bd067ed2 |
46122
1b5aeb928c8f
tests: workaround for a flaky test
Joerg Sonnenberger <joerg@bec.de>
parents:
45060
diff
changeset
|
113 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:
diff
changeset
|
114 checking for updated bookmarks |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
115 sending 1 commands |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
116 sending command manifestdata: { |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
117 'fields': set([ |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
118 'parents', |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
119 'revision' |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
120 ]), |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
121 'haveparents': True, |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
122 'nodes': [ |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
123 '\x99/Gy\x02\x9a=\xf8\xd0fm\x00\xbb\x92OicN&A', |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
124 '|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:
diff
changeset
|
125 '\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:
diff
changeset
|
126 '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:
diff
changeset
|
127 'H]O\xc2`\xef\\\xb9\xc0p6\x88K\x00k\x11\x0ej\xdby', |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
128 '\xd9;\xc4\x0b\x0e*GMp\xee\xf7}^\x91/f\x7fSd\x83' |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
129 ], |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
130 'tree': '' |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
131 } |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
132 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:
diff
changeset
|
133 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:
diff
changeset
|
134 received frame(size=1515; 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:
diff
changeset
|
135 received frame(size=0; request=1; stream=2; streamflags=; type=command-response; flags=eos) |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
136 sending 1 commands |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
137 sending command filesdata: { |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
138 'fields': set([ |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
139 'linknode', |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
140 'parents', |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
141 'revision' |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
142 ]), |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
143 'haveparents': False, |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
144 'revisions': [ |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
145 { |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
146 'nodes': [ |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
147 '\x93\xa8\xbd\x06~\xd2\x84\r\x9a\xa8\x10\xadY\x81h8::,:' |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
148 ], |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
149 'type': 'changesetexplicit' |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
150 } |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
151 ] |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
152 } |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
153 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:
diff
changeset
|
154 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:
diff
changeset
|
155 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:
diff
changeset
|
156 received frame(size=0; request=1; stream=2; streamflags=; type=command-response; flags=eos) |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
157 updating the branch cache |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
158 new changesets 3390ef850073:93a8bd067ed2 |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
159 updating to branch default |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
160 resolving manifests |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
161 branchmerge: False, force: False, partial: False |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
162 ancestor: 000000000000, local: 000000000000+, remote: 93a8bd067ed2 |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
163 a: remote created -> g |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
164 getting a |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
165 b: remote created -> g |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
166 getting b |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
167 dir0/c: remote created -> g |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
168 getting dir0/c |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
169 dir0/d: remote created -> g |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
170 getting dir0/d |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
171 dir1/e: remote created -> g |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
172 getting dir1/e |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
173 dir1/f: remote created -> g |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
174 getting dir1/f |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
175 6 files updated, 0 files merged, 0 files removed, 0 files unresolved |
46314
95a615dd77bf
clone: make sure we warm the cache after a clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
46122
diff
changeset
|
176 updating the branch cache |
40393
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
177 (sent 5 HTTP requests and * bytes; received * bytes in responses) (glob) |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
178 |
46800
186c0f6fbc16
tests: ask any chg instance to terminate before looking at sqlite dbs
Joerg Sonnenberger <joerg@bec.de>
parents:
46342
diff
changeset
|
179 #if chg |
186c0f6fbc16
tests: ask any chg instance to terminate before looking at sqlite dbs
Joerg Sonnenberger <joerg@bec.de>
parents:
46342
diff
changeset
|
180 $ hg --kill-chg-daemon |
186c0f6fbc16
tests: ask any chg instance to terminate before looking at sqlite dbs
Joerg Sonnenberger <joerg@bec.de>
parents:
46342
diff
changeset
|
181 $ sleep 2 |
186c0f6fbc16
tests: ask any chg instance to terminate before looking at sqlite dbs
Joerg Sonnenberger <joerg@bec.de>
parents:
46342
diff
changeset
|
182 #endif |
40393
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
183 $ sqlite3 -line client-shallow-1/.hg/store/db.sqlite << EOF |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
184 > SELECT id, path, revnum, node, p1rev, p2rev, linkrev, flags FROM filedata ORDER BY id ASC; |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
185 > EOF |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
186 id = 1 |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
187 path = a |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
188 revnum = 0 |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
189 node = \x9a8\x12)\x97\xb3\xac\x97\xbe*\x9a\xa2\xe5V\x83\x83A\xfd\xf2\xcc (esc) |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
190 p1rev = -1 |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
191 p2rev = -1 |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
192 linkrev = 5 |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
193 flags = 2 |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
194 |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
195 id = 2 |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
196 path = b |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
197 revnum = 0 |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
198 node = \xb1zk\xd3g=\x9a\xb8\xce\xd5\x81\xa2 \xf6/=\xa5\xccEx (esc) |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
199 p1rev = -1 |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
200 p2rev = -1 |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
201 linkrev = 5 |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
202 flags = 2 |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
203 |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
204 id = 3 |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
205 path = dir0/c |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
206 revnum = 0 |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
207 node = I\x1d\xa1\xbb\x89\xeax\xc0\xc0\xa2s[\x16\xce}\x93\x1d\xc8\xe2\r (esc) |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
208 p1rev = -1 |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
209 p2rev = -1 |
40923
3ed77780f4a6
wireprotov2: send linknodes to emitfilerevisions()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
40393
diff
changeset
|
210 linkrev = 5 |
40393
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
211 flags = 2 |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
212 |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
213 id = 4 |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
214 path = dir0/d |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
215 revnum = 0 |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
216 node = S\x82\x06\xdc\x97\x1eR\x15@\xd6\x84:\xbf\xe6\xd1`2\xf6\xd4& (esc) |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
217 p1rev = -1 |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
218 p2rev = -1 |
40923
3ed77780f4a6
wireprotov2: send linknodes to emitfilerevisions()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
40393
diff
changeset
|
219 linkrev = 5 |
40393
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
220 flags = 0 |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
221 |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
222 id = 5 |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
223 path = dir1/e |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
224 revnum = 0 |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
225 node = ]\xf3\xac\xd8\xd0\xc7\xfaP\x98\xd0'\x9a\x044\xc3\x02\x9e+x\xe1 (esc) |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
226 p1rev = -1 |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
227 p2rev = -1 |
40923
3ed77780f4a6
wireprotov2: send linknodes to emitfilerevisions()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
40393
diff
changeset
|
228 linkrev = 5 |
40393
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
229 flags = 2 |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
230 |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
231 id = 6 |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
232 path = dir1/f |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
233 revnum = 0 |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
234 node = (\xc7v\xae\x08\xd0\xd5^\xb4\x06H\xb4\x01\xb9\x0f\xf5DH4\x8e (esc) |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
235 p1rev = -1 |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
236 p2rev = -1 |
40923
3ed77780f4a6
wireprotov2: send linknodes to emitfilerevisions()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
40393
diff
changeset
|
237 linkrev = 5 |
40393
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
238 flags = 2 |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
239 |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
240 Test a shallow clone with only some files |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
241 |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
242 $ hg --debug clone --depth 1 --include dir0/ http://localhost:$HGPORT client-shallow-narrow-1 |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
243 using http://localhost:$HGPORT/ |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
244 sending capabilities command |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
245 query 1; heads |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
246 sending 2 commands |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
247 sending command heads: {} |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
248 sending command known: { |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
249 'nodes': [] |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
250 } |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
251 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:
diff
changeset
|
252 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:
diff
changeset
|
253 received frame(size=22; 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:
diff
changeset
|
254 received frame(size=0; request=1; stream=2; streamflags=; type=command-response; flags=eos) |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
255 received frame(size=11; request=3; stream=2; streamflags=encoded; type=command-response; flags=continuation) |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
256 received frame(size=1; request=3; stream=2; streamflags=encoded; type=command-response; flags=continuation) |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
257 received frame(size=0; request=3; stream=2; streamflags=; type=command-response; flags=eos) |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
258 sending 1 commands |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
259 sending command changesetdata: { |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
260 'fields': set([ |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
261 'bookmarks', |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
262 'parents', |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
263 'phase', |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
264 'revision' |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
265 ]), |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
266 'revisions': [ |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
267 { |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
268 'heads': [ |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
269 '\x93\xa8\xbd\x06~\xd2\x84\r\x9a\xa8\x10\xadY\x81h8::,:' |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
270 ], |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
271 'roots': [], |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
272 'type': 'changesetdagrange' |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
273 } |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
274 ] |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
275 } |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
276 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:
diff
changeset
|
277 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:
diff
changeset
|
278 received frame(size=1170; request=1; stream=2; streamflags=encoded; type=command-response; flags=continuation) |
45060
baffdfa5bd1a
tests: allow timing difference in output
Joerg Sonnenberger <joerg@bec.de>
parents:
42884
diff
changeset
|
279 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:
diff
changeset
|
280 add changeset 3390ef850073 |
46342
c4787ea85cc7
tests: deal with more timing differences in output
Joerg Sonnenberger <joerg@bec.de>
parents:
46314
diff
changeset
|
281 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:
diff
changeset
|
282 add changeset b709380892b1 |
46342
c4787ea85cc7
tests: deal with more timing differences in output
Joerg Sonnenberger <joerg@bec.de>
parents:
46314
diff
changeset
|
283 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:
diff
changeset
|
284 add changeset 47fe012ab237 |
46342
c4787ea85cc7
tests: deal with more timing differences in output
Joerg Sonnenberger <joerg@bec.de>
parents:
46314
diff
changeset
|
285 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:
diff
changeset
|
286 add changeset 97765fc3cd62 |
46342
c4787ea85cc7
tests: deal with more timing differences in output
Joerg Sonnenberger <joerg@bec.de>
parents:
46314
diff
changeset
|
287 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:
diff
changeset
|
288 add changeset dc666cf9ecf3 |
46342
c4787ea85cc7
tests: deal with more timing differences in output
Joerg Sonnenberger <joerg@bec.de>
parents:
46314
diff
changeset
|
289 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:
diff
changeset
|
290 add changeset 93a8bd067ed2 |
45060
baffdfa5bd1a
tests: allow timing difference in output
Joerg Sonnenberger <joerg@bec.de>
parents:
42884
diff
changeset
|
291 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:
diff
changeset
|
292 checking for updated bookmarks |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
293 sending 1 commands |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
294 sending command manifestdata: { |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
295 'fields': set([ |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
296 'parents', |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
297 'revision' |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
298 ]), |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
299 'haveparents': True, |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
300 'nodes': [ |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
301 '\x99/Gy\x02\x9a=\xf8\xd0fm\x00\xbb\x92OicN&A', |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
302 '|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:
diff
changeset
|
303 '\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:
diff
changeset
|
304 '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:
diff
changeset
|
305 'H]O\xc2`\xef\\\xb9\xc0p6\x88K\x00k\x11\x0ej\xdby', |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
306 '\xd9;\xc4\x0b\x0e*GMp\xee\xf7}^\x91/f\x7fSd\x83' |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
307 ], |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
308 'tree': '' |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
309 } |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
310 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:
diff
changeset
|
311 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:
diff
changeset
|
312 received frame(size=1515; 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:
diff
changeset
|
313 received frame(size=0; request=1; stream=2; streamflags=; type=command-response; flags=eos) |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
314 sending 1 commands |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
315 sending command filesdata: { |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
316 'fields': set([ |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
317 'linknode', |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
318 'parents', |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
319 'revision' |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
320 ]), |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
321 'haveparents': False, |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
322 'pathfilter': { |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
323 'include': [ |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
324 'path:dir0' |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
325 ] |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
326 }, |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
327 'revisions': [ |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
328 { |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
329 'nodes': [ |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
330 '\x93\xa8\xbd\x06~\xd2\x84\r\x9a\xa8\x10\xadY\x81h8::,:' |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
331 ], |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
332 'type': 'changesetexplicit' |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
333 } |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
334 ] |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
335 } |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
336 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:
diff
changeset
|
337 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:
diff
changeset
|
338 received frame(size=355; 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:
diff
changeset
|
339 received frame(size=0; request=1; stream=2; streamflags=; type=command-response; flags=eos) |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
340 updating the branch cache |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
341 new changesets 3390ef850073:93a8bd067ed2 |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
342 updating to branch default |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
343 resolving manifests |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
344 branchmerge: False, force: False, partial: False |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
345 ancestor: 000000000000, local: 000000000000+, remote: 93a8bd067ed2 |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
346 dir0/c: remote created -> g |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
347 getting dir0/c |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
348 dir0/d: remote created -> g |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
349 getting dir0/d |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
350 2 files updated, 0 files merged, 0 files removed, 0 files unresolved |
46314
95a615dd77bf
clone: make sure we warm the cache after a clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
46122
diff
changeset
|
351 updating the branch cache |
40393
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
352 (sent 5 HTTP requests and * bytes; received * bytes in responses) (glob) |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
353 |
46800
186c0f6fbc16
tests: ask any chg instance to terminate before looking at sqlite dbs
Joerg Sonnenberger <joerg@bec.de>
parents:
46342
diff
changeset
|
354 #if chg |
186c0f6fbc16
tests: ask any chg instance to terminate before looking at sqlite dbs
Joerg Sonnenberger <joerg@bec.de>
parents:
46342
diff
changeset
|
355 $ hg --kill-chg-daemon |
186c0f6fbc16
tests: ask any chg instance to terminate before looking at sqlite dbs
Joerg Sonnenberger <joerg@bec.de>
parents:
46342
diff
changeset
|
356 $ sleep 2 |
186c0f6fbc16
tests: ask any chg instance to terminate before looking at sqlite dbs
Joerg Sonnenberger <joerg@bec.de>
parents:
46342
diff
changeset
|
357 #endif |
40393
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
358 $ sqlite3 -line client-shallow-narrow-1/.hg/store/db.sqlite << EOF |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
359 > SELECT id, path, revnum, node, p1rev, p2rev, linkrev, flags FROM filedata ORDER BY id ASC; |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
360 > EOF |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
361 id = 1 |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
362 path = dir0/c |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
363 revnum = 0 |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
364 node = I\x1d\xa1\xbb\x89\xeax\xc0\xc0\xa2s[\x16\xce}\x93\x1d\xc8\xe2\r (esc) |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
365 p1rev = -1 |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
366 p2rev = -1 |
40923
3ed77780f4a6
wireprotov2: send linknodes to emitfilerevisions()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
40393
diff
changeset
|
367 linkrev = 5 |
40393
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
368 flags = 2 |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
369 |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
370 id = 2 |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
371 path = dir0/d |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
372 revnum = 0 |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
373 node = S\x82\x06\xdc\x97\x1eR\x15@\xd6\x84:\xbf\xe6\xd1`2\xf6\xd4& (esc) |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
374 p1rev = -1 |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
375 p2rev = -1 |
40923
3ed77780f4a6
wireprotov2: send linknodes to emitfilerevisions()
Gregory Szorc <gregory.szorc@gmail.com>
parents:
40393
diff
changeset
|
376 linkrev = 5 |
40393
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
377 flags = 0 |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
378 |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
379 Cloning an old revision with depth=1 works |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
380 |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
381 $ hg --debug clone --depth 1 -r 97765fc3cd624fd1fa0176932c21ffd16adf432e http://localhost:$HGPORT client-shallow-2 |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
382 using http://localhost:$HGPORT/ |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
383 sending capabilities command |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
384 sending 1 commands |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
385 sending command lookup: { |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
386 'key': '97765fc3cd624fd1fa0176932c21ffd16adf432e' |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
387 } |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
388 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:
diff
changeset
|
389 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:
diff
changeset
|
390 received frame(size=21; 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:
diff
changeset
|
391 received frame(size=0; request=1; stream=2; streamflags=; type=command-response; flags=eos) |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
392 query 1; heads |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
393 sending 2 commands |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
394 sending command heads: {} |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
395 sending command known: { |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
396 'nodes': [] |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
397 } |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
398 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:
diff
changeset
|
399 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:
diff
changeset
|
400 received frame(size=22; 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:
diff
changeset
|
401 received frame(size=0; request=1; stream=2; streamflags=; type=command-response; flags=eos) |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
402 received frame(size=11; request=3; stream=2; streamflags=encoded; type=command-response; flags=continuation) |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
403 received frame(size=1; request=3; stream=2; streamflags=encoded; type=command-response; flags=continuation) |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
404 received frame(size=0; request=3; stream=2; streamflags=; type=command-response; flags=eos) |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
405 sending 1 commands |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
406 sending command changesetdata: { |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
407 'fields': set([ |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
408 'bookmarks', |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
409 'parents', |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
410 'phase', |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
411 'revision' |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
412 ]), |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
413 'revisions': [ |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
414 { |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
415 'heads': [ |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
416 '\x97v_\xc3\xcdbO\xd1\xfa\x01v\x93,!\xff\xd1j\xdfC.' |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
417 ], |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
418 'roots': [], |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
419 'type': 'changesetdagrange' |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
420 } |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
421 ] |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
422 } |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
423 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:
diff
changeset
|
424 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:
diff
changeset
|
425 received frame(size=783; request=1; stream=2; streamflags=encoded; type=command-response; flags=continuation) |
46122
1b5aeb928c8f
tests: workaround for a flaky test
Joerg Sonnenberger <joerg@bec.de>
parents:
45060
diff
changeset
|
426 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:
diff
changeset
|
427 add changeset 3390ef850073 |
46342
c4787ea85cc7
tests: deal with more timing differences in output
Joerg Sonnenberger <joerg@bec.de>
parents:
46314
diff
changeset
|
428 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:
diff
changeset
|
429 add changeset b709380892b1 |
46342
c4787ea85cc7
tests: deal with more timing differences in output
Joerg Sonnenberger <joerg@bec.de>
parents:
46314
diff
changeset
|
430 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:
diff
changeset
|
431 add changeset 47fe012ab237 |
46342
c4787ea85cc7
tests: deal with more timing differences in output
Joerg Sonnenberger <joerg@bec.de>
parents:
46314
diff
changeset
|
432 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:
diff
changeset
|
433 add changeset 97765fc3cd62 |
46122
1b5aeb928c8f
tests: workaround for a flaky test
Joerg Sonnenberger <joerg@bec.de>
parents:
45060
diff
changeset
|
434 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:
diff
changeset
|
435 checking for updated bookmarks |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
436 sending 1 commands |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
437 sending command manifestdata: { |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
438 'fields': set([ |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
439 'parents', |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
440 'revision' |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
441 ]), |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
442 'haveparents': True, |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
443 'nodes': [ |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
444 '\x99/Gy\x02\x9a=\xf8\xd0fm\x00\xbb\x92OicN&A', |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
445 '|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:
diff
changeset
|
446 '\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:
diff
changeset
|
447 '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:
diff
changeset
|
448 ], |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
449 'tree': '' |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
450 } |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
451 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:
diff
changeset
|
452 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:
diff
changeset
|
453 received frame(size=967; 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:
diff
changeset
|
454 received frame(size=0; request=1; stream=2; streamflags=; type=command-response; flags=eos) |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
455 sending 1 commands |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
456 sending command filesdata: { |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
457 'fields': set([ |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
458 'linknode', |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
459 'parents', |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
460 'revision' |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
461 ]), |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
462 'haveparents': False, |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
463 'revisions': [ |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
464 { |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
465 'nodes': [ |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
466 '\x97v_\xc3\xcdbO\xd1\xfa\x01v\x93,!\xff\xd1j\xdfC.' |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
467 ], |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
468 'type': 'changesetexplicit' |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
469 } |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
470 ] |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
471 } |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
472 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:
diff
changeset
|
473 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:
diff
changeset
|
474 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:
diff
changeset
|
475 received frame(size=0; request=1; stream=2; streamflags=; type=command-response; flags=eos) |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
476 updating the branch cache |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
477 new changesets 3390ef850073:97765fc3cd62 |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
478 updating to branch default |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
479 resolving manifests |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
480 branchmerge: False, force: False, partial: False |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
481 ancestor: 000000000000, local: 000000000000+, remote: 97765fc3cd62 |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
482 a: remote created -> g |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
483 getting a |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
484 b: remote created -> g |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
485 getting b |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
486 dir0/c: remote created -> g |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
487 getting dir0/c |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
488 dir0/d: remote created -> g |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
489 getting dir0/d |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
490 dir1/e: remote created -> g |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
491 getting dir1/e |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
492 dir1/f: remote created -> g |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
493 getting dir1/f |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
494 6 files updated, 0 files merged, 0 files removed, 0 files unresolved |
46314
95a615dd77bf
clone: make sure we warm the cache after a clone
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
46122
diff
changeset
|
495 updating the branch cache |
40393
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
496 (sent 6 HTTP requests and * bytes; received * bytes in responses) (glob) |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
497 |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
498 Incremental pull of shallow clone fetches new changesets |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
499 |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
500 $ hg --cwd client-shallow-2 --debug pull http://localhost:$HGPORT |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
501 pulling from http://localhost:$HGPORT/ |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
502 using http://localhost:$HGPORT/ |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
503 sending capabilities command |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
504 query 1; heads |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
505 sending 2 commands |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
506 sending command heads: {} |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
507 sending command known: { |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
508 'nodes': [ |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
509 '\x97v_\xc3\xcdbO\xd1\xfa\x01v\x93,!\xff\xd1j\xdfC.' |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
510 ] |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
511 } |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
512 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:
diff
changeset
|
513 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:
diff
changeset
|
514 received frame(size=22; 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:
diff
changeset
|
515 received frame(size=0; request=1; stream=2; streamflags=; type=command-response; flags=eos) |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
516 received frame(size=11; request=3; stream=2; streamflags=encoded; type=command-response; flags=continuation) |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
517 received frame(size=2; request=3; stream=2; streamflags=encoded; type=command-response; flags=continuation) |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
518 received frame(size=0; request=3; stream=2; streamflags=; type=command-response; flags=eos) |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
519 searching for changes |
42884
775224e26d74
discovery: replace "heads" by "changesets" in a output note (BC)
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
40923
diff
changeset
|
520 all local changesets known remotely |
40393
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
521 sending 1 commands |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
522 sending command changesetdata: { |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
523 'fields': set([ |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
524 'bookmarks', |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
525 'parents', |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
526 'phase', |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
527 'revision' |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
528 ]), |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
529 'revisions': [ |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
530 { |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
531 'heads': [ |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
532 '\x93\xa8\xbd\x06~\xd2\x84\r\x9a\xa8\x10\xadY\x81h8::,:' |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
533 ], |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
534 'roots': [ |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
535 '\x97v_\xc3\xcdbO\xd1\xfa\x01v\x93,!\xff\xd1j\xdfC.' |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
536 ], |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
537 'type': 'changesetdagrange' |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
538 } |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
539 ] |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
540 } |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
541 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:
diff
changeset
|
542 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:
diff
changeset
|
543 received frame(size=400; request=1; stream=2; streamflags=encoded; type=command-response; flags=continuation) |
46122
1b5aeb928c8f
tests: workaround for a flaky test
Joerg Sonnenberger <joerg@bec.de>
parents:
45060
diff
changeset
|
544 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:
diff
changeset
|
545 add changeset dc666cf9ecf3 |
46342
c4787ea85cc7
tests: deal with more timing differences in output
Joerg Sonnenberger <joerg@bec.de>
parents:
46314
diff
changeset
|
546 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:
diff
changeset
|
547 add changeset 93a8bd067ed2 |
46122
1b5aeb928c8f
tests: workaround for a flaky test
Joerg Sonnenberger <joerg@bec.de>
parents:
45060
diff
changeset
|
548 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:
diff
changeset
|
549 checking for updated bookmarks |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
550 sending 1 commands |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
551 sending command manifestdata: { |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
552 'fields': set([ |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
553 'parents', |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
554 'revision' |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
555 ]), |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
556 'haveparents': True, |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
557 'nodes': [ |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
558 'H]O\xc2`\xef\\\xb9\xc0p6\x88K\x00k\x11\x0ej\xdby', |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
559 '\xd9;\xc4\x0b\x0e*GMp\xee\xf7}^\x91/f\x7fSd\x83' |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
560 ], |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
561 'tree': '' |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
562 } |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
563 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:
diff
changeset
|
564 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:
diff
changeset
|
565 received frame(size=561; 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:
diff
changeset
|
566 received frame(size=0; request=1; stream=2; streamflags=; type=command-response; flags=eos) |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
567 sending 1 commands |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
568 sending command filesdata: { |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
569 'fields': set([ |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
570 'linknode', |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
571 'parents', |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
572 'revision' |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
573 ]), |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
574 'haveparents': False, |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
575 'revisions': [ |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
576 { |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
577 'nodes': [ |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
578 '\xdcfl\xf9\xec\xf3\xd9Nk\x83\x0f0\xe5\xf1\'.*\x91d\xd9', |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
579 '\x93\xa8\xbd\x06~\xd2\x84\r\x9a\xa8\x10\xadY\x81h8::,:' |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
580 ], |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
581 'type': 'changesetexplicit' |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
582 } |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
583 ] |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
584 } |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
585 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:
diff
changeset
|
586 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:
diff
changeset
|
587 received frame(size=1373; 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:
diff
changeset
|
588 received frame(size=0; request=1; stream=2; streamflags=; type=command-response; flags=eos) |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
589 updating the branch cache |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
590 new changesets dc666cf9ecf3:93a8bd067ed2 |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
591 (run 'hg update' to get a working copy) |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
592 (sent 5 HTTP requests and * bytes; received * bytes in responses) (glob) |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
593 |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
594 $ hg --cwd client-shallow-2 up tip |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
595 merging dir0/c |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
596 merging dir1/e |
229d23cdb203
exchangev2: support fetching shallow files history
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
597 3 files updated, 2 files merged, 0 files removed, 0 files unresolved |