Mercurial > hg
annotate tests/test-bundle-type.t @ 50388:3cde8ed567d3
bundle: expand the graph we us for bundletype/bundlespec tests
We are about to test more things, especially phase bundling, so we need a graph
a bit more complex than a single node.
The test "code" was a bit simplified in the process, but no test-semantic
changes were made.
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Wed, 08 Mar 2023 15:21:39 +0100 |
parents | 6d15a8971e30 |
children | b61e5f763e01 |
rev | line source |
---|---|
11872
bc436a97038b
tests: unify test-bundle-type
Martin Geisler <mg@lazybytes.net>
parents:
7171
diff
changeset
|
1 bundle w/o type option |
bc436a97038b
tests: unify test-bundle-type
Martin Geisler <mg@lazybytes.net>
parents:
7171
diff
changeset
|
2 |
bc436a97038b
tests: unify test-bundle-type
Martin Geisler <mg@lazybytes.net>
parents:
7171
diff
changeset
|
3 $ hg init t1 |
bc436a97038b
tests: unify test-bundle-type
Martin Geisler <mg@lazybytes.net>
parents:
7171
diff
changeset
|
4 $ hg init t2 |
bc436a97038b
tests: unify test-bundle-type
Martin Geisler <mg@lazybytes.net>
parents:
7171
diff
changeset
|
5 $ cd t1 |
bc436a97038b
tests: unify test-bundle-type
Martin Geisler <mg@lazybytes.net>
parents:
7171
diff
changeset
|
6 $ echo blablablablabla > file.txt |
50388
3cde8ed567d3
bundle: expand the graph we us for bundletype/bundlespec tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49334
diff
changeset
|
7 $ hg ci -A -m commit_root |
11872
bc436a97038b
tests: unify test-bundle-type
Martin Geisler <mg@lazybytes.net>
parents:
7171
diff
changeset
|
8 adding file.txt |
50388
3cde8ed567d3
bundle: expand the graph we us for bundletype/bundlespec tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49334
diff
changeset
|
9 $ echo kapoue > file.txt |
3cde8ed567d3
bundle: expand the graph we us for bundletype/bundlespec tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49334
diff
changeset
|
10 $ hg ci -m commit_1 |
3cde8ed567d3
bundle: expand the graph we us for bundletype/bundlespec tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49334
diff
changeset
|
11 $ echo scrabageul > file.txt |
3cde8ed567d3
bundle: expand the graph we us for bundletype/bundlespec tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49334
diff
changeset
|
12 $ hg ci -m commit_2 |
3cde8ed567d3
bundle: expand the graph we us for bundletype/bundlespec tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49334
diff
changeset
|
13 $ hg up 'desc("commit_root")' |
3cde8ed567d3
bundle: expand the graph we us for bundletype/bundlespec tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49334
diff
changeset
|
14 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
3cde8ed567d3
bundle: expand the graph we us for bundletype/bundlespec tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49334
diff
changeset
|
15 $ echo flagabalagla > file.txt |
3cde8ed567d3
bundle: expand the graph we us for bundletype/bundlespec tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49334
diff
changeset
|
16 $ hg ci -m commit_3 |
3cde8ed567d3
bundle: expand the graph we us for bundletype/bundlespec tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49334
diff
changeset
|
17 created new head |
3cde8ed567d3
bundle: expand the graph we us for bundletype/bundlespec tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49334
diff
changeset
|
18 $ echo aliofia > file.txt |
3cde8ed567d3
bundle: expand the graph we us for bundletype/bundlespec tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49334
diff
changeset
|
19 $ hg ci -m commit_4 |
3cde8ed567d3
bundle: expand the graph we us for bundletype/bundlespec tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49334
diff
changeset
|
20 $ echo alklqo > file.txt |
3cde8ed567d3
bundle: expand the graph we us for bundletype/bundlespec tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49334
diff
changeset
|
21 $ hg ci -m commit_5 |
3cde8ed567d3
bundle: expand the graph we us for bundletype/bundlespec tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49334
diff
changeset
|
22 $ echo peakfeo > file.txt |
3cde8ed567d3
bundle: expand the graph we us for bundletype/bundlespec tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49334
diff
changeset
|
23 $ hg ci -m commit_6 |
3cde8ed567d3
bundle: expand the graph we us for bundletype/bundlespec tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49334
diff
changeset
|
24 $ hg log -GT '[{phase}] {desc|firstline}\n' |
3cde8ed567d3
bundle: expand the graph we us for bundletype/bundlespec tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49334
diff
changeset
|
25 @ [draft] commit_6 |
3cde8ed567d3
bundle: expand the graph we us for bundletype/bundlespec tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49334
diff
changeset
|
26 | |
3cde8ed567d3
bundle: expand the graph we us for bundletype/bundlespec tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49334
diff
changeset
|
27 o [draft] commit_5 |
3cde8ed567d3
bundle: expand the graph we us for bundletype/bundlespec tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49334
diff
changeset
|
28 | |
3cde8ed567d3
bundle: expand the graph we us for bundletype/bundlespec tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49334
diff
changeset
|
29 o [draft] commit_4 |
3cde8ed567d3
bundle: expand the graph we us for bundletype/bundlespec tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49334
diff
changeset
|
30 | |
3cde8ed567d3
bundle: expand the graph we us for bundletype/bundlespec tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49334
diff
changeset
|
31 o [draft] commit_3 |
3cde8ed567d3
bundle: expand the graph we us for bundletype/bundlespec tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49334
diff
changeset
|
32 | |
3cde8ed567d3
bundle: expand the graph we us for bundletype/bundlespec tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49334
diff
changeset
|
33 | o [draft] commit_2 |
3cde8ed567d3
bundle: expand the graph we us for bundletype/bundlespec tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49334
diff
changeset
|
34 | | |
3cde8ed567d3
bundle: expand the graph we us for bundletype/bundlespec tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49334
diff
changeset
|
35 | o [draft] commit_1 |
3cde8ed567d3
bundle: expand the graph we us for bundletype/bundlespec tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49334
diff
changeset
|
36 |/ |
3cde8ed567d3
bundle: expand the graph we us for bundletype/bundlespec tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49334
diff
changeset
|
37 o [draft] commit_root |
3cde8ed567d3
bundle: expand the graph we us for bundletype/bundlespec tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49334
diff
changeset
|
38 |
3cde8ed567d3
bundle: expand the graph we us for bundletype/bundlespec tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49334
diff
changeset
|
39 |
3cde8ed567d3
bundle: expand the graph we us for bundletype/bundlespec tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49334
diff
changeset
|
40 $ hg bundle ../b1.hg ../t2 |
11872
bc436a97038b
tests: unify test-bundle-type
Martin Geisler <mg@lazybytes.net>
parents:
7171
diff
changeset
|
41 searching for changes |
50388
3cde8ed567d3
bundle: expand the graph we us for bundletype/bundlespec tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49334
diff
changeset
|
42 7 changesets found |
3cde8ed567d3
bundle: expand the graph we us for bundletype/bundlespec tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49334
diff
changeset
|
43 $ cd .. |
6570
626cb86a6523
add compression type type parameter to bundle command
Benoit Allard <benoit@aeteurope.nl>
parents:
diff
changeset
|
44 |
50388
3cde8ed567d3
bundle: expand the graph we us for bundletype/bundlespec tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49334
diff
changeset
|
45 $ hg -R t2 unbundle ./b1.hg |
11872
bc436a97038b
tests: unify test-bundle-type
Martin Geisler <mg@lazybytes.net>
parents:
7171
diff
changeset
|
46 adding changesets |
bc436a97038b
tests: unify test-bundle-type
Martin Geisler <mg@lazybytes.net>
parents:
7171
diff
changeset
|
47 adding manifests |
bc436a97038b
tests: unify test-bundle-type
Martin Geisler <mg@lazybytes.net>
parents:
7171
diff
changeset
|
48 adding file changes |
50388
3cde8ed567d3
bundle: expand the graph we us for bundletype/bundlespec tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49334
diff
changeset
|
49 added 7 changesets with 7 changes to 1 files (+1 heads) |
3cde8ed567d3
bundle: expand the graph we us for bundletype/bundlespec tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49334
diff
changeset
|
50 new changesets ac39af4a9f7d:b9f5f740a8cd (7 drafts) |
3cde8ed567d3
bundle: expand the graph we us for bundletype/bundlespec tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49334
diff
changeset
|
51 (run 'hg heads' to see heads, 'hg merge' to merge) |
3cde8ed567d3
bundle: expand the graph we us for bundletype/bundlespec tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49334
diff
changeset
|
52 $ hg -R t2 up |
11872
bc436a97038b
tests: unify test-bundle-type
Martin Geisler <mg@lazybytes.net>
parents:
7171
diff
changeset
|
53 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
50388
3cde8ed567d3
bundle: expand the graph we us for bundletype/bundlespec tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49334
diff
changeset
|
54 updated to "b9f5f740a8cd: commit_6" |
3cde8ed567d3
bundle: expand the graph we us for bundletype/bundlespec tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49334
diff
changeset
|
55 1 other heads for branch "default" |
3cde8ed567d3
bundle: expand the graph we us for bundletype/bundlespec tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49334
diff
changeset
|
56 $ hg -R t2 log -GT '[{phase}] {desc|firstline}\n' |
3cde8ed567d3
bundle: expand the graph we us for bundletype/bundlespec tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49334
diff
changeset
|
57 @ [draft] commit_6 |
3cde8ed567d3
bundle: expand the graph we us for bundletype/bundlespec tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49334
diff
changeset
|
58 | |
3cde8ed567d3
bundle: expand the graph we us for bundletype/bundlespec tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49334
diff
changeset
|
59 o [draft] commit_5 |
3cde8ed567d3
bundle: expand the graph we us for bundletype/bundlespec tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49334
diff
changeset
|
60 | |
3cde8ed567d3
bundle: expand the graph we us for bundletype/bundlespec tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49334
diff
changeset
|
61 o [draft] commit_4 |
3cde8ed567d3
bundle: expand the graph we us for bundletype/bundlespec tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49334
diff
changeset
|
62 | |
3cde8ed567d3
bundle: expand the graph we us for bundletype/bundlespec tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49334
diff
changeset
|
63 o [draft] commit_3 |
3cde8ed567d3
bundle: expand the graph we us for bundletype/bundlespec tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49334
diff
changeset
|
64 | |
3cde8ed567d3
bundle: expand the graph we us for bundletype/bundlespec tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49334
diff
changeset
|
65 | o [draft] commit_2 |
3cde8ed567d3
bundle: expand the graph we us for bundletype/bundlespec tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49334
diff
changeset
|
66 | | |
3cde8ed567d3
bundle: expand the graph we us for bundletype/bundlespec tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49334
diff
changeset
|
67 | o [draft] commit_1 |
3cde8ed567d3
bundle: expand the graph we us for bundletype/bundlespec tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49334
diff
changeset
|
68 |/ |
3cde8ed567d3
bundle: expand the graph we us for bundletype/bundlespec tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49334
diff
changeset
|
69 o [draft] commit_root |
3cde8ed567d3
bundle: expand the graph we us for bundletype/bundlespec tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49334
diff
changeset
|
70 |
6570
626cb86a6523
add compression type type parameter to bundle command
Benoit Allard <benoit@aeteurope.nl>
parents:
diff
changeset
|
71 |
31473
ffed3bf5cd4c
exchange: reject new compression engines for v1 bundles (issue5506)
Gregory Szorc <gregory.szorc@gmail.com>
parents:
30758
diff
changeset
|
72 Unknown compression type is rejected |
ffed3bf5cd4c
exchange: reject new compression engines for v1 bundles (issue5506)
Gregory Szorc <gregory.szorc@gmail.com>
parents:
30758
diff
changeset
|
73 |
ffed3bf5cd4c
exchange: reject new compression engines for v1 bundles (issue5506)
Gregory Szorc <gregory.szorc@gmail.com>
parents:
30758
diff
changeset
|
74 $ hg init t3 |
50388
3cde8ed567d3
bundle: expand the graph we us for bundletype/bundlespec tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49334
diff
changeset
|
75 $ hg -R t3 -q unbundle ./b1.hg |
3cde8ed567d3
bundle: expand the graph we us for bundletype/bundlespec tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49334
diff
changeset
|
76 $ hg -R t3 bundle -a -t unknown out.hg |
31473
ffed3bf5cd4c
exchange: reject new compression engines for v1 bundles (issue5506)
Gregory Szorc <gregory.szorc@gmail.com>
parents:
30758
diff
changeset
|
77 abort: unknown is not a recognized bundle specification |
31794
54b1af732415
commands: update help for "bundle"
Gregory Szorc <gregory.szorc@gmail.com>
parents:
31474
diff
changeset
|
78 (see 'hg help bundlespec' for supported values for --type) |
45827
8d72e29ad1e0
errors: introduce InputError and use it from commands and cmdutil
Martin von Zweigbergk <martinvonz@google.com>
parents:
39480
diff
changeset
|
79 [10] |
31473
ffed3bf5cd4c
exchange: reject new compression engines for v1 bundles (issue5506)
Gregory Szorc <gregory.szorc@gmail.com>
parents:
30758
diff
changeset
|
80 |
50388
3cde8ed567d3
bundle: expand the graph we us for bundletype/bundlespec tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49334
diff
changeset
|
81 $ hg -R t3 bundle -a -t unknown-v2 out.hg |
31473
ffed3bf5cd4c
exchange: reject new compression engines for v1 bundles (issue5506)
Gregory Szorc <gregory.szorc@gmail.com>
parents:
30758
diff
changeset
|
82 abort: unknown compression is not supported |
31794
54b1af732415
commands: update help for "bundle"
Gregory Szorc <gregory.szorc@gmail.com>
parents:
31474
diff
changeset
|
83 (see 'hg help bundlespec' for supported values for --type) |
45827
8d72e29ad1e0
errors: introduce InputError and use it from commands and cmdutil
Martin von Zweigbergk <martinvonz@google.com>
parents:
39480
diff
changeset
|
84 [10] |
31473
ffed3bf5cd4c
exchange: reject new compression engines for v1 bundles (issue5506)
Gregory Szorc <gregory.szorc@gmail.com>
parents:
30758
diff
changeset
|
85 |
11872
bc436a97038b
tests: unify test-bundle-type
Martin Geisler <mg@lazybytes.net>
parents:
7171
diff
changeset
|
86 test bundle types |
6570
626cb86a6523
add compression type type parameter to bundle command
Benoit Allard <benoit@aeteurope.nl>
parents:
diff
changeset
|
87 |
30442
41a8106789ca
util: implement zstd compression engine
Gregory Szorc <gregory.szorc@gmail.com>
parents:
29971
diff
changeset
|
88 $ testbundle() { |
41a8106789ca
util: implement zstd compression engine
Gregory Szorc <gregory.szorc@gmail.com>
parents:
29971
diff
changeset
|
89 > echo % test bundle type $1 |
50388
3cde8ed567d3
bundle: expand the graph we us for bundletype/bundlespec tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49334
diff
changeset
|
90 > hg -R t1 bundle --all --type $1 ./b-$1.hg |
3cde8ed567d3
bundle: expand the graph we us for bundletype/bundlespec tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49334
diff
changeset
|
91 > f -q -B6 -D ./b-$1.hg; echo |
3cde8ed567d3
bundle: expand the graph we us for bundletype/bundlespec tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49334
diff
changeset
|
92 > hg debugbundle ./b-$1.hg |
3cde8ed567d3
bundle: expand the graph we us for bundletype/bundlespec tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49334
diff
changeset
|
93 > hg debugbundle --spec ./b-$1.hg |
26511
bb3d961c1648
test-bundle-type: replace unbundle with debugbundle
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
24138
diff
changeset
|
94 > echo |
30442
41a8106789ca
util: implement zstd compression engine
Gregory Szorc <gregory.szorc@gmail.com>
parents:
29971
diff
changeset
|
95 > } |
41a8106789ca
util: implement zstd compression engine
Gregory Szorc <gregory.szorc@gmail.com>
parents:
29971
diff
changeset
|
96 |
41a8106789ca
util: implement zstd compression engine
Gregory Szorc <gregory.szorc@gmail.com>
parents:
29971
diff
changeset
|
97 $ for t in "None" "bzip2" "gzip" "none-v2" "v2" "v1" "gzip-v1"; do |
41a8106789ca
util: implement zstd compression engine
Gregory Szorc <gregory.szorc@gmail.com>
parents:
29971
diff
changeset
|
98 > testbundle $t |
11872
bc436a97038b
tests: unify test-bundle-type
Martin Geisler <mg@lazybytes.net>
parents:
7171
diff
changeset
|
99 > done |
bc436a97038b
tests: unify test-bundle-type
Martin Geisler <mg@lazybytes.net>
parents:
7171
diff
changeset
|
100 % test bundle type None |
50388
3cde8ed567d3
bundle: expand the graph we us for bundletype/bundlespec tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49334
diff
changeset
|
101 7 changesets found |
26925
d8270223a026
test: use generaldelta in 'test-bundle-type.t'
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
26905
diff
changeset
|
102 HG20\x00\x00 (esc) |
d8270223a026
test: use generaldelta in 'test-bundle-type.t'
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
26905
diff
changeset
|
103 Stream params: {} |
50388
3cde8ed567d3
bundle: expand the graph we us for bundletype/bundlespec tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49334
diff
changeset
|
104 changegroup -- {nbchanges: 7, version: 02} (mandatory: True) |
3cde8ed567d3
bundle: expand the graph we us for bundletype/bundlespec tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49334
diff
changeset
|
105 ac39af4a9f7d2aaa7d244720e57838be9bf63b03 |
3cde8ed567d3
bundle: expand the graph we us for bundletype/bundlespec tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49334
diff
changeset
|
106 901e97fadc587978ec52f2fa76af4aefc2d191e8 |
3cde8ed567d3
bundle: expand the graph we us for bundletype/bundlespec tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49334
diff
changeset
|
107 a8c3a1ed30eb71f03f476c5fa7ead831ef991a55 |
3cde8ed567d3
bundle: expand the graph we us for bundletype/bundlespec tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49334
diff
changeset
|
108 66e2c4b43e0cf8f0bdff0733a0b97ce57874e35d |
3cde8ed567d3
bundle: expand the graph we us for bundletype/bundlespec tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49334
diff
changeset
|
109 624e609639853fe22c88d42a8fd1f53a0e9b7ebe |
3cde8ed567d3
bundle: expand the graph we us for bundletype/bundlespec tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49334
diff
changeset
|
110 2ea90778052ba7558fab36e3fd5d149512ff986b |
3cde8ed567d3
bundle: expand the graph we us for bundletype/bundlespec tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49334
diff
changeset
|
111 b9f5f740a8cd76700020e3903ee55ecff78bd3e5 |
37842
326b174c6a47
bundle2: mark the bundle2 part as advisory (issue5872)
Boris Feld <boris.feld@octobus.net>
parents:
37841
diff
changeset
|
112 cache:rev-branch-cache -- {} (mandatory: False) |
27885
2370c66110cb
commands: teach debugbundle to print bundle specification
Gregory Szorc <gregory.szorc@gmail.com>
parents:
26925
diff
changeset
|
113 none-v2 |
26511
bb3d961c1648
test-bundle-type: replace unbundle with debugbundle
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
24138
diff
changeset
|
114 |
11872
bc436a97038b
tests: unify test-bundle-type
Martin Geisler <mg@lazybytes.net>
parents:
7171
diff
changeset
|
115 % test bundle type bzip2 |
50388
3cde8ed567d3
bundle: expand the graph we us for bundletype/bundlespec tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49334
diff
changeset
|
116 7 changesets found |
26925
d8270223a026
test: use generaldelta in 'test-bundle-type.t'
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
26905
diff
changeset
|
117 HG20\x00\x00 (esc) |
34025
626a28f30dbd
debugcommands: stabilize output of debugbundle by having a custom repr
Augie Fackler <raf@durin42.com>
parents:
31794
diff
changeset
|
118 Stream params: {Compression: BZ} |
50388
3cde8ed567d3
bundle: expand the graph we us for bundletype/bundlespec tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49334
diff
changeset
|
119 changegroup -- {nbchanges: 7, version: 02} (mandatory: True) |
3cde8ed567d3
bundle: expand the graph we us for bundletype/bundlespec tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49334
diff
changeset
|
120 ac39af4a9f7d2aaa7d244720e57838be9bf63b03 |
3cde8ed567d3
bundle: expand the graph we us for bundletype/bundlespec tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49334
diff
changeset
|
121 901e97fadc587978ec52f2fa76af4aefc2d191e8 |
3cde8ed567d3
bundle: expand the graph we us for bundletype/bundlespec tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49334
diff
changeset
|
122 a8c3a1ed30eb71f03f476c5fa7ead831ef991a55 |
3cde8ed567d3
bundle: expand the graph we us for bundletype/bundlespec tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49334
diff
changeset
|
123 66e2c4b43e0cf8f0bdff0733a0b97ce57874e35d |
3cde8ed567d3
bundle: expand the graph we us for bundletype/bundlespec tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49334
diff
changeset
|
124 624e609639853fe22c88d42a8fd1f53a0e9b7ebe |
3cde8ed567d3
bundle: expand the graph we us for bundletype/bundlespec tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49334
diff
changeset
|
125 2ea90778052ba7558fab36e3fd5d149512ff986b |
3cde8ed567d3
bundle: expand the graph we us for bundletype/bundlespec tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49334
diff
changeset
|
126 b9f5f740a8cd76700020e3903ee55ecff78bd3e5 |
37842
326b174c6a47
bundle2: mark the bundle2 part as advisory (issue5872)
Boris Feld <boris.feld@octobus.net>
parents:
37841
diff
changeset
|
127 cache:rev-branch-cache -- {} (mandatory: False) |
27885
2370c66110cb
commands: teach debugbundle to print bundle specification
Gregory Szorc <gregory.szorc@gmail.com>
parents:
26925
diff
changeset
|
128 bzip2-v2 |
26511
bb3d961c1648
test-bundle-type: replace unbundle with debugbundle
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
24138
diff
changeset
|
129 |
11872
bc436a97038b
tests: unify test-bundle-type
Martin Geisler <mg@lazybytes.net>
parents:
7171
diff
changeset
|
130 % test bundle type gzip |
50388
3cde8ed567d3
bundle: expand the graph we us for bundletype/bundlespec tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49334
diff
changeset
|
131 7 changesets found |
26925
d8270223a026
test: use generaldelta in 'test-bundle-type.t'
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
26905
diff
changeset
|
132 HG20\x00\x00 (esc) |
34025
626a28f30dbd
debugcommands: stabilize output of debugbundle by having a custom repr
Augie Fackler <raf@durin42.com>
parents:
31794
diff
changeset
|
133 Stream params: {Compression: GZ} |
50388
3cde8ed567d3
bundle: expand the graph we us for bundletype/bundlespec tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49334
diff
changeset
|
134 changegroup -- {nbchanges: 7, version: 02} (mandatory: True) |
3cde8ed567d3
bundle: expand the graph we us for bundletype/bundlespec tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49334
diff
changeset
|
135 ac39af4a9f7d2aaa7d244720e57838be9bf63b03 |
3cde8ed567d3
bundle: expand the graph we us for bundletype/bundlespec tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49334
diff
changeset
|
136 901e97fadc587978ec52f2fa76af4aefc2d191e8 |
3cde8ed567d3
bundle: expand the graph we us for bundletype/bundlespec tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49334
diff
changeset
|
137 a8c3a1ed30eb71f03f476c5fa7ead831ef991a55 |
3cde8ed567d3
bundle: expand the graph we us for bundletype/bundlespec tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49334
diff
changeset
|
138 66e2c4b43e0cf8f0bdff0733a0b97ce57874e35d |
3cde8ed567d3
bundle: expand the graph we us for bundletype/bundlespec tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49334
diff
changeset
|
139 624e609639853fe22c88d42a8fd1f53a0e9b7ebe |
3cde8ed567d3
bundle: expand the graph we us for bundletype/bundlespec tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49334
diff
changeset
|
140 2ea90778052ba7558fab36e3fd5d149512ff986b |
3cde8ed567d3
bundle: expand the graph we us for bundletype/bundlespec tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49334
diff
changeset
|
141 b9f5f740a8cd76700020e3903ee55ecff78bd3e5 |
37842
326b174c6a47
bundle2: mark the bundle2 part as advisory (issue5872)
Boris Feld <boris.feld@octobus.net>
parents:
37841
diff
changeset
|
142 cache:rev-branch-cache -- {} (mandatory: False) |
27885
2370c66110cb
commands: teach debugbundle to print bundle specification
Gregory Szorc <gregory.szorc@gmail.com>
parents:
26925
diff
changeset
|
143 gzip-v2 |
26511
bb3d961c1648
test-bundle-type: replace unbundle with debugbundle
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
24138
diff
changeset
|
144 |
26531
15ce78517d4b
bundle: extend the format of --type to support version and compression
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
26511
diff
changeset
|
145 % test bundle type none-v2 |
50388
3cde8ed567d3
bundle: expand the graph we us for bundletype/bundlespec tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49334
diff
changeset
|
146 7 changesets found |
26531
15ce78517d4b
bundle: extend the format of --type to support version and compression
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
26511
diff
changeset
|
147 HG20\x00\x00 (esc) |
15ce78517d4b
bundle: extend the format of --type to support version and compression
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
26511
diff
changeset
|
148 Stream params: {} |
50388
3cde8ed567d3
bundle: expand the graph we us for bundletype/bundlespec tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49334
diff
changeset
|
149 changegroup -- {nbchanges: 7, version: 02} (mandatory: True) |
3cde8ed567d3
bundle: expand the graph we us for bundletype/bundlespec tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49334
diff
changeset
|
150 ac39af4a9f7d2aaa7d244720e57838be9bf63b03 |
3cde8ed567d3
bundle: expand the graph we us for bundletype/bundlespec tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49334
diff
changeset
|
151 901e97fadc587978ec52f2fa76af4aefc2d191e8 |
3cde8ed567d3
bundle: expand the graph we us for bundletype/bundlespec tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49334
diff
changeset
|
152 a8c3a1ed30eb71f03f476c5fa7ead831ef991a55 |
3cde8ed567d3
bundle: expand the graph we us for bundletype/bundlespec tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49334
diff
changeset
|
153 66e2c4b43e0cf8f0bdff0733a0b97ce57874e35d |
3cde8ed567d3
bundle: expand the graph we us for bundletype/bundlespec tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49334
diff
changeset
|
154 624e609639853fe22c88d42a8fd1f53a0e9b7ebe |
3cde8ed567d3
bundle: expand the graph we us for bundletype/bundlespec tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49334
diff
changeset
|
155 2ea90778052ba7558fab36e3fd5d149512ff986b |
3cde8ed567d3
bundle: expand the graph we us for bundletype/bundlespec tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49334
diff
changeset
|
156 b9f5f740a8cd76700020e3903ee55ecff78bd3e5 |
37842
326b174c6a47
bundle2: mark the bundle2 part as advisory (issue5872)
Boris Feld <boris.feld@octobus.net>
parents:
37841
diff
changeset
|
157 cache:rev-branch-cache -- {} (mandatory: False) |
27885
2370c66110cb
commands: teach debugbundle to print bundle specification
Gregory Szorc <gregory.szorc@gmail.com>
parents:
26925
diff
changeset
|
158 none-v2 |
26531
15ce78517d4b
bundle: extend the format of --type to support version and compression
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
26511
diff
changeset
|
159 |
15ce78517d4b
bundle: extend the format of --type to support version and compression
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
26511
diff
changeset
|
160 % test bundle type v2 |
50388
3cde8ed567d3
bundle: expand the graph we us for bundletype/bundlespec tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49334
diff
changeset
|
161 7 changesets found |
26531
15ce78517d4b
bundle: extend the format of --type to support version and compression
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
26511
diff
changeset
|
162 HG20\x00\x00 (esc) |
34025
626a28f30dbd
debugcommands: stabilize output of debugbundle by having a custom repr
Augie Fackler <raf@durin42.com>
parents:
31794
diff
changeset
|
163 Stream params: {Compression: BZ} |
50388
3cde8ed567d3
bundle: expand the graph we us for bundletype/bundlespec tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49334
diff
changeset
|
164 changegroup -- {nbchanges: 7, version: 02} (mandatory: True) |
3cde8ed567d3
bundle: expand the graph we us for bundletype/bundlespec tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49334
diff
changeset
|
165 ac39af4a9f7d2aaa7d244720e57838be9bf63b03 |
3cde8ed567d3
bundle: expand the graph we us for bundletype/bundlespec tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49334
diff
changeset
|
166 901e97fadc587978ec52f2fa76af4aefc2d191e8 |
3cde8ed567d3
bundle: expand the graph we us for bundletype/bundlespec tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49334
diff
changeset
|
167 a8c3a1ed30eb71f03f476c5fa7ead831ef991a55 |
3cde8ed567d3
bundle: expand the graph we us for bundletype/bundlespec tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49334
diff
changeset
|
168 66e2c4b43e0cf8f0bdff0733a0b97ce57874e35d |
3cde8ed567d3
bundle: expand the graph we us for bundletype/bundlespec tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49334
diff
changeset
|
169 624e609639853fe22c88d42a8fd1f53a0e9b7ebe |
3cde8ed567d3
bundle: expand the graph we us for bundletype/bundlespec tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49334
diff
changeset
|
170 2ea90778052ba7558fab36e3fd5d149512ff986b |
3cde8ed567d3
bundle: expand the graph we us for bundletype/bundlespec tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49334
diff
changeset
|
171 b9f5f740a8cd76700020e3903ee55ecff78bd3e5 |
37842
326b174c6a47
bundle2: mark the bundle2 part as advisory (issue5872)
Boris Feld <boris.feld@octobus.net>
parents:
37841
diff
changeset
|
172 cache:rev-branch-cache -- {} (mandatory: False) |
27885
2370c66110cb
commands: teach debugbundle to print bundle specification
Gregory Szorc <gregory.szorc@gmail.com>
parents:
26925
diff
changeset
|
173 bzip2-v2 |
26531
15ce78517d4b
bundle: extend the format of --type to support version and compression
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
26511
diff
changeset
|
174 |
15ce78517d4b
bundle: extend the format of --type to support version and compression
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
26511
diff
changeset
|
175 % test bundle type v1 |
50388
3cde8ed567d3
bundle: expand the graph we us for bundletype/bundlespec tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49334
diff
changeset
|
176 7 changesets found |
26531
15ce78517d4b
bundle: extend the format of --type to support version and compression
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
26511
diff
changeset
|
177 HG10BZ |
50388
3cde8ed567d3
bundle: expand the graph we us for bundletype/bundlespec tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49334
diff
changeset
|
178 ac39af4a9f7d2aaa7d244720e57838be9bf63b03 |
3cde8ed567d3
bundle: expand the graph we us for bundletype/bundlespec tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49334
diff
changeset
|
179 901e97fadc587978ec52f2fa76af4aefc2d191e8 |
3cde8ed567d3
bundle: expand the graph we us for bundletype/bundlespec tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49334
diff
changeset
|
180 a8c3a1ed30eb71f03f476c5fa7ead831ef991a55 |
3cde8ed567d3
bundle: expand the graph we us for bundletype/bundlespec tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49334
diff
changeset
|
181 66e2c4b43e0cf8f0bdff0733a0b97ce57874e35d |
3cde8ed567d3
bundle: expand the graph we us for bundletype/bundlespec tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49334
diff
changeset
|
182 624e609639853fe22c88d42a8fd1f53a0e9b7ebe |
3cde8ed567d3
bundle: expand the graph we us for bundletype/bundlespec tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49334
diff
changeset
|
183 2ea90778052ba7558fab36e3fd5d149512ff986b |
3cde8ed567d3
bundle: expand the graph we us for bundletype/bundlespec tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49334
diff
changeset
|
184 b9f5f740a8cd76700020e3903ee55ecff78bd3e5 |
27885
2370c66110cb
commands: teach debugbundle to print bundle specification
Gregory Szorc <gregory.szorc@gmail.com>
parents:
26925
diff
changeset
|
185 bzip2-v1 |
26531
15ce78517d4b
bundle: extend the format of --type to support version and compression
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
26511
diff
changeset
|
186 |
15ce78517d4b
bundle: extend the format of --type to support version and compression
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
26511
diff
changeset
|
187 % test bundle type gzip-v1 |
50388
3cde8ed567d3
bundle: expand the graph we us for bundletype/bundlespec tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49334
diff
changeset
|
188 7 changesets found |
26531
15ce78517d4b
bundle: extend the format of --type to support version and compression
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
26511
diff
changeset
|
189 HG10GZ |
50388
3cde8ed567d3
bundle: expand the graph we us for bundletype/bundlespec tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49334
diff
changeset
|
190 ac39af4a9f7d2aaa7d244720e57838be9bf63b03 |
3cde8ed567d3
bundle: expand the graph we us for bundletype/bundlespec tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49334
diff
changeset
|
191 901e97fadc587978ec52f2fa76af4aefc2d191e8 |
3cde8ed567d3
bundle: expand the graph we us for bundletype/bundlespec tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49334
diff
changeset
|
192 a8c3a1ed30eb71f03f476c5fa7ead831ef991a55 |
3cde8ed567d3
bundle: expand the graph we us for bundletype/bundlespec tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49334
diff
changeset
|
193 66e2c4b43e0cf8f0bdff0733a0b97ce57874e35d |
3cde8ed567d3
bundle: expand the graph we us for bundletype/bundlespec tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49334
diff
changeset
|
194 624e609639853fe22c88d42a8fd1f53a0e9b7ebe |
3cde8ed567d3
bundle: expand the graph we us for bundletype/bundlespec tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49334
diff
changeset
|
195 2ea90778052ba7558fab36e3fd5d149512ff986b |
3cde8ed567d3
bundle: expand the graph we us for bundletype/bundlespec tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49334
diff
changeset
|
196 b9f5f740a8cd76700020e3903ee55ecff78bd3e5 |
27885
2370c66110cb
commands: teach debugbundle to print bundle specification
Gregory Szorc <gregory.szorc@gmail.com>
parents:
26925
diff
changeset
|
197 gzip-v1 |
26531
15ce78517d4b
bundle: extend the format of --type to support version and compression
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
26511
diff
changeset
|
198 |
30758
76104a4899ad
commands: config option to control bundle compression level
Gregory Szorc <gregory.szorc@gmail.com>
parents:
30442
diff
changeset
|
199 |
76104a4899ad
commands: config option to control bundle compression level
Gregory Szorc <gregory.szorc@gmail.com>
parents:
30442
diff
changeset
|
200 Compression level can be adjusted for bundle2 bundles |
76104a4899ad
commands: config option to control bundle compression level
Gregory Szorc <gregory.szorc@gmail.com>
parents:
30442
diff
changeset
|
201 |
76104a4899ad
commands: config option to control bundle compression level
Gregory Szorc <gregory.szorc@gmail.com>
parents:
30442
diff
changeset
|
202 $ hg init test-complevel |
76104a4899ad
commands: config option to control bundle compression level
Gregory Szorc <gregory.szorc@gmail.com>
parents:
30442
diff
changeset
|
203 $ cd test-complevel |
76104a4899ad
commands: config option to control bundle compression level
Gregory Szorc <gregory.szorc@gmail.com>
parents:
30442
diff
changeset
|
204 |
76104a4899ad
commands: config option to control bundle compression level
Gregory Szorc <gregory.szorc@gmail.com>
parents:
30442
diff
changeset
|
205 $ cat > file0 << EOF |
76104a4899ad
commands: config option to control bundle compression level
Gregory Szorc <gregory.szorc@gmail.com>
parents:
30442
diff
changeset
|
206 > this is a file |
76104a4899ad
commands: config option to control bundle compression level
Gregory Szorc <gregory.szorc@gmail.com>
parents:
30442
diff
changeset
|
207 > with some text |
76104a4899ad
commands: config option to control bundle compression level
Gregory Szorc <gregory.szorc@gmail.com>
parents:
30442
diff
changeset
|
208 > and some more text |
76104a4899ad
commands: config option to control bundle compression level
Gregory Szorc <gregory.szorc@gmail.com>
parents:
30442
diff
changeset
|
209 > and other content |
76104a4899ad
commands: config option to control bundle compression level
Gregory Szorc <gregory.szorc@gmail.com>
parents:
30442
diff
changeset
|
210 > EOF |
76104a4899ad
commands: config option to control bundle compression level
Gregory Szorc <gregory.szorc@gmail.com>
parents:
30442
diff
changeset
|
211 $ cat > file1 << EOF |
76104a4899ad
commands: config option to control bundle compression level
Gregory Szorc <gregory.szorc@gmail.com>
parents:
30442
diff
changeset
|
212 > this is another file |
76104a4899ad
commands: config option to control bundle compression level
Gregory Szorc <gregory.szorc@gmail.com>
parents:
30442
diff
changeset
|
213 > with some other content |
76104a4899ad
commands: config option to control bundle compression level
Gregory Szorc <gregory.szorc@gmail.com>
parents:
30442
diff
changeset
|
214 > and repeated, repeated, repeated, repeated content |
76104a4899ad
commands: config option to control bundle compression level
Gregory Szorc <gregory.szorc@gmail.com>
parents:
30442
diff
changeset
|
215 > EOF |
76104a4899ad
commands: config option to control bundle compression level
Gregory Szorc <gregory.szorc@gmail.com>
parents:
30442
diff
changeset
|
216 $ hg -q commit -A -m initial |
76104a4899ad
commands: config option to control bundle compression level
Gregory Szorc <gregory.szorc@gmail.com>
parents:
30442
diff
changeset
|
217 |
76104a4899ad
commands: config option to control bundle compression level
Gregory Szorc <gregory.szorc@gmail.com>
parents:
30442
diff
changeset
|
218 $ hg bundle -a -t gzip-v2 gzip-v2.hg |
76104a4899ad
commands: config option to control bundle compression level
Gregory Szorc <gregory.szorc@gmail.com>
parents:
30442
diff
changeset
|
219 1 changesets found |
76104a4899ad
commands: config option to control bundle compression level
Gregory Szorc <gregory.szorc@gmail.com>
parents:
30442
diff
changeset
|
220 $ f --size gzip-v2.hg |
36965
b89a7ef29013
bundle: include advisory rev branch cache part in bundle2 bundle
Boris Feld <boris.feld@octobus.net>
parents:
34661
diff
changeset
|
221 gzip-v2.hg: size=468 |
30758
76104a4899ad
commands: config option to control bundle compression level
Gregory Szorc <gregory.szorc@gmail.com>
parents:
30442
diff
changeset
|
222 |
76104a4899ad
commands: config option to control bundle compression level
Gregory Szorc <gregory.szorc@gmail.com>
parents:
30442
diff
changeset
|
223 $ hg --config experimental.bundlecomplevel=1 bundle -a -t gzip-v2 gzip-v2-level1.hg |
76104a4899ad
commands: config option to control bundle compression level
Gregory Szorc <gregory.szorc@gmail.com>
parents:
30442
diff
changeset
|
224 1 changesets found |
76104a4899ad
commands: config option to control bundle compression level
Gregory Szorc <gregory.szorc@gmail.com>
parents:
30442
diff
changeset
|
225 $ f --size gzip-v2-level1.hg |
36965
b89a7ef29013
bundle: include advisory rev branch cache part in bundle2 bundle
Boris Feld <boris.feld@octobus.net>
parents:
34661
diff
changeset
|
226 gzip-v2-level1.hg: size=475 |
30758
76104a4899ad
commands: config option to control bundle compression level
Gregory Szorc <gregory.szorc@gmail.com>
parents:
30442
diff
changeset
|
227 |
37769
6a7ff5816c5f
bundle: introduce per-engine compression level
Joerg Sonnenberger <joerg@bec.de>
parents:
37336
diff
changeset
|
228 $ hg --config experimental.bundlecomplevel.gzip=1 --config experimental.bundlelevel=9 bundle -a -t gzip-v2 gzip-v2-level1.hg |
6a7ff5816c5f
bundle: introduce per-engine compression level
Joerg Sonnenberger <joerg@bec.de>
parents:
37336
diff
changeset
|
229 1 changesets found |
6a7ff5816c5f
bundle: introduce per-engine compression level
Joerg Sonnenberger <joerg@bec.de>
parents:
37336
diff
changeset
|
230 $ f --size gzip-v2-level1.hg |
6a7ff5816c5f
bundle: introduce per-engine compression level
Joerg Sonnenberger <joerg@bec.de>
parents:
37336
diff
changeset
|
231 gzip-v2-level1.hg: size=475 |
6a7ff5816c5f
bundle: introduce per-engine compression level
Joerg Sonnenberger <joerg@bec.de>
parents:
37336
diff
changeset
|
232 |
30758
76104a4899ad
commands: config option to control bundle compression level
Gregory Szorc <gregory.szorc@gmail.com>
parents:
30442
diff
changeset
|
233 $ cd .. |
76104a4899ad
commands: config option to control bundle compression level
Gregory Szorc <gregory.szorc@gmail.com>
parents:
30442
diff
changeset
|
234 |
30442
41a8106789ca
util: implement zstd compression engine
Gregory Szorc <gregory.szorc@gmail.com>
parents:
29971
diff
changeset
|
235 #if zstd |
41a8106789ca
util: implement zstd compression engine
Gregory Szorc <gregory.szorc@gmail.com>
parents:
29971
diff
changeset
|
236 |
41a8106789ca
util: implement zstd compression engine
Gregory Szorc <gregory.szorc@gmail.com>
parents:
29971
diff
changeset
|
237 $ for t in "zstd" "zstd-v2"; do |
41a8106789ca
util: implement zstd compression engine
Gregory Szorc <gregory.szorc@gmail.com>
parents:
29971
diff
changeset
|
238 > testbundle $t |
41a8106789ca
util: implement zstd compression engine
Gregory Szorc <gregory.szorc@gmail.com>
parents:
29971
diff
changeset
|
239 > done |
41a8106789ca
util: implement zstd compression engine
Gregory Szorc <gregory.szorc@gmail.com>
parents:
29971
diff
changeset
|
240 % test bundle type zstd |
50388
3cde8ed567d3
bundle: expand the graph we us for bundletype/bundlespec tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49334
diff
changeset
|
241 7 changesets found |
30442
41a8106789ca
util: implement zstd compression engine
Gregory Szorc <gregory.szorc@gmail.com>
parents:
29971
diff
changeset
|
242 HG20\x00\x00 (esc) |
34025
626a28f30dbd
debugcommands: stabilize output of debugbundle by having a custom repr
Augie Fackler <raf@durin42.com>
parents:
31794
diff
changeset
|
243 Stream params: {Compression: ZS} |
50388
3cde8ed567d3
bundle: expand the graph we us for bundletype/bundlespec tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49334
diff
changeset
|
244 changegroup -- {nbchanges: 7, version: 02} (mandatory: True) |
3cde8ed567d3
bundle: expand the graph we us for bundletype/bundlespec tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49334
diff
changeset
|
245 ac39af4a9f7d2aaa7d244720e57838be9bf63b03 |
3cde8ed567d3
bundle: expand the graph we us for bundletype/bundlespec tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49334
diff
changeset
|
246 901e97fadc587978ec52f2fa76af4aefc2d191e8 |
3cde8ed567d3
bundle: expand the graph we us for bundletype/bundlespec tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49334
diff
changeset
|
247 a8c3a1ed30eb71f03f476c5fa7ead831ef991a55 |
3cde8ed567d3
bundle: expand the graph we us for bundletype/bundlespec tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49334
diff
changeset
|
248 66e2c4b43e0cf8f0bdff0733a0b97ce57874e35d |
3cde8ed567d3
bundle: expand the graph we us for bundletype/bundlespec tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49334
diff
changeset
|
249 624e609639853fe22c88d42a8fd1f53a0e9b7ebe |
3cde8ed567d3
bundle: expand the graph we us for bundletype/bundlespec tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49334
diff
changeset
|
250 2ea90778052ba7558fab36e3fd5d149512ff986b |
3cde8ed567d3
bundle: expand the graph we us for bundletype/bundlespec tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49334
diff
changeset
|
251 b9f5f740a8cd76700020e3903ee55ecff78bd3e5 |
37842
326b174c6a47
bundle2: mark the bundle2 part as advisory (issue5872)
Boris Feld <boris.feld@octobus.net>
parents:
37841
diff
changeset
|
252 cache:rev-branch-cache -- {} (mandatory: False) |
30442
41a8106789ca
util: implement zstd compression engine
Gregory Szorc <gregory.szorc@gmail.com>
parents:
29971
diff
changeset
|
253 zstd-v2 |
41a8106789ca
util: implement zstd compression engine
Gregory Szorc <gregory.szorc@gmail.com>
parents:
29971
diff
changeset
|
254 |
41a8106789ca
util: implement zstd compression engine
Gregory Szorc <gregory.szorc@gmail.com>
parents:
29971
diff
changeset
|
255 % test bundle type zstd-v2 |
50388
3cde8ed567d3
bundle: expand the graph we us for bundletype/bundlespec tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49334
diff
changeset
|
256 7 changesets found |
30442
41a8106789ca
util: implement zstd compression engine
Gregory Szorc <gregory.szorc@gmail.com>
parents:
29971
diff
changeset
|
257 HG20\x00\x00 (esc) |
34025
626a28f30dbd
debugcommands: stabilize output of debugbundle by having a custom repr
Augie Fackler <raf@durin42.com>
parents:
31794
diff
changeset
|
258 Stream params: {Compression: ZS} |
50388
3cde8ed567d3
bundle: expand the graph we us for bundletype/bundlespec tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49334
diff
changeset
|
259 changegroup -- {nbchanges: 7, version: 02} (mandatory: True) |
3cde8ed567d3
bundle: expand the graph we us for bundletype/bundlespec tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49334
diff
changeset
|
260 ac39af4a9f7d2aaa7d244720e57838be9bf63b03 |
3cde8ed567d3
bundle: expand the graph we us for bundletype/bundlespec tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49334
diff
changeset
|
261 901e97fadc587978ec52f2fa76af4aefc2d191e8 |
3cde8ed567d3
bundle: expand the graph we us for bundletype/bundlespec tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49334
diff
changeset
|
262 a8c3a1ed30eb71f03f476c5fa7ead831ef991a55 |
3cde8ed567d3
bundle: expand the graph we us for bundletype/bundlespec tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49334
diff
changeset
|
263 66e2c4b43e0cf8f0bdff0733a0b97ce57874e35d |
3cde8ed567d3
bundle: expand the graph we us for bundletype/bundlespec tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49334
diff
changeset
|
264 624e609639853fe22c88d42a8fd1f53a0e9b7ebe |
3cde8ed567d3
bundle: expand the graph we us for bundletype/bundlespec tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49334
diff
changeset
|
265 2ea90778052ba7558fab36e3fd5d149512ff986b |
3cde8ed567d3
bundle: expand the graph we us for bundletype/bundlespec tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49334
diff
changeset
|
266 b9f5f740a8cd76700020e3903ee55ecff78bd3e5 |
37842
326b174c6a47
bundle2: mark the bundle2 part as advisory (issue5872)
Boris Feld <boris.feld@octobus.net>
parents:
37841
diff
changeset
|
267 cache:rev-branch-cache -- {} (mandatory: False) |
30442
41a8106789ca
util: implement zstd compression engine
Gregory Szorc <gregory.szorc@gmail.com>
parents:
29971
diff
changeset
|
268 zstd-v2 |
41a8106789ca
util: implement zstd compression engine
Gregory Szorc <gregory.szorc@gmail.com>
parents:
29971
diff
changeset
|
269 |
31473
ffed3bf5cd4c
exchange: reject new compression engines for v1 bundles (issue5506)
Gregory Szorc <gregory.szorc@gmail.com>
parents:
30758
diff
changeset
|
270 |
ffed3bf5cd4c
exchange: reject new compression engines for v1 bundles (issue5506)
Gregory Szorc <gregory.szorc@gmail.com>
parents:
30758
diff
changeset
|
271 Explicit request for zstd on non-generaldelta repos |
ffed3bf5cd4c
exchange: reject new compression engines for v1 bundles (issue5506)
Gregory Szorc <gregory.szorc@gmail.com>
parents:
30758
diff
changeset
|
272 |
ffed3bf5cd4c
exchange: reject new compression engines for v1 bundles (issue5506)
Gregory Szorc <gregory.szorc@gmail.com>
parents:
30758
diff
changeset
|
273 $ hg --config format.usegeneraldelta=false init nogd |
ffed3bf5cd4c
exchange: reject new compression engines for v1 bundles (issue5506)
Gregory Szorc <gregory.szorc@gmail.com>
parents:
30758
diff
changeset
|
274 $ hg -q -R nogd pull t1 |
ffed3bf5cd4c
exchange: reject new compression engines for v1 bundles (issue5506)
Gregory Szorc <gregory.szorc@gmail.com>
parents:
30758
diff
changeset
|
275 $ hg -R nogd bundle -a -t zstd nogd-zstd |
50388
3cde8ed567d3
bundle: expand the graph we us for bundletype/bundlespec tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49334
diff
changeset
|
276 7 changesets found |
31473
ffed3bf5cd4c
exchange: reject new compression engines for v1 bundles (issue5506)
Gregory Szorc <gregory.szorc@gmail.com>
parents:
30758
diff
changeset
|
277 |
ffed3bf5cd4c
exchange: reject new compression engines for v1 bundles (issue5506)
Gregory Szorc <gregory.szorc@gmail.com>
parents:
30758
diff
changeset
|
278 zstd-v1 always fails |
ffed3bf5cd4c
exchange: reject new compression engines for v1 bundles (issue5506)
Gregory Szorc <gregory.szorc@gmail.com>
parents:
30758
diff
changeset
|
279 |
50388
3cde8ed567d3
bundle: expand the graph we us for bundletype/bundlespec tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49334
diff
changeset
|
280 $ hg -R t1 bundle -a -t zstd-v1 zstd-v1 |
31473
ffed3bf5cd4c
exchange: reject new compression engines for v1 bundles (issue5506)
Gregory Szorc <gregory.szorc@gmail.com>
parents:
30758
diff
changeset
|
281 abort: compression engine zstd is not supported on v1 bundles |
31794
54b1af732415
commands: update help for "bundle"
Gregory Szorc <gregory.szorc@gmail.com>
parents:
31474
diff
changeset
|
282 (see 'hg help bundlespec' for supported values for --type) |
45827
8d72e29ad1e0
errors: introduce InputError and use it from commands and cmdutil
Martin von Zweigbergk <martinvonz@google.com>
parents:
39480
diff
changeset
|
283 [10] |
31473
ffed3bf5cd4c
exchange: reject new compression engines for v1 bundles (issue5506)
Gregory Szorc <gregory.szorc@gmail.com>
parents:
30758
diff
changeset
|
284 |
46776
471cd86c8eb4
bundle: optional multithreaded compression, ATM zstd-only
Joerg Sonnenberger <joerg@bec.de>
parents:
45827
diff
changeset
|
285 zstd supports threading |
471cd86c8eb4
bundle: optional multithreaded compression, ATM zstd-only
Joerg Sonnenberger <joerg@bec.de>
parents:
45827
diff
changeset
|
286 |
471cd86c8eb4
bundle: optional multithreaded compression, ATM zstd-only
Joerg Sonnenberger <joerg@bec.de>
parents:
45827
diff
changeset
|
287 $ hg init test-compthreads |
471cd86c8eb4
bundle: optional multithreaded compression, ATM zstd-only
Joerg Sonnenberger <joerg@bec.de>
parents:
45827
diff
changeset
|
288 $ cd test-compthreads |
471cd86c8eb4
bundle: optional multithreaded compression, ATM zstd-only
Joerg Sonnenberger <joerg@bec.de>
parents:
45827
diff
changeset
|
289 $ hg debugbuilddag +3 |
471cd86c8eb4
bundle: optional multithreaded compression, ATM zstd-only
Joerg Sonnenberger <joerg@bec.de>
parents:
45827
diff
changeset
|
290 $ hg --config experimental.bundlecompthreads=1 bundle -a -t zstd-v2 zstd-v2-threaded.hg |
471cd86c8eb4
bundle: optional multithreaded compression, ATM zstd-only
Joerg Sonnenberger <joerg@bec.de>
parents:
45827
diff
changeset
|
291 3 changesets found |
471cd86c8eb4
bundle: optional multithreaded compression, ATM zstd-only
Joerg Sonnenberger <joerg@bec.de>
parents:
45827
diff
changeset
|
292 $ cd .. |
471cd86c8eb4
bundle: optional multithreaded compression, ATM zstd-only
Joerg Sonnenberger <joerg@bec.de>
parents:
45827
diff
changeset
|
293 |
30442
41a8106789ca
util: implement zstd compression engine
Gregory Szorc <gregory.szorc@gmail.com>
parents:
29971
diff
changeset
|
294 #else |
41a8106789ca
util: implement zstd compression engine
Gregory Szorc <gregory.szorc@gmail.com>
parents:
29971
diff
changeset
|
295 |
41a8106789ca
util: implement zstd compression engine
Gregory Szorc <gregory.szorc@gmail.com>
parents:
29971
diff
changeset
|
296 zstd is a valid engine but isn't available |
41a8106789ca
util: implement zstd compression engine
Gregory Szorc <gregory.szorc@gmail.com>
parents:
29971
diff
changeset
|
297 |
41a8106789ca
util: implement zstd compression engine
Gregory Szorc <gregory.szorc@gmail.com>
parents:
29971
diff
changeset
|
298 $ hg -R t1 bundle -a -t zstd irrelevant.hg |
41a8106789ca
util: implement zstd compression engine
Gregory Szorc <gregory.szorc@gmail.com>
parents:
29971
diff
changeset
|
299 abort: compression engine zstd could not be loaded |
41a8106789ca
util: implement zstd compression engine
Gregory Szorc <gregory.szorc@gmail.com>
parents:
29971
diff
changeset
|
300 [255] |
41a8106789ca
util: implement zstd compression engine
Gregory Szorc <gregory.szorc@gmail.com>
parents:
29971
diff
changeset
|
301 |
41a8106789ca
util: implement zstd compression engine
Gregory Szorc <gregory.szorc@gmail.com>
parents:
29971
diff
changeset
|
302 #endif |
6570
626cb86a6523
add compression type type parameter to bundle command
Benoit Allard <benoit@aeteurope.nl>
parents:
diff
changeset
|
303 |
11872
bc436a97038b
tests: unify test-bundle-type
Martin Geisler <mg@lazybytes.net>
parents:
7171
diff
changeset
|
304 test garbage file |
6570
626cb86a6523
add compression type type parameter to bundle command
Benoit Allard <benoit@aeteurope.nl>
parents:
diff
changeset
|
305 |
11872
bc436a97038b
tests: unify test-bundle-type
Martin Geisler <mg@lazybytes.net>
parents:
7171
diff
changeset
|
306 $ echo garbage > bgarbage |
bc436a97038b
tests: unify test-bundle-type
Martin Geisler <mg@lazybytes.net>
parents:
7171
diff
changeset
|
307 $ hg init tgarbage |
bc436a97038b
tests: unify test-bundle-type
Martin Geisler <mg@lazybytes.net>
parents:
7171
diff
changeset
|
308 $ cd tgarbage |
bc436a97038b
tests: unify test-bundle-type
Martin Geisler <mg@lazybytes.net>
parents:
7171
diff
changeset
|
309 $ hg pull ../bgarbage |
24138
eabe44ec5af5
pull: print "pulling from foo" before accessing the other repo
Thomas Arendsen Hein <thomas@intevation.de>
parents:
16427
diff
changeset
|
310 pulling from ../bgarbage |
12044
bcc7139521b7
bundlerepo: remove duplication of bundle decompressors
Matt Mackall <mpm@selenic.com>
parents:
11872
diff
changeset
|
311 abort: ../bgarbage: not a Mercurial bundle |
12316
4134686b83e1
tests: add exit codes to unified tests
Matt Mackall <mpm@selenic.com>
parents:
12044
diff
changeset
|
312 [255] |
11872
bc436a97038b
tests: unify test-bundle-type
Martin Geisler <mg@lazybytes.net>
parents:
7171
diff
changeset
|
313 $ cd .. |
bc436a97038b
tests: unify test-bundle-type
Martin Geisler <mg@lazybytes.net>
parents:
7171
diff
changeset
|
314 |
bc436a97038b
tests: unify test-bundle-type
Martin Geisler <mg@lazybytes.net>
parents:
7171
diff
changeset
|
315 test invalid bundle type |
bc436a97038b
tests: unify test-bundle-type
Martin Geisler <mg@lazybytes.net>
parents:
7171
diff
changeset
|
316 |
bc436a97038b
tests: unify test-bundle-type
Martin Geisler <mg@lazybytes.net>
parents:
7171
diff
changeset
|
317 $ cd t1 |
bc436a97038b
tests: unify test-bundle-type
Martin Geisler <mg@lazybytes.net>
parents:
7171
diff
changeset
|
318 $ hg bundle -a -t garbage ../bgarbage |
26640
b13fdcc4e700
exchange: refactor bundle specification parsing
Gregory Szorc <gregory.szorc@gmail.com>
parents:
26595
diff
changeset
|
319 abort: garbage is not a recognized bundle specification |
31794
54b1af732415
commands: update help for "bundle"
Gregory Szorc <gregory.szorc@gmail.com>
parents:
31474
diff
changeset
|
320 (see 'hg help bundlespec' for supported values for --type) |
45827
8d72e29ad1e0
errors: introduce InputError and use it from commands and cmdutil
Martin von Zweigbergk <martinvonz@google.com>
parents:
39480
diff
changeset
|
321 [10] |
11872
bc436a97038b
tests: unify test-bundle-type
Martin Geisler <mg@lazybytes.net>
parents:
7171
diff
changeset
|
322 $ cd .. |
49333
1fd7520e4961
bundlespec: allow the bundle spec to control the bundle version
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
46776
diff
changeset
|
323 |
1fd7520e4961
bundlespec: allow the bundle spec to control the bundle version
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
46776
diff
changeset
|
324 Test controlling the changegroup version |
1fd7520e4961
bundlespec: allow the bundle spec to control the bundle version
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
46776
diff
changeset
|
325 |
1fd7520e4961
bundlespec: allow the bundle spec to control the bundle version
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
46776
diff
changeset
|
326 $ hg -R t1 bundle --config experimental.changegroup3=yes -a -t v2 ./v2-cg-default.hg |
50388
3cde8ed567d3
bundle: expand the graph we us for bundletype/bundlespec tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49334
diff
changeset
|
327 7 changesets found |
49333
1fd7520e4961
bundlespec: allow the bundle spec to control the bundle version
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
46776
diff
changeset
|
328 $ hg debugbundle ./v2-cg-default.hg --part-type changegroup |
1fd7520e4961
bundlespec: allow the bundle spec to control the bundle version
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
46776
diff
changeset
|
329 Stream params: {Compression: BZ} |
50388
3cde8ed567d3
bundle: expand the graph we us for bundletype/bundlespec tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49334
diff
changeset
|
330 changegroup -- {nbchanges: 7, version: 02} (mandatory: True) |
3cde8ed567d3
bundle: expand the graph we us for bundletype/bundlespec tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49334
diff
changeset
|
331 ac39af4a9f7d2aaa7d244720e57838be9bf63b03 |
3cde8ed567d3
bundle: expand the graph we us for bundletype/bundlespec tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49334
diff
changeset
|
332 901e97fadc587978ec52f2fa76af4aefc2d191e8 |
3cde8ed567d3
bundle: expand the graph we us for bundletype/bundlespec tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49334
diff
changeset
|
333 a8c3a1ed30eb71f03f476c5fa7ead831ef991a55 |
3cde8ed567d3
bundle: expand the graph we us for bundletype/bundlespec tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49334
diff
changeset
|
334 66e2c4b43e0cf8f0bdff0733a0b97ce57874e35d |
3cde8ed567d3
bundle: expand the graph we us for bundletype/bundlespec tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49334
diff
changeset
|
335 624e609639853fe22c88d42a8fd1f53a0e9b7ebe |
3cde8ed567d3
bundle: expand the graph we us for bundletype/bundlespec tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49334
diff
changeset
|
336 2ea90778052ba7558fab36e3fd5d149512ff986b |
3cde8ed567d3
bundle: expand the graph we us for bundletype/bundlespec tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49334
diff
changeset
|
337 b9f5f740a8cd76700020e3903ee55ecff78bd3e5 |
49333
1fd7520e4961
bundlespec: allow the bundle spec to control the bundle version
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
46776
diff
changeset
|
338 $ hg debugbundle ./v2-cg-default.hg --spec |
1fd7520e4961
bundlespec: allow the bundle spec to control the bundle version
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
46776
diff
changeset
|
339 bzip2-v2 |
1fd7520e4961
bundlespec: allow the bundle spec to control the bundle version
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
46776
diff
changeset
|
340 $ hg -R t1 bundle --config experimental.changegroup3=yes -a -t 'v2;cg.version=02' ./v2-cg-02.hg |
50388
3cde8ed567d3
bundle: expand the graph we us for bundletype/bundlespec tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49334
diff
changeset
|
341 7 changesets found |
49333
1fd7520e4961
bundlespec: allow the bundle spec to control the bundle version
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
46776
diff
changeset
|
342 $ hg debugbundle ./v2-cg-02.hg --part-type changegroup |
1fd7520e4961
bundlespec: allow the bundle spec to control the bundle version
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
46776
diff
changeset
|
343 Stream params: {Compression: BZ} |
50388
3cde8ed567d3
bundle: expand the graph we us for bundletype/bundlespec tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49334
diff
changeset
|
344 changegroup -- {nbchanges: 7, version: 02} (mandatory: True) |
3cde8ed567d3
bundle: expand the graph we us for bundletype/bundlespec tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49334
diff
changeset
|
345 ac39af4a9f7d2aaa7d244720e57838be9bf63b03 |
3cde8ed567d3
bundle: expand the graph we us for bundletype/bundlespec tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49334
diff
changeset
|
346 901e97fadc587978ec52f2fa76af4aefc2d191e8 |
3cde8ed567d3
bundle: expand the graph we us for bundletype/bundlespec tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49334
diff
changeset
|
347 a8c3a1ed30eb71f03f476c5fa7ead831ef991a55 |
3cde8ed567d3
bundle: expand the graph we us for bundletype/bundlespec tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49334
diff
changeset
|
348 66e2c4b43e0cf8f0bdff0733a0b97ce57874e35d |
3cde8ed567d3
bundle: expand the graph we us for bundletype/bundlespec tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49334
diff
changeset
|
349 624e609639853fe22c88d42a8fd1f53a0e9b7ebe |
3cde8ed567d3
bundle: expand the graph we us for bundletype/bundlespec tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49334
diff
changeset
|
350 2ea90778052ba7558fab36e3fd5d149512ff986b |
3cde8ed567d3
bundle: expand the graph we us for bundletype/bundlespec tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49334
diff
changeset
|
351 b9f5f740a8cd76700020e3903ee55ecff78bd3e5 |
49333
1fd7520e4961
bundlespec: allow the bundle spec to control the bundle version
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
46776
diff
changeset
|
352 $ hg debugbundle ./v2-cg-02.hg --spec |
1fd7520e4961
bundlespec: allow the bundle spec to control the bundle version
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
46776
diff
changeset
|
353 bzip2-v2 |
1fd7520e4961
bundlespec: allow the bundle spec to control the bundle version
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
46776
diff
changeset
|
354 $ hg -R t1 bundle --config experimental.changegroup3=yes -a -t 'v2;cg.version=03' ./v2-cg-03.hg |
50388
3cde8ed567d3
bundle: expand the graph we us for bundletype/bundlespec tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49334
diff
changeset
|
355 7 changesets found |
49333
1fd7520e4961
bundlespec: allow the bundle spec to control the bundle version
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
46776
diff
changeset
|
356 $ hg debugbundle ./v2-cg-03.hg --part-type changegroup |
1fd7520e4961
bundlespec: allow the bundle spec to control the bundle version
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
46776
diff
changeset
|
357 Stream params: {Compression: BZ} |
50388
3cde8ed567d3
bundle: expand the graph we us for bundletype/bundlespec tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49334
diff
changeset
|
358 changegroup -- {nbchanges: 7, version: 03} (mandatory: True) |
3cde8ed567d3
bundle: expand the graph we us for bundletype/bundlespec tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49334
diff
changeset
|
359 ac39af4a9f7d2aaa7d244720e57838be9bf63b03 |
3cde8ed567d3
bundle: expand the graph we us for bundletype/bundlespec tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49334
diff
changeset
|
360 901e97fadc587978ec52f2fa76af4aefc2d191e8 |
3cde8ed567d3
bundle: expand the graph we us for bundletype/bundlespec tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49334
diff
changeset
|
361 a8c3a1ed30eb71f03f476c5fa7ead831ef991a55 |
3cde8ed567d3
bundle: expand the graph we us for bundletype/bundlespec tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49334
diff
changeset
|
362 66e2c4b43e0cf8f0bdff0733a0b97ce57874e35d |
3cde8ed567d3
bundle: expand the graph we us for bundletype/bundlespec tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49334
diff
changeset
|
363 624e609639853fe22c88d42a8fd1f53a0e9b7ebe |
3cde8ed567d3
bundle: expand the graph we us for bundletype/bundlespec tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49334
diff
changeset
|
364 2ea90778052ba7558fab36e3fd5d149512ff986b |
3cde8ed567d3
bundle: expand the graph we us for bundletype/bundlespec tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49334
diff
changeset
|
365 b9f5f740a8cd76700020e3903ee55ecff78bd3e5 |
49333
1fd7520e4961
bundlespec: allow the bundle spec to control the bundle version
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
46776
diff
changeset
|
366 $ hg debugbundle ./v2-cg-03.hg --spec |
49334
6d15a8971e30
bundlespec: fix the generation of bundlespec for `cg.version`
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
49333
diff
changeset
|
367 bzip2-v2;cg.version=03 |