Mercurial > hg
comparison tests/test-bundle.t @ 30013:1659549870e1
tests: actually test non-generaldelta variant for stream clones
608cabec1b15 accidentally made both tests test generaldelta repos.
Restore the test for a non-gd repo.
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Sun, 25 Sep 2016 13:20:55 -0700 |
parents | 519a02267f90 |
children | 34a5f6c66bc5 |
comparison
equal
deleted
inserted
replaced
30012:60a66c79125f | 30013:1659549870e1 |
---|---|
277 0030: 74 61 2f 61 64 69 66 66 65 72 65 6e 74 66 69 6c |ta/adifferentfil| | 277 0030: 74 61 2f 61 64 69 66 66 65 72 65 6e 74 66 69 6c |ta/adifferentfil| |
278 | 278 |
279 $ hg debugbundle --spec packed.hg | 279 $ hg debugbundle --spec packed.hg |
280 none-packed1;requirements%3Dgeneraldelta%2Crevlogv1 | 280 none-packed1;requirements%3Dgeneraldelta%2Crevlogv1 |
281 | 281 |
282 generaldelta requirement is listed in stream clone bundles | 282 generaldelta requirement is not listed in stream clone bundles unless used |
283 | 283 |
284 $ hg --config format.generaldelta=true init testgd | 284 $ hg --config format.usegeneraldelta=false init testnongd |
285 $ cd testgd | 285 $ cd testnongd |
286 $ touch foo | 286 $ touch foo |
287 $ hg -q commit -A -m initial | 287 $ hg -q commit -A -m initial |
288 $ cd .. | 288 $ cd .. |
289 $ hg -R testgd debugcreatestreamclonebundle packedgd.hg | 289 $ hg -R testnongd debugcreatestreamclonebundle packednongd.hg |
290 writing 301 bytes for 3 files | 290 writing 301 bytes for 3 files |
291 bundle requirements: generaldelta, revlogv1 | 291 bundle requirements: revlogv1 |
292 | 292 |
293 $ f -B 64 --size --sha1 --hexdump packedgd.hg | 293 $ f -B 64 --size --sha1 --hexdump packednongd.hg |
294 packedgd.hg: size=396, sha1=981f9e589799335304a5a9a44caa3623a48d2a9f | 294 packednongd.hg: size=383, sha1=1d9c230238edd5d38907100b729ba72b1831fe6f |
295 0000: 48 47 53 31 55 4e 00 00 00 00 00 00 00 03 00 00 |HGS1UN..........| | 295 0000: 48 47 53 31 55 4e 00 00 00 00 00 00 00 03 00 00 |HGS1UN..........| |
296 0010: 00 00 00 00 01 2d 00 16 67 65 6e 65 72 61 6c 64 |.....-..generald| | 296 0010: 00 00 00 00 01 2d 00 09 72 65 76 6c 6f 67 76 31 |.....-..revlogv1| |
297 0020: 65 6c 74 61 2c 72 65 76 6c 6f 67 76 31 00 64 61 |elta,revlogv1.da| | 297 0020: 00 64 61 74 61 2f 66 6f 6f 2e 69 00 36 34 0a 00 |.data/foo.i.64..| |
298 0030: 74 61 2f 66 6f 6f 2e 69 00 36 34 0a 00 03 00 01 |ta/foo.i.64.....| | 298 0030: 01 00 01 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| |
299 | 299 |
300 $ hg debugbundle --spec packedgd.hg | 300 $ hg debugbundle --spec packednongd.hg |
301 none-packed1;requirements%3Dgeneraldelta%2Crevlogv1 | 301 none-packed1;requirements%3Drevlogv1 |
302 | 302 |
303 Unpacking packed1 bundles with "hg unbundle" isn't allowed | 303 Unpacking packed1 bundles with "hg unbundle" isn't allowed |
304 | 304 |
305 $ hg init packed | 305 $ hg init packed |
306 $ hg -R packed unbundle packed.hg | 306 $ hg -R packed unbundle packed.hg |