equal
deleted
inserted
replaced
|
1 Test creating a consuming stream bundle v2 |
|
2 |
|
3 $ getmainid() { |
|
4 > hg -R main log --template '{node}\n' --rev "$1" |
|
5 > } |
|
6 |
|
7 $ cp $HGRCPATH $TESTTMP/hgrc.orig |
|
8 |
|
9 $ cat >> $HGRCPATH << EOF |
|
10 > [experimental] |
|
11 > evolution.createmarkers=True |
|
12 > evolution.exchange=True |
|
13 > bundle2-output-capture=True |
|
14 > [ui] |
|
15 > ssh="$PYTHON" "$TESTDIR/dummyssh" |
|
16 > logtemplate={rev}:{node|short} {phase} {author} {bookmarks} {desc|firstline} |
|
17 > [web] |
|
18 > push_ssl = false |
|
19 > allow_push = * |
|
20 > [phases] |
|
21 > publish=False |
|
22 > [extensions] |
|
23 > drawdag=$TESTDIR/drawdag.py |
|
24 > EOF |
|
25 |
|
26 The extension requires a repo (currently unused) |
|
27 |
|
28 $ hg init main |
|
29 $ cd main |
|
30 |
|
31 $ hg debugdrawdag <<'EOF' |
|
32 > E |
|
33 > | |
|
34 > D |
|
35 > | |
|
36 > C |
|
37 > | |
|
38 > B |
|
39 > | |
|
40 > A |
|
41 > EOF |
|
42 |
|
43 $ hg bundle -a --type="none-v2;stream=v2" bundle.hg |
|
44 5 changesets found |
|
45 $ hg debugbundle bundle.hg |
|
46 Stream params: {} |
|
47 changegroup -- {nbchanges: 5, version: 02} |
|
48 426bada5c67598ca65036d57d9e4b64b0c1ce7a0 |
|
49 112478962961147124edd43549aedd1a335e44bf |
|
50 26805aba1e600a82e93661149f2313866a221a7b |
|
51 f585351a92f85104bff7c284233c338b10eb1df7 |
|
52 9bc730a19041f9ec7cb33c626e811aa233efb18c |
|
53 cache:rev-branch-cache -- {} |
|
54 $ hg debugbundle --spec bundle.hg |
|
55 none-v2 |