##// END OF EJS Templates
typing: add stub functions for `cext/charencoding`...
typing: add stub functions for `cext/charencoding` I'm not sure if it's better to have a separate file, and currently pytype doesn't really know how to handle these, so it's no help in figuring that out. Technically, these methods are part of the `mercurial.cext.parsers` module, so put them into the existing stub until there's a reason to split it out.

File last commit:

r52455:eac84af0 stable
r52834:e58f02e2 default
Show More
test-bundle-type.t
712 lines | 20.0 KiB | text/troff | Tads3Lexer
/ tests / test-bundle-type.t
Martin Geisler
tests: unify test-bundle-type
r11872 bundle w/o type option
$ hg init t1
$ hg init t2
$ cd t1
$ echo blablablablabla > file.txt
bundle: expand the graph we us for bundletype/bundlespec tests...
r51202 $ hg ci -A -m commit_root
Martin Geisler
tests: unify test-bundle-type
r11872 adding file.txt
bundle: expand the graph we us for bundletype/bundlespec tests...
r51202 $ echo kapoue > file.txt
$ hg ci -m commit_1
$ echo scrabageul > file.txt
$ hg ci -m commit_2
$ hg up 'desc("commit_root")'
1 files updated, 0 files merged, 0 files removed, 0 files unresolved
$ echo flagabalagla > file.txt
$ hg ci -m commit_3
created new head
$ echo aliofia > file.txt
$ hg ci -m commit_4
$ echo alklqo > file.txt
$ hg ci -m commit_5
$ echo peakfeo > file.txt
bundle: add some phase boundary in the bundle type test case...
r51203 $ hg ci -m commit_6 --secret
$ hg phase --public --rev 'desc(commit_3)'
bundle: expand the graph we us for bundletype/bundlespec tests...
r51202 $ hg log -GT '[{phase}] {desc|firstline}\n'
bundle: add some phase boundary in the bundle type test case...
r51203 @ [secret] commit_6
bundle: expand the graph we us for bundletype/bundlespec tests...
r51202 |
o [draft] commit_5
|
o [draft] commit_4
|
bundle: add some phase boundary in the bundle type test case...
r51203 o [public] commit_3
bundle: expand the graph we us for bundletype/bundlespec tests...
r51202 |
| o [draft] commit_2
| |
| o [draft] commit_1
|/
bundle: add some phase boundary in the bundle type test case...
r51203 o [public] commit_root
bundle: expand the graph we us for bundletype/bundlespec tests...
r51202
bundle: add some phase boundary in the bundle type test case...
r51203 XXX the bundle generation is defined by a discovery round here. So the secret
changeset should be excluded.
bundle: expand the graph we us for bundletype/bundlespec tests...
r51202 $ hg bundle ../b1.hg ../t2
Martin Geisler
tests: unify test-bundle-type
r11872 searching for changes
bundle: add some phase boundary in the bundle type test case...
r51203 7 changesets found (known-bad-output !)
6 changesets found (missing-correct-output !)
bundle: expand the graph we us for bundletype/bundlespec tests...
r51202 $ cd ..
Martin Geisler
tests: unify test-bundle-type
r11872
bundle: expand the graph we us for bundletype/bundlespec tests...
r51202 $ hg -R t2 unbundle ./b1.hg
Martin Geisler
tests: unify test-bundle-type
r11872 adding changesets
adding manifests
adding file changes
bundle: add some phase boundary in the bundle type test case...
r51203 added 7 changesets with 7 changes to 1 files (+1 heads) (known-bad-output !)
added 6 changesets with 6 changes to 1 files (+1 heads) (missing-correct-output !)
bundle: expand the graph we us for bundletype/bundlespec tests...
r51202 new changesets ac39af4a9f7d:b9f5f740a8cd (7 drafts)
(run 'hg heads' to see heads, 'hg merge' to merge)
$ hg -R t2 up
Martin Geisler
tests: unify test-bundle-type
r11872 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
bundle: expand the graph we us for bundletype/bundlespec tests...
r51202 updated to "b9f5f740a8cd: commit_6"
1 other heads for branch "default"
$ hg -R t2 log -GT '[{phase}] {desc|firstline}\n'
bundle: add some phase boundary in the bundle type test case...
r51203 @ [draft] commit_6 (known-bad-output !)
| (known-bad-output !)
bundle: expand the graph we us for bundletype/bundlespec tests...
r51202 o [draft] commit_5
|
o [draft] commit_4
|
o [draft] commit_3
|
| o [draft] commit_2
| |
| o [draft] commit_1
|/
o [draft] commit_root
Martin Geisler
tests: unify test-bundle-type
r11872
Gregory Szorc
exchange: reject new compression engines for v1 bundles (issue5506)...
r31473 Unknown compression type is rejected
$ hg init t3
bundle: expand the graph we us for bundletype/bundlespec tests...
r51202 $ hg -R t3 -q unbundle ./b1.hg
$ hg -R t3 bundle -a -t unknown out.hg
Gregory Szorc
exchange: reject new compression engines for v1 bundles (issue5506)...
r31473 abort: unknown is not a recognized bundle specification
Gregory Szorc
commands: update help for "bundle"...
r31794 (see 'hg help bundlespec' for supported values for --type)
Martin von Zweigbergk
errors: introduce InputError and use it from commands and cmdutil...
r46431 [10]
Gregory Szorc
exchange: reject new compression engines for v1 bundles (issue5506)...
r31473
bundle: expand the graph we us for bundletype/bundlespec tests...
r51202 $ hg -R t3 bundle -a -t unknown-v2 out.hg
Gregory Szorc
exchange: reject new compression engines for v1 bundles (issue5506)...
r31473 abort: unknown compression is not supported
Gregory Szorc
commands: update help for "bundle"...
r31794 (see 'hg help bundlespec' for supported values for --type)
Martin von Zweigbergk
errors: introduce InputError and use it from commands and cmdutil...
r46431 [10]
Gregory Szorc
exchange: reject new compression engines for v1 bundles (issue5506)...
r31473
Martin Geisler
tests: unify test-bundle-type
r11872 test bundle types
bundle: add some phase boundary in the bundle type test case...
r51203 =================
since we use --all, it is okay to include the secret changeset here. It is
unfortunate that the phase information for the secret one is lost.
Martin Geisler
tests: unify test-bundle-type
r11872
Gregory Szorc
util: implement zstd compression engine...
r30442 $ testbundle() {
> echo % test bundle type $1
bundle: add some phase boundary in the bundle type test case...
r51203 > echo '==================================='
bundle: expand the graph we us for bundletype/bundlespec tests...
r51202 > hg -R t1 bundle --all --type $1 ./b-$1.hg
> f -q -B6 -D ./b-$1.hg; echo
> hg debugbundle ./b-$1.hg
> hg debugbundle --spec ./b-$1.hg
Pierre-Yves David
test-bundle-type: replace unbundle with debugbundle...
r26511 > echo
bundle: add some phase boundary in the bundle type test case...
r51203 > hg init repo-from-type-$1
> hg unbundle -R repo-from-type-$1 ./b-$1.hg
> hg -R repo-from-type-$1 log -GT '[{phase}] {desc|firstline}\n'
> echo
Gregory Szorc
util: implement zstd compression engine...
r30442 > }
bundle: introduce a "v3" spec...
r51204 $ for t in "None" "bzip2" "gzip" "none-v2" "v2" "v1" "gzip-v1" "v3"; do
Gregory Szorc
util: implement zstd compression engine...
r30442 > testbundle $t
Martin Geisler
tests: unify test-bundle-type
r11872 > done
% test bundle type None
bundle: add some phase boundary in the bundle type test case...
r51203 ===================================
bundle: expand the graph we us for bundletype/bundlespec tests...
r51202 7 changesets found
Pierre-Yves David
test: use generaldelta in 'test-bundle-type.t'...
r26925 HG20\x00\x00 (esc)
Stream params: {}
bundle: expand the graph we us for bundletype/bundlespec tests...
r51202 changegroup -- {nbchanges: 7, version: 02} (mandatory: True)
ac39af4a9f7d2aaa7d244720e57838be9bf63b03
901e97fadc587978ec52f2fa76af4aefc2d191e8
a8c3a1ed30eb71f03f476c5fa7ead831ef991a55
66e2c4b43e0cf8f0bdff0733a0b97ce57874e35d
624e609639853fe22c88d42a8fd1f53a0e9b7ebe
2ea90778052ba7558fab36e3fd5d149512ff986b
b9f5f740a8cd76700020e3903ee55ecff78bd3e5
Boris Feld
bundle2: mark the bundle2 part as advisory (issue5872)...
r37920 cache:rev-branch-cache -- {} (mandatory: False)
Gregory Szorc
commands: teach debugbundle to print bundle specification...
r27885 none-v2
Pierre-Yves David
test-bundle-type: replace unbundle with debugbundle...
r26511
bundle: add some phase boundary in the bundle type test case...
r51203 adding changesets
adding manifests
adding file changes
added 7 changesets with 7 changes to 1 files (+1 heads)
new changesets ac39af4a9f7d:b9f5f740a8cd (7 drafts)
(run 'hg heads' to see heads, 'hg merge' to merge)
o [draft] commit_6
|
o [draft] commit_5
|
o [draft] commit_4
|
o [draft] commit_3
|
| o [draft] commit_2
| |
| o [draft] commit_1
|/
o [draft] commit_root
Martin Geisler
tests: unify test-bundle-type
r11872 % test bundle type bzip2
bundle: add some phase boundary in the bundle type test case...
r51203 ===================================
bundle: expand the graph we us for bundletype/bundlespec tests...
r51202 7 changesets found
Pierre-Yves David
test: use generaldelta in 'test-bundle-type.t'...
r26925 HG20\x00\x00 (esc)
Augie Fackler
debugcommands: stabilize output of debugbundle by having a custom repr...
r34027 Stream params: {Compression: BZ}
bundle: expand the graph we us for bundletype/bundlespec tests...
r51202 changegroup -- {nbchanges: 7, version: 02} (mandatory: True)
ac39af4a9f7d2aaa7d244720e57838be9bf63b03
901e97fadc587978ec52f2fa76af4aefc2d191e8
a8c3a1ed30eb71f03f476c5fa7ead831ef991a55
66e2c4b43e0cf8f0bdff0733a0b97ce57874e35d
624e609639853fe22c88d42a8fd1f53a0e9b7ebe
2ea90778052ba7558fab36e3fd5d149512ff986b
b9f5f740a8cd76700020e3903ee55ecff78bd3e5
Boris Feld
bundle2: mark the bundle2 part as advisory (issue5872)...
r37920 cache:rev-branch-cache -- {} (mandatory: False)
Gregory Szorc
commands: teach debugbundle to print bundle specification...
r27885 bzip2-v2
Pierre-Yves David
test-bundle-type: replace unbundle with debugbundle...
r26511
bundle: add some phase boundary in the bundle type test case...
r51203 adding changesets
adding manifests
adding file changes
added 7 changesets with 7 changes to 1 files (+1 heads)
new changesets ac39af4a9f7d:b9f5f740a8cd (7 drafts)
(run 'hg heads' to see heads, 'hg merge' to merge)
o [draft] commit_6
|
o [draft] commit_5
|
o [draft] commit_4
|
o [draft] commit_3
|
| o [draft] commit_2
| |
| o [draft] commit_1
|/
o [draft] commit_root
Martin Geisler
tests: unify test-bundle-type
r11872 % test bundle type gzip
bundle: add some phase boundary in the bundle type test case...
r51203 ===================================
bundle: expand the graph we us for bundletype/bundlespec tests...
r51202 7 changesets found
Pierre-Yves David
test: use generaldelta in 'test-bundle-type.t'...
r26925 HG20\x00\x00 (esc)
Augie Fackler
debugcommands: stabilize output of debugbundle by having a custom repr...
r34027 Stream params: {Compression: GZ}
bundle: expand the graph we us for bundletype/bundlespec tests...
r51202 changegroup -- {nbchanges: 7, version: 02} (mandatory: True)
ac39af4a9f7d2aaa7d244720e57838be9bf63b03
901e97fadc587978ec52f2fa76af4aefc2d191e8
a8c3a1ed30eb71f03f476c5fa7ead831ef991a55
66e2c4b43e0cf8f0bdff0733a0b97ce57874e35d
624e609639853fe22c88d42a8fd1f53a0e9b7ebe
2ea90778052ba7558fab36e3fd5d149512ff986b
b9f5f740a8cd76700020e3903ee55ecff78bd3e5
Boris Feld
bundle2: mark the bundle2 part as advisory (issue5872)...
r37920 cache:rev-branch-cache -- {} (mandatory: False)
Gregory Szorc
commands: teach debugbundle to print bundle specification...
r27885 gzip-v2
Pierre-Yves David
test-bundle-type: replace unbundle with debugbundle...
r26511
bundle: add some phase boundary in the bundle type test case...
r51203 adding changesets
adding manifests
adding file changes
added 7 changesets with 7 changes to 1 files (+1 heads)
new changesets ac39af4a9f7d:b9f5f740a8cd (7 drafts)
(run 'hg heads' to see heads, 'hg merge' to merge)
o [draft] commit_6
|
o [draft] commit_5
|
o [draft] commit_4
|
o [draft] commit_3
|
| o [draft] commit_2
| |
| o [draft] commit_1
|/
o [draft] commit_root
Pierre-Yves David
bundle: extend the format of --type to support version and compression...
r26531 % test bundle type none-v2
bundle: add some phase boundary in the bundle type test case...
r51203 ===================================
bundle: expand the graph we us for bundletype/bundlespec tests...
r51202 7 changesets found
Pierre-Yves David
bundle: extend the format of --type to support version and compression...
r26531 HG20\x00\x00 (esc)
Stream params: {}
bundle: expand the graph we us for bundletype/bundlespec tests...
r51202 changegroup -- {nbchanges: 7, version: 02} (mandatory: True)
ac39af4a9f7d2aaa7d244720e57838be9bf63b03
901e97fadc587978ec52f2fa76af4aefc2d191e8
a8c3a1ed30eb71f03f476c5fa7ead831ef991a55
66e2c4b43e0cf8f0bdff0733a0b97ce57874e35d
624e609639853fe22c88d42a8fd1f53a0e9b7ebe
2ea90778052ba7558fab36e3fd5d149512ff986b
b9f5f740a8cd76700020e3903ee55ecff78bd3e5
Boris Feld
bundle2: mark the bundle2 part as advisory (issue5872)...
r37920 cache:rev-branch-cache -- {} (mandatory: False)
Gregory Szorc
commands: teach debugbundle to print bundle specification...
r27885 none-v2
Pierre-Yves David
bundle: extend the format of --type to support version and compression...
r26531
bundle: add some phase boundary in the bundle type test case...
r51203 adding changesets
adding manifests
adding file changes
added 7 changesets with 7 changes to 1 files (+1 heads)
new changesets ac39af4a9f7d:b9f5f740a8cd (7 drafts)
(run 'hg heads' to see heads, 'hg merge' to merge)
o [draft] commit_6
|
o [draft] commit_5
|
o [draft] commit_4
|
o [draft] commit_3
|
| o [draft] commit_2
| |
| o [draft] commit_1
|/
o [draft] commit_root
Pierre-Yves David
bundle: extend the format of --type to support version and compression...
r26531 % test bundle type v2
bundle: add some phase boundary in the bundle type test case...
r51203 ===================================
bundle: expand the graph we us for bundletype/bundlespec tests...
r51202 7 changesets found
Pierre-Yves David
bundle: extend the format of --type to support version and compression...
r26531 HG20\x00\x00 (esc)
Augie Fackler
debugcommands: stabilize output of debugbundle by having a custom repr...
r34027 Stream params: {Compression: BZ}
bundle: expand the graph we us for bundletype/bundlespec tests...
r51202 changegroup -- {nbchanges: 7, version: 02} (mandatory: True)
ac39af4a9f7d2aaa7d244720e57838be9bf63b03
901e97fadc587978ec52f2fa76af4aefc2d191e8
a8c3a1ed30eb71f03f476c5fa7ead831ef991a55
66e2c4b43e0cf8f0bdff0733a0b97ce57874e35d
624e609639853fe22c88d42a8fd1f53a0e9b7ebe
2ea90778052ba7558fab36e3fd5d149512ff986b
b9f5f740a8cd76700020e3903ee55ecff78bd3e5
Boris Feld
bundle2: mark the bundle2 part as advisory (issue5872)...
r37920 cache:rev-branch-cache -- {} (mandatory: False)
Gregory Szorc
commands: teach debugbundle to print bundle specification...
r27885 bzip2-v2
Pierre-Yves David
bundle: extend the format of --type to support version and compression...
r26531
bundle: add some phase boundary in the bundle type test case...
r51203 adding changesets
adding manifests
adding file changes
added 7 changesets with 7 changes to 1 files (+1 heads)
new changesets ac39af4a9f7d:b9f5f740a8cd (7 drafts)
(run 'hg heads' to see heads, 'hg merge' to merge)
o [draft] commit_6
|
o [draft] commit_5
|
o [draft] commit_4
|
o [draft] commit_3
|
| o [draft] commit_2
| |
| o [draft] commit_1
|/
o [draft] commit_root
Pierre-Yves David
bundle: extend the format of --type to support version and compression...
r26531 % test bundle type v1
bundle: add some phase boundary in the bundle type test case...
r51203 ===================================
bundle: expand the graph we us for bundletype/bundlespec tests...
r51202 7 changesets found
Pierre-Yves David
bundle: extend the format of --type to support version and compression...
r26531 HG10BZ
bundle: expand the graph we us for bundletype/bundlespec tests...
r51202 ac39af4a9f7d2aaa7d244720e57838be9bf63b03
901e97fadc587978ec52f2fa76af4aefc2d191e8
a8c3a1ed30eb71f03f476c5fa7ead831ef991a55
66e2c4b43e0cf8f0bdff0733a0b97ce57874e35d
624e609639853fe22c88d42a8fd1f53a0e9b7ebe
2ea90778052ba7558fab36e3fd5d149512ff986b
b9f5f740a8cd76700020e3903ee55ecff78bd3e5
Gregory Szorc
commands: teach debugbundle to print bundle specification...
r27885 bzip2-v1
Pierre-Yves David
bundle: extend the format of --type to support version and compression...
r26531
bundle: add some phase boundary in the bundle type test case...
r51203 adding changesets
adding manifests
adding file changes
added 7 changesets with 7 changes to 1 files (+1 heads)
new changesets ac39af4a9f7d:b9f5f740a8cd (7 drafts)
(run 'hg heads' to see heads, 'hg merge' to merge)
o [draft] commit_6
|
o [draft] commit_5
|
o [draft] commit_4
|
o [draft] commit_3
|
| o [draft] commit_2
| |
| o [draft] commit_1
|/
o [draft] commit_root
Pierre-Yves David
bundle: extend the format of --type to support version and compression...
r26531 % test bundle type gzip-v1
bundle: add some phase boundary in the bundle type test case...
r51203 ===================================
bundle: expand the graph we us for bundletype/bundlespec tests...
r51202 7 changesets found
Pierre-Yves David
bundle: extend the format of --type to support version and compression...
r26531 HG10GZ
bundle: expand the graph we us for bundletype/bundlespec tests...
r51202 ac39af4a9f7d2aaa7d244720e57838be9bf63b03
901e97fadc587978ec52f2fa76af4aefc2d191e8
a8c3a1ed30eb71f03f476c5fa7ead831ef991a55
66e2c4b43e0cf8f0bdff0733a0b97ce57874e35d
624e609639853fe22c88d42a8fd1f53a0e9b7ebe
2ea90778052ba7558fab36e3fd5d149512ff986b
b9f5f740a8cd76700020e3903ee55ecff78bd3e5
Gregory Szorc
commands: teach debugbundle to print bundle specification...
r27885 gzip-v1
Pierre-Yves David
bundle: extend the format of --type to support version and compression...
r26531
bundle: add some phase boundary in the bundle type test case...
r51203 adding changesets
adding manifests
adding file changes
added 7 changesets with 7 changes to 1 files (+1 heads)
new changesets ac39af4a9f7d:b9f5f740a8cd (7 drafts)
(run 'hg heads' to see heads, 'hg merge' to merge)
o [draft] commit_6
|
o [draft] commit_5
|
o [draft] commit_4
|
o [draft] commit_3
|
| o [draft] commit_2
| |
| o [draft] commit_1
|/
o [draft] commit_root
bundle: introduce a "v3" spec...
r51204 % test bundle type v3
===================================
7 changesets found
HG20\x00\x00 (esc)
Stream params: {Compression: BZ}
changegroup -- {nbchanges: 7, targetphase: 2, version: 03} (mandatory: True)
ac39af4a9f7d2aaa7d244720e57838be9bf63b03
901e97fadc587978ec52f2fa76af4aefc2d191e8
a8c3a1ed30eb71f03f476c5fa7ead831ef991a55
66e2c4b43e0cf8f0bdff0733a0b97ce57874e35d
624e609639853fe22c88d42a8fd1f53a0e9b7ebe
2ea90778052ba7558fab36e3fd5d149512ff986b
b9f5f740a8cd76700020e3903ee55ecff78bd3e5
cache:rev-branch-cache -- {} (mandatory: False)
phase-heads -- {} (mandatory: True)
66e2c4b43e0cf8f0bdff0733a0b97ce57874e35d public
a8c3a1ed30eb71f03f476c5fa7ead831ef991a55 draft
2ea90778052ba7558fab36e3fd5d149512ff986b draft
Jason R. Coombs , Pierre-Yves David pierre-yves.david@octobus.net
bundle: include required phases when saving a bundle (issue6794)...
r51206 b9f5f740a8cd76700020e3903ee55ecff78bd3e5 secret
bundle: introduce a "v3" spec...
r51204 bzip2-v2;cg.version=03
adding changesets
adding manifests
adding file changes
added 7 changesets with 7 changes to 1 files (+1 heads)
new changesets ac39af4a9f7d:b9f5f740a8cd (4 drafts, 1 secrets)
(run 'hg heads' to see heads, 'hg merge' to merge)
o [secret] commit_6
|
o [draft] commit_5
|
o [draft] commit_4
|
o [public] commit_3
|
| o [draft] commit_2
| |
| o [draft] commit_1
|/
o [public] commit_root
Gregory Szorc
commands: config option to control bundle compression level...
r30758
Compression level can be adjusted for bundle2 bundles
$ hg init test-complevel
$ cd test-complevel
$ cat > file0 << EOF
> this is a file
> with some text
> and some more text
> and other content
> EOF
$ cat > file1 << EOF
> this is another file
> with some other content
> and repeated, repeated, repeated, repeated content
> EOF
$ hg -q commit -A -m initial
$ hg bundle -a -t gzip-v2 gzip-v2.hg
1 changesets found
$ f --size gzip-v2.hg
Boris Feld
bundle: include advisory rev branch cache part in bundle2 bundle...
r36983 gzip-v2.hg: size=468
Gregory Szorc
commands: config option to control bundle compression level...
r30758
$ hg --config experimental.bundlecomplevel=1 bundle -a -t gzip-v2 gzip-v2-level1.hg
1 changesets found
$ f --size gzip-v2-level1.hg
Boris Feld
bundle: include advisory rev branch cache part in bundle2 bundle...
r36983 gzip-v2-level1.hg: size=475
Gregory Szorc
commands: config option to control bundle compression level...
r30758
Joerg Sonnenberger
bundle: introduce per-engine compression level...
r37787 $ hg --config experimental.bundlecomplevel.gzip=1 --config experimental.bundlelevel=9 bundle -a -t gzip-v2 gzip-v2-level1.hg
1 changesets found
$ f --size gzip-v2-level1.hg
gzip-v2-level1.hg: size=475
Gregory Szorc
commands: config option to control bundle compression level...
r30758 $ cd ..
Gregory Szorc
util: implement zstd compression engine...
r30442 #if zstd
$ for t in "zstd" "zstd-v2"; do
> testbundle $t
> done
% test bundle type zstd
bundle: add some phase boundary in the bundle type test case...
r51203 ===================================
bundle: expand the graph we us for bundletype/bundlespec tests...
r51202 7 changesets found
Gregory Szorc
util: implement zstd compression engine...
r30442 HG20\x00\x00 (esc)
Augie Fackler
debugcommands: stabilize output of debugbundle by having a custom repr...
r34027 Stream params: {Compression: ZS}
bundle: expand the graph we us for bundletype/bundlespec tests...
r51202 changegroup -- {nbchanges: 7, version: 02} (mandatory: True)
ac39af4a9f7d2aaa7d244720e57838be9bf63b03
901e97fadc587978ec52f2fa76af4aefc2d191e8
a8c3a1ed30eb71f03f476c5fa7ead831ef991a55
66e2c4b43e0cf8f0bdff0733a0b97ce57874e35d
624e609639853fe22c88d42a8fd1f53a0e9b7ebe
2ea90778052ba7558fab36e3fd5d149512ff986b
b9f5f740a8cd76700020e3903ee55ecff78bd3e5
Boris Feld
bundle2: mark the bundle2 part as advisory (issue5872)...
r37920 cache:rev-branch-cache -- {} (mandatory: False)
Gregory Szorc
util: implement zstd compression engine...
r30442 zstd-v2
bundle: add some phase boundary in the bundle type test case...
r51203 adding changesets
adding manifests
adding file changes
added 7 changesets with 7 changes to 1 files (+1 heads)
new changesets ac39af4a9f7d:b9f5f740a8cd (7 drafts)
(run 'hg heads' to see heads, 'hg merge' to merge)
o [draft] commit_6
|
o [draft] commit_5
|
o [draft] commit_4
|
o [draft] commit_3
|
| o [draft] commit_2
| |
| o [draft] commit_1
|/
o [draft] commit_root
Gregory Szorc
util: implement zstd compression engine...
r30442 % test bundle type zstd-v2
bundle: add some phase boundary in the bundle type test case...
r51203 ===================================
bundle: expand the graph we us for bundletype/bundlespec tests...
r51202 7 changesets found
Gregory Szorc
util: implement zstd compression engine...
r30442 HG20\x00\x00 (esc)
Augie Fackler
debugcommands: stabilize output of debugbundle by having a custom repr...
r34027 Stream params: {Compression: ZS}
bundle: expand the graph we us for bundletype/bundlespec tests...
r51202 changegroup -- {nbchanges: 7, version: 02} (mandatory: True)
ac39af4a9f7d2aaa7d244720e57838be9bf63b03
901e97fadc587978ec52f2fa76af4aefc2d191e8
a8c3a1ed30eb71f03f476c5fa7ead831ef991a55
66e2c4b43e0cf8f0bdff0733a0b97ce57874e35d
624e609639853fe22c88d42a8fd1f53a0e9b7ebe
2ea90778052ba7558fab36e3fd5d149512ff986b
b9f5f740a8cd76700020e3903ee55ecff78bd3e5
Boris Feld
bundle2: mark the bundle2 part as advisory (issue5872)...
r37920 cache:rev-branch-cache -- {} (mandatory: False)
Gregory Szorc
util: implement zstd compression engine...
r30442 zstd-v2
bundle: add some phase boundary in the bundle type test case...
r51203 adding changesets
adding manifests
adding file changes
added 7 changesets with 7 changes to 1 files (+1 heads)
new changesets ac39af4a9f7d:b9f5f740a8cd (7 drafts)
(run 'hg heads' to see heads, 'hg merge' to merge)
o [draft] commit_6
|
o [draft] commit_5
|
o [draft] commit_4
|
o [draft] commit_3
|
| o [draft] commit_2
| |
| o [draft] commit_1
|/
o [draft] commit_root
Gregory Szorc
exchange: reject new compression engines for v1 bundles (issue5506)...
r31473
Explicit request for zstd on non-generaldelta repos
$ hg --config format.usegeneraldelta=false init nogd
$ hg -q -R nogd pull t1
$ hg -R nogd bundle -a -t zstd nogd-zstd
bundle: add some phase boundary in the bundle type test case...
r51203 6 changesets found
Gregory Szorc
exchange: reject new compression engines for v1 bundles (issue5506)...
r31473
zstd-v1 always fails
bundle: expand the graph we us for bundletype/bundlespec tests...
r51202 $ hg -R t1 bundle -a -t zstd-v1 zstd-v1
Gregory Szorc
exchange: reject new compression engines for v1 bundles (issue5506)...
r31473 abort: compression engine zstd is not supported on v1 bundles
Gregory Szorc
commands: update help for "bundle"...
r31794 (see 'hg help bundlespec' for supported values for --type)
Martin von Zweigbergk
errors: introduce InputError and use it from commands and cmdutil...
r46431 [10]
Gregory Szorc
exchange: reject new compression engines for v1 bundles (issue5506)...
r31473
Joerg Sonnenberger
bundle: optional multithreaded compression, ATM zstd-only...
r47534 zstd supports threading
$ hg init test-compthreads
$ cd test-compthreads
$ hg debugbuilddag +3
$ hg --config experimental.bundlecompthreads=1 bundle -a -t zstd-v2 zstd-v2-threaded.hg
3 changesets found
$ cd ..
Gregory Szorc
util: implement zstd compression engine...
r30442 #else
zstd is a valid engine but isn't available
$ hg -R t1 bundle -a -t zstd irrelevant.hg
abort: compression engine zstd could not be loaded
[255]
#endif
Martin Geisler
tests: unify test-bundle-type
r11872
test garbage file
$ echo garbage > bgarbage
$ hg init tgarbage
$ cd tgarbage
$ hg pull ../bgarbage
Thomas Arendsen Hein
pull: print "pulling from foo" before accessing the other repo...
r24138 pulling from ../bgarbage
Matt Mackall
bundlerepo: remove duplication of bundle decompressors
r12044 abort: ../bgarbage: not a Mercurial bundle
Matt Mackall
tests: add exit codes to unified tests
r12316 [255]
Martin Geisler
tests: unify test-bundle-type
r11872 $ cd ..
test invalid bundle type
$ cd t1
$ hg bundle -a -t garbage ../bgarbage
Gregory Szorc
exchange: refactor bundle specification parsing...
r26640 abort: garbage is not a recognized bundle specification
Gregory Szorc
commands: update help for "bundle"...
r31794 (see 'hg help bundlespec' for supported values for --type)
Martin von Zweigbergk
errors: introduce InputError and use it from commands and cmdutil...
r46431 [10]
Martin Geisler
tests: unify test-bundle-type
r11872 $ cd ..
bundlespec: allow the bundle spec to control the bundle version...
r50228
Test controlling the changegroup version
$ hg -R t1 bundle --config experimental.changegroup3=yes -a -t v2 ./v2-cg-default.hg
bundle: expand the graph we us for bundletype/bundlespec tests...
r51202 7 changesets found
bundlespec: allow the bundle spec to control the bundle version...
r50228 $ hg debugbundle ./v2-cg-default.hg --part-type changegroup
Stream params: {Compression: BZ}
bundle: expand the graph we us for bundletype/bundlespec tests...
r51202 changegroup -- {nbchanges: 7, version: 02} (mandatory: True)
ac39af4a9f7d2aaa7d244720e57838be9bf63b03
901e97fadc587978ec52f2fa76af4aefc2d191e8
a8c3a1ed30eb71f03f476c5fa7ead831ef991a55
66e2c4b43e0cf8f0bdff0733a0b97ce57874e35d
624e609639853fe22c88d42a8fd1f53a0e9b7ebe
2ea90778052ba7558fab36e3fd5d149512ff986b
b9f5f740a8cd76700020e3903ee55ecff78bd3e5
bundlespec: allow the bundle spec to control the bundle version...
r50228 $ hg debugbundle ./v2-cg-default.hg --spec
bzip2-v2
$ hg -R t1 bundle --config experimental.changegroup3=yes -a -t 'v2;cg.version=02' ./v2-cg-02.hg
bundle: expand the graph we us for bundletype/bundlespec tests...
r51202 7 changesets found
bundlespec: allow the bundle spec to control the bundle version...
r50228 $ hg debugbundle ./v2-cg-02.hg --part-type changegroup
Stream params: {Compression: BZ}
bundle: expand the graph we us for bundletype/bundlespec tests...
r51202 changegroup -- {nbchanges: 7, version: 02} (mandatory: True)
ac39af4a9f7d2aaa7d244720e57838be9bf63b03
901e97fadc587978ec52f2fa76af4aefc2d191e8
a8c3a1ed30eb71f03f476c5fa7ead831ef991a55
66e2c4b43e0cf8f0bdff0733a0b97ce57874e35d
624e609639853fe22c88d42a8fd1f53a0e9b7ebe
2ea90778052ba7558fab36e3fd5d149512ff986b
b9f5f740a8cd76700020e3903ee55ecff78bd3e5
bundlespec: allow the bundle spec to control the bundle version...
r50228 $ hg debugbundle ./v2-cg-02.hg --spec
bzip2-v2
$ hg -R t1 bundle --config experimental.changegroup3=yes -a -t 'v2;cg.version=03' ./v2-cg-03.hg
bundle: expand the graph we us for bundletype/bundlespec tests...
r51202 7 changesets found
bundlespec: allow the bundle spec to control the bundle version...
r50228 $ hg debugbundle ./v2-cg-03.hg --part-type changegroup
Stream params: {Compression: BZ}
bundle: expand the graph we us for bundletype/bundlespec tests...
r51202 changegroup -- {nbchanges: 7, version: 03} (mandatory: True)
ac39af4a9f7d2aaa7d244720e57838be9bf63b03
901e97fadc587978ec52f2fa76af4aefc2d191e8
a8c3a1ed30eb71f03f476c5fa7ead831ef991a55
66e2c4b43e0cf8f0bdff0733a0b97ce57874e35d
624e609639853fe22c88d42a8fd1f53a0e9b7ebe
2ea90778052ba7558fab36e3fd5d149512ff986b
b9f5f740a8cd76700020e3903ee55ecff78bd3e5
bundlespec: allow the bundle spec to control the bundle version...
r50228 $ hg debugbundle ./v2-cg-03.hg --spec
bundlespec: fix the generation of bundlespec for `cg.version`...
r50229 bzip2-v2;cg.version=03
bundle-spec: properly parse boolean configuration as boolean...
r52455
tests controlling bundle contents
=================================
$ hg debugupdatecache -R t1
default content
---------------
$ hg -R t1 bundle --all --quiet --type 'v2' ./v2.hg
$ hg debugbundle ./v2.hg --spec
bzip2-v2
$ hg debugbundle ./v2.hg --quiet
Stream params: {Compression: BZ}
changegroup -- {nbchanges: 7, version: 02} (mandatory: True)
hgtagsfnodes -- {} (mandatory: False)
cache:rev-branch-cache -- {} (mandatory: False)
$ hg -R t1 bundle --all --quiet --type 'v3' ./v3.hg
$ hg debugbundle ./v3.hg --spec
bzip2-v2;cg.version=03
$ hg debugbundle ./v3.hg --quiet
Stream params: {Compression: BZ}
changegroup -- {nbchanges: 7, targetphase: 2, version: 03} (mandatory: True)
hgtagsfnodes -- {} (mandatory: False)
cache:rev-branch-cache -- {} (mandatory: False)
phase-heads -- {} (mandatory: True)
adding extra parts
------------------
We should have a "phase-heads" part here that we did not had in the default content
$ hg -R t1 bundle --all --quiet --type 'v2;phases=1' ./v2-phases.hg
$ hg debugbundle ./v2-phases.hg --spec
bzip2-v2
$ hg debugbundle ./v2-phases.hg --quiet
Stream params: {Compression: BZ}
changegroup -- {nbchanges: 7, targetphase: 2, version: 02} (mandatory: True)
hgtagsfnodes -- {} (mandatory: False)
cache:rev-branch-cache -- {} (mandatory: False)
phase-heads -- {} (mandatory: True)
skipping default inclusion
--------------------------
$ hg -R t1 bundle --all --quiet --type 'v2;tagsfnodescache=false' ./v2-no-tfc.hg
$ hg debugbundle ./v2-no-tfc.hg --spec
bzip2-v2
$ hg debugbundle ./v2-no-tfc.hg --quiet
Stream params: {Compression: BZ}
changegroup -- {nbchanges: 7, version: 02} (mandatory: True)
cache:rev-branch-cache -- {} (mandatory: False)
$ hg -R t1 bundle --all --quiet --type 'v3;phases=0' ./v3-no-phases.hg
$ hg debugbundle ./v3-no-phases.hg --spec
bzip2-v2;cg.version=03
$ hg debugbundle ./v3-no-phases.hg --quiet
Stream params: {Compression: BZ}
changegroup -- {nbchanges: 7, version: 03} (mandatory: True)
hgtagsfnodes -- {} (mandatory: False)
cache:rev-branch-cache -- {} (mandatory: False)
$ hg -R t1 bundle --all --quiet --type 'v3;phases=no;tagsfnodescache=0' ./v3-multi-no.hg
$ hg debugbundle ./v3-multi-no.hg --spec
bzip2-v2;cg.version=03
$ hg debugbundle ./v3-multi-no.hg --quiet
Stream params: {Compression: BZ}
changegroup -- {nbchanges: 7, version: 03} (mandatory: True)
cache:rev-branch-cache -- {} (mandatory: False)
skipping changegroup
--------------------
$ hg -R t1 bundle --all --quiet --type 'v2;changegroup=no' ./v2-no-cg.hg
$ hg debugbundle ./v2-no-cg.hg --spec
bzip2-v2;changegroup=no
$ hg debugbundle ./v2-no-cg.hg --quiet
Stream params: {Compression: BZ}
hgtagsfnodes -- {} (mandatory: False)
cache:rev-branch-cache -- {} (mandatory: False)
$ hg -R t1 bundle --all --quiet --type 'v3;changegroup=0' ./v3-no-cg.hg
$ hg debugbundle ./v3-no-cg.hg --spec
bzip2-v2;changegroup=no
$ hg debugbundle ./v3-no-cg.hg --quiet
Stream params: {Compression: BZ}
hgtagsfnodes -- {} (mandatory: False)
cache:rev-branch-cache -- {} (mandatory: False)
phase-heads -- {} (mandatory: True)