Mercurial > hg
comparison tests/test-bundle.t @ 27885:2370c66110cb
commands: teach debugbundle to print bundle specification
This seems like the most logical place to put this functionality.
Test coverage over existing known bundle specs has been added.
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Thu, 14 Jan 2016 22:57:55 -0800 |
parents | d6d3cf5fda6f |
children | 645e78845383 |
comparison
equal
deleted
inserted
replaced
27884:acfe40eb8cb5 | 27885:2370c66110cb |
---|---|
274 0000: 48 47 53 31 55 4e 00 00 00 00 00 00 00 06 00 00 |HGS1UN..........| | 274 0000: 48 47 53 31 55 4e 00 00 00 00 00 00 00 06 00 00 |HGS1UN..........| |
275 0010: 00 00 00 00 0a 67 00 16 67 65 6e 65 72 61 6c 64 |.....g..generald| | 275 0010: 00 00 00 00 0a 67 00 16 67 65 6e 65 72 61 6c 64 |.....g..generald| |
276 0020: 65 6c 74 61 2c 72 65 76 6c 6f 67 76 31 00 64 61 |elta,revlogv1.da| | 276 0020: 65 6c 74 61 2c 72 65 76 6c 6f 67 76 31 00 64 61 |elta,revlogv1.da| |
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 | |
280 none-packed1;requirements%3Dgeneraldelta%2Crevlogv1 | |
281 | |
279 generaldelta requirement is listed in stream clone bundles | 282 generaldelta requirement is listed in stream clone bundles |
280 | 283 |
281 $ hg --config format.generaldelta=true init testgd | 284 $ hg --config format.generaldelta=true init testgd |
282 $ cd testgd | 285 $ cd testgd |
283 $ touch foo | 286 $ touch foo |
291 packedgd.hg: size=396, sha1=981f9e589799335304a5a9a44caa3623a48d2a9f | 294 packedgd.hg: size=396, sha1=981f9e589799335304a5a9a44caa3623a48d2a9f |
292 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..........| |
293 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 16 67 65 6e 65 72 61 6c 64 |.....-..generald| |
294 0020: 65 6c 74 61 2c 72 65 76 6c 6f 67 76 31 00 64 61 |elta,revlogv1.da| | 297 0020: 65 6c 74 61 2c 72 65 76 6c 6f 67 76 31 00 64 61 |elta,revlogv1.da| |
295 0030: 74 61 2f 66 6f 6f 2e 69 00 36 34 0a 00 03 00 01 |ta/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.....| |
299 | |
300 $ hg debugbundle --spec packedgd.hg | |
301 none-packed1;requirements%3Dgeneraldelta%2Crevlogv1 | |
296 | 302 |
297 Unpacking packed1 bundles with "hg unbundle" isn't allowed | 303 Unpacking packed1 bundles with "hg unbundle" isn't allowed |
298 | 304 |
299 $ hg init packed | 305 $ hg init packed |
300 $ hg -R packed unbundle packed.hg | 306 $ hg -R packed unbundle packed.hg |