##// END OF EJS Templates
tests: actually test non-generaldelta variant for stream clones...
Gregory Szorc -
r30013:16595498 default
parent child Browse files
Show More
@@ -279,26 +279,26 b' packed1 is produced properly'
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
General Comments 0
You need to be logged in to leave comments. Login now