Show More
@@ -1773,6 +1773,13 b' def _getbundlestream2(bundler, repo, sou' | |||||
1773 | if not kwargs.get('stream', False): |
|
1773 | if not kwargs.get('stream', False): | |
1774 | return |
|
1774 | return | |
1775 |
|
1775 | |||
|
1776 | if not streamclone.allowservergeneration(repo): | |||
|
1777 | raise error.Abort(_('stream data requested but server does not allow ' | |||
|
1778 | 'this feature'), | |||
|
1779 | hint=_('well-behaved clients should not be ' | |||
|
1780 | 'requesting stream data from servers not ' | |||
|
1781 | 'advertising it; the client may be buggy')) | |||
|
1782 | ||||
1776 | # Stream clones don't compress well. And compression undermines a |
|
1783 | # Stream clones don't compress well. And compression undermines a | |
1777 | # goal of stream clones, which is to be fast. Communicate the desire |
|
1784 | # goal of stream clones, which is to be fast. Communicate the desire | |
1778 | # to avoid compression to consumers of the bundle. |
|
1785 | # to avoid compression to consumers of the bundle. |
@@ -87,14 +87,14 b' Cannot stream clone when server.uncompre' | |||||
87 |
|
87 | |||
88 |
|
88 | |||
89 | $ f --size body --hexdump --bytes 100 |
|
89 | $ f --size body --hexdump --bytes 100 | |
90 |
body: size= |
|
90 | body: size=232 | |
91 | 0000: 04 6e 6f 6e 65 48 47 32 30 00 00 00 00 00 00 00 |.noneHG20.......| |
|
91 | 0000: 04 6e 6f 6e 65 48 47 32 30 00 00 00 00 00 00 00 |.noneHG20.......| | |
92 | 0010: 68 07 53 54 52 45 41 4d 32 00 00 00 00 03 00 09 |h.STREAM2.......| |
|
92 | 0010: cf 0b 45 52 52 4f 52 3a 41 42 4f 52 54 00 00 00 |..ERROR:ABORT...| | |
93 | 0020: 05 09 04 0c 2d 62 79 74 65 63 6f 75 6e 74 39 38 |....-bytecount98| |
|
93 | 0020: 00 01 01 07 3c 04 72 6d 65 73 73 61 67 65 73 74 |....<.rmessagest| | |
94 | 0030: 37 35 38 66 69 6c 65 63 6f 75 6e 74 31 30 33 30 |758filecount1030| |
|
94 | 0030: 72 65 61 6d 20 64 61 74 61 20 72 65 71 75 65 73 |ream data reques| | |
95 | 0040: 72 65 71 75 69 72 65 6d 65 6e 74 73 64 6f 74 65 |requirementsdote| |
|
95 | 0040: 74 65 64 20 62 75 74 20 73 65 72 76 65 72 20 64 |ted but server d| | |
96 | 0050: 6e 63 6f 64 65 20 66 6e 63 61 63 68 65 20 67 65 |ncode fncache ge| |
|
96 | 0050: 6f 65 73 20 6e 6f 74 20 61 6c 6c 6f 77 20 74 68 |oes not allow th| | |
97 |
0060: 6 |
|
97 | 0060: 69 73 20 66 |is f| | |
98 |
|
98 | |||
99 | #endif |
|
99 | #endif | |
100 | #if stream-bundle2 |
|
100 | #if stream-bundle2 | |
@@ -152,14 +152,14 b' Cannot stream clone when server.uncompre' | |||||
152 |
|
152 | |||
153 |
|
153 | |||
154 | $ f --size body --hexdump --bytes 100 |
|
154 | $ f --size body --hexdump --bytes 100 | |
155 |
body: size= |
|
155 | body: size=232 | |
156 | 0000: 04 6e 6f 6e 65 48 47 32 30 00 00 00 00 00 00 00 |.noneHG20.......| |
|
156 | 0000: 04 6e 6f 6e 65 48 47 32 30 00 00 00 00 00 00 00 |.noneHG20.......| | |
157 | 0010: 68 07 53 54 52 45 41 4d 32 00 00 00 00 03 00 09 |h.STREAM2.......| |
|
157 | 0010: cf 0b 45 52 52 4f 52 3a 41 42 4f 52 54 00 00 00 |..ERROR:ABORT...| | |
158 | 0020: 05 09 04 0c 2d 62 79 74 65 63 6f 75 6e 74 39 38 |....-bytecount98| |
|
158 | 0020: 00 01 01 07 3c 04 72 6d 65 73 73 61 67 65 73 74 |....<.rmessagest| | |
159 | 0030: 37 35 38 66 69 6c 65 63 6f 75 6e 74 31 30 33 30 |758filecount1030| |
|
159 | 0030: 72 65 61 6d 20 64 61 74 61 20 72 65 71 75 65 73 |ream data reques| | |
160 | 0040: 72 65 71 75 69 72 65 6d 65 6e 74 73 64 6f 74 65 |requirementsdote| |
|
160 | 0040: 74 65 64 20 62 75 74 20 73 65 72 76 65 72 20 64 |ted but server d| | |
161 | 0050: 6e 63 6f 64 65 20 66 6e 63 61 63 68 65 20 67 65 |ncode fncache ge| |
|
161 | 0050: 6f 65 73 20 6e 6f 74 20 61 6c 6c 6f 77 20 74 68 |oes not allow th| | |
162 |
0060: 6 |
|
162 | 0060: 69 73 20 66 |is f| | |
163 |
|
163 | |||
164 | #endif |
|
164 | #endif | |
165 |
|
165 |
General Comments 0
You need to be logged in to leave comments.
Login now