Mercurial > hg-stable
diff 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 |
line wrap: on
line diff
--- a/tests/test-bundle.t Thu Jan 14 21:27:53 2016 -0800 +++ b/tests/test-bundle.t Thu Jan 14 22:57:55 2016 -0800 @@ -276,6 +276,9 @@ 0020: 65 6c 74 61 2c 72 65 76 6c 6f 67 76 31 00 64 61 |elta,revlogv1.da| 0030: 74 61 2f 61 64 69 66 66 65 72 65 6e 74 66 69 6c |ta/adifferentfil| + $ hg debugbundle --spec packed.hg + none-packed1;requirements%3Dgeneraldelta%2Crevlogv1 + generaldelta requirement is listed in stream clone bundles $ hg --config format.generaldelta=true init testgd @@ -294,6 +297,9 @@ 0020: 65 6c 74 61 2c 72 65 76 6c 6f 67 76 31 00 64 61 |elta,revlogv1.da| 0030: 74 61 2f 66 6f 6f 2e 69 00 36 34 0a 00 03 00 01 |ta/foo.i.64.....| + $ hg debugbundle --spec packedgd.hg + none-packed1;requirements%3Dgeneraldelta%2Crevlogv1 + Unpacking packed1 bundles with "hg unbundle" isn't allowed $ hg init packed