##// END OF EJS Templates
bundle2: fix the formatting of the stream part requirements...
Boris Feld -
r35831:76832637 stable
parent child Browse files
Show More
@@ -2143,7 +2143,7 b' def bundle2getvars(op, part):'
2143 2143 @parthandler('stream2', ('requirements', 'filecount', 'bytecount'))
2144 2144 def handlestreamv2bundle(op, part):
2145 2145
2146 requirements = part.params['requirements'].split()
2146 requirements = urlreq.unquote(part.params['requirements']).split(',')
2147 2147 filecount = int(part.params['filecount'])
2148 2148 bytecount = int(part.params['bytecount'])
2149 2149
@@ -1793,7 +1793,7 b' def _getbundlestream2(bundler, repo, sou'
1793 1793 bundler.prefercompressed = False
1794 1794
1795 1795 filecount, bytecount, it = streamclone.generatev2(repo)
1796 requirements = ' '.join(sorted(repo.requirements))
1796 requirements = _formatrequirementsspec(repo.requirements)
1797 1797 part = bundler.newpart('stream2', data=it)
1798 1798 part.addparam('bytecount', '%d' % bytecount, mandatory=True)
1799 1799 part.addparam('filecount', '%d' % filecount, mandatory=True)
@@ -199,23 +199,23 b' getbundle requests with stream=1 are unc'
199 199
200 200
201 201 $ f --size --hex --bytes 256 body
202 body: size=112222
202 body: size=112230
203 203 0000: 04 6e 6f 6e 65 48 47 32 30 00 00 00 00 00 00 00 |.noneHG20.......|
204 0010: 68 07 53 54 52 45 41 4d 32 00 00 00 00 03 00 09 |h.STREAM2.......|
205 0020: 05 09 04 0c 2d 62 79 74 65 63 6f 75 6e 74 39 38 |....-bytecount98|
204 0010: 70 07 53 54 52 45 41 4d 32 00 00 00 00 03 00 09 |p.STREAM2.......|
205 0020: 05 09 04 0c 35 62 79 74 65 63 6f 75 6e 74 39 38 |....5bytecount98|
206 206 0030: 37 35 38 66 69 6c 65 63 6f 75 6e 74 31 30 33 30 |758filecount1030|
207 207 0040: 72 65 71 75 69 72 65 6d 65 6e 74 73 64 6f 74 65 |requirementsdote|
208 0050: 6e 63 6f 64 65 20 66 6e 63 61 63 68 65 20 67 65 |ncode fncache ge|
209 0060: 6e 65 72 61 6c 64 65 6c 74 61 20 72 65 76 6c 6f |neraldelta revlo|
210 0070: 67 76 31 20 73 74 6f 72 65 00 00 80 00 73 08 42 |gv1 store....s.B|
211 0080: 64 61 74 61 2f 30 2e 69 00 03 00 01 00 00 00 00 |data/0.i........|
212 0090: 00 00 00 02 00 00 00 01 00 00 00 00 00 00 00 01 |................|
213 00a0: ff ff ff ff ff ff ff ff 80 29 63 a0 49 d3 23 87 |.........)c.I.#.|
214 00b0: bf ce fe 56 67 92 67 2c 69 d1 ec 39 00 00 00 00 |...Vg.g,i..9....|
215 00c0: 00 00 00 00 00 00 00 00 75 30 73 08 42 64 61 74 |........u0s.Bdat|
216 00d0: 61 2f 31 2e 69 00 03 00 01 00 00 00 00 00 00 00 |a/1.i...........|
217 00e0: 02 00 00 00 01 00 00 00 00 00 00 00 01 ff ff ff |................|
218 00f0: ff ff ff ff ff f9 76 da 1d 0d f2 25 6c de 08 db |......v....%l...|
208 0050: 6e 63 6f 64 65 25 32 43 66 6e 63 61 63 68 65 25 |ncode%2Cfncache%|
209 0060: 32 43 67 65 6e 65 72 61 6c 64 65 6c 74 61 25 32 |2Cgeneraldelta%2|
210 0070: 43 72 65 76 6c 6f 67 76 31 25 32 43 73 74 6f 72 |Crevlogv1%2Cstor|
211 0080: 65 00 00 80 00 73 08 42 64 61 74 61 2f 30 2e 69 |e....s.Bdata/0.i|
212 0090: 00 03 00 01 00 00 00 00 00 00 00 02 00 00 00 01 |................|
213 00a0: 00 00 00 00 00 00 00 01 ff ff ff ff ff ff ff ff |................|
214 00b0: 80 29 63 a0 49 d3 23 87 bf ce fe 56 67 92 67 2c |.)c.I.#....Vg.g,|
215 00c0: 69 d1 ec 39 00 00 00 00 00 00 00 00 00 00 00 00 |i..9............|
216 00d0: 75 30 73 08 42 64 61 74 61 2f 31 2e 69 00 03 00 |u0s.Bdata/1.i...|
217 00e0: 01 00 00 00 00 00 00 00 02 00 00 00 01 00 00 00 |................|
218 00f0: 00 00 00 00 01 ff ff ff ff ff ff ff ff f9 76 da |..............v.|
219 219
220 220 --uncompressed is an alias to --stream
221 221
General Comments 0
You need to be logged in to leave comments. Login now