Mercurial > hg
annotate tests/test-stream-bundle-v2.t @ 37166:568e9b928c4c
streambundlev2: add a new test-file
Add the new test file in a separate changeset before supporting the new format
so we better see the differences.
Differential Revision: https://phab.mercurial-scm.org/D1953
author | Boris Feld <boris.feld@octobus.net> |
---|---|
date | Wed, 31 Jan 2018 10:55:15 +0100 |
parents | |
children | a2b350d9f6ae |
rev | line source |
---|---|
37166
568e9b928c4c
streambundlev2: add a new test-file
Boris Feld <boris.feld@octobus.net>
parents:
diff
changeset
|
1 Test creating a consuming stream bundle v2 |
568e9b928c4c
streambundlev2: add a new test-file
Boris Feld <boris.feld@octobus.net>
parents:
diff
changeset
|
2 |
568e9b928c4c
streambundlev2: add a new test-file
Boris Feld <boris.feld@octobus.net>
parents:
diff
changeset
|
3 $ getmainid() { |
568e9b928c4c
streambundlev2: add a new test-file
Boris Feld <boris.feld@octobus.net>
parents:
diff
changeset
|
4 > hg -R main log --template '{node}\n' --rev "$1" |
568e9b928c4c
streambundlev2: add a new test-file
Boris Feld <boris.feld@octobus.net>
parents:
diff
changeset
|
5 > } |
568e9b928c4c
streambundlev2: add a new test-file
Boris Feld <boris.feld@octobus.net>
parents:
diff
changeset
|
6 |
568e9b928c4c
streambundlev2: add a new test-file
Boris Feld <boris.feld@octobus.net>
parents:
diff
changeset
|
7 $ cp $HGRCPATH $TESTTMP/hgrc.orig |
568e9b928c4c
streambundlev2: add a new test-file
Boris Feld <boris.feld@octobus.net>
parents:
diff
changeset
|
8 |
568e9b928c4c
streambundlev2: add a new test-file
Boris Feld <boris.feld@octobus.net>
parents:
diff
changeset
|
9 $ cat >> $HGRCPATH << EOF |
568e9b928c4c
streambundlev2: add a new test-file
Boris Feld <boris.feld@octobus.net>
parents:
diff
changeset
|
10 > [experimental] |
568e9b928c4c
streambundlev2: add a new test-file
Boris Feld <boris.feld@octobus.net>
parents:
diff
changeset
|
11 > evolution.createmarkers=True |
568e9b928c4c
streambundlev2: add a new test-file
Boris Feld <boris.feld@octobus.net>
parents:
diff
changeset
|
12 > evolution.exchange=True |
568e9b928c4c
streambundlev2: add a new test-file
Boris Feld <boris.feld@octobus.net>
parents:
diff
changeset
|
13 > bundle2-output-capture=True |
568e9b928c4c
streambundlev2: add a new test-file
Boris Feld <boris.feld@octobus.net>
parents:
diff
changeset
|
14 > [ui] |
568e9b928c4c
streambundlev2: add a new test-file
Boris Feld <boris.feld@octobus.net>
parents:
diff
changeset
|
15 > ssh="$PYTHON" "$TESTDIR/dummyssh" |
568e9b928c4c
streambundlev2: add a new test-file
Boris Feld <boris.feld@octobus.net>
parents:
diff
changeset
|
16 > logtemplate={rev}:{node|short} {phase} {author} {bookmarks} {desc|firstline} |
568e9b928c4c
streambundlev2: add a new test-file
Boris Feld <boris.feld@octobus.net>
parents:
diff
changeset
|
17 > [web] |
568e9b928c4c
streambundlev2: add a new test-file
Boris Feld <boris.feld@octobus.net>
parents:
diff
changeset
|
18 > push_ssl = false |
568e9b928c4c
streambundlev2: add a new test-file
Boris Feld <boris.feld@octobus.net>
parents:
diff
changeset
|
19 > allow_push = * |
568e9b928c4c
streambundlev2: add a new test-file
Boris Feld <boris.feld@octobus.net>
parents:
diff
changeset
|
20 > [phases] |
568e9b928c4c
streambundlev2: add a new test-file
Boris Feld <boris.feld@octobus.net>
parents:
diff
changeset
|
21 > publish=False |
568e9b928c4c
streambundlev2: add a new test-file
Boris Feld <boris.feld@octobus.net>
parents:
diff
changeset
|
22 > [extensions] |
568e9b928c4c
streambundlev2: add a new test-file
Boris Feld <boris.feld@octobus.net>
parents:
diff
changeset
|
23 > drawdag=$TESTDIR/drawdag.py |
568e9b928c4c
streambundlev2: add a new test-file
Boris Feld <boris.feld@octobus.net>
parents:
diff
changeset
|
24 > EOF |
568e9b928c4c
streambundlev2: add a new test-file
Boris Feld <boris.feld@octobus.net>
parents:
diff
changeset
|
25 |
568e9b928c4c
streambundlev2: add a new test-file
Boris Feld <boris.feld@octobus.net>
parents:
diff
changeset
|
26 The extension requires a repo (currently unused) |
568e9b928c4c
streambundlev2: add a new test-file
Boris Feld <boris.feld@octobus.net>
parents:
diff
changeset
|
27 |
568e9b928c4c
streambundlev2: add a new test-file
Boris Feld <boris.feld@octobus.net>
parents:
diff
changeset
|
28 $ hg init main |
568e9b928c4c
streambundlev2: add a new test-file
Boris Feld <boris.feld@octobus.net>
parents:
diff
changeset
|
29 $ cd main |
568e9b928c4c
streambundlev2: add a new test-file
Boris Feld <boris.feld@octobus.net>
parents:
diff
changeset
|
30 |
568e9b928c4c
streambundlev2: add a new test-file
Boris Feld <boris.feld@octobus.net>
parents:
diff
changeset
|
31 $ hg debugdrawdag <<'EOF' |
568e9b928c4c
streambundlev2: add a new test-file
Boris Feld <boris.feld@octobus.net>
parents:
diff
changeset
|
32 > E |
568e9b928c4c
streambundlev2: add a new test-file
Boris Feld <boris.feld@octobus.net>
parents:
diff
changeset
|
33 > | |
568e9b928c4c
streambundlev2: add a new test-file
Boris Feld <boris.feld@octobus.net>
parents:
diff
changeset
|
34 > D |
568e9b928c4c
streambundlev2: add a new test-file
Boris Feld <boris.feld@octobus.net>
parents:
diff
changeset
|
35 > | |
568e9b928c4c
streambundlev2: add a new test-file
Boris Feld <boris.feld@octobus.net>
parents:
diff
changeset
|
36 > C |
568e9b928c4c
streambundlev2: add a new test-file
Boris Feld <boris.feld@octobus.net>
parents:
diff
changeset
|
37 > | |
568e9b928c4c
streambundlev2: add a new test-file
Boris Feld <boris.feld@octobus.net>
parents:
diff
changeset
|
38 > B |
568e9b928c4c
streambundlev2: add a new test-file
Boris Feld <boris.feld@octobus.net>
parents:
diff
changeset
|
39 > | |
568e9b928c4c
streambundlev2: add a new test-file
Boris Feld <boris.feld@octobus.net>
parents:
diff
changeset
|
40 > A |
568e9b928c4c
streambundlev2: add a new test-file
Boris Feld <boris.feld@octobus.net>
parents:
diff
changeset
|
41 > EOF |
568e9b928c4c
streambundlev2: add a new test-file
Boris Feld <boris.feld@octobus.net>
parents:
diff
changeset
|
42 |
568e9b928c4c
streambundlev2: add a new test-file
Boris Feld <boris.feld@octobus.net>
parents:
diff
changeset
|
43 $ hg bundle -a --type="none-v2;stream=v2" bundle.hg |
568e9b928c4c
streambundlev2: add a new test-file
Boris Feld <boris.feld@octobus.net>
parents:
diff
changeset
|
44 5 changesets found |
568e9b928c4c
streambundlev2: add a new test-file
Boris Feld <boris.feld@octobus.net>
parents:
diff
changeset
|
45 $ hg debugbundle bundle.hg |
568e9b928c4c
streambundlev2: add a new test-file
Boris Feld <boris.feld@octobus.net>
parents:
diff
changeset
|
46 Stream params: {} |
568e9b928c4c
streambundlev2: add a new test-file
Boris Feld <boris.feld@octobus.net>
parents:
diff
changeset
|
47 changegroup -- {nbchanges: 5, version: 02} |
568e9b928c4c
streambundlev2: add a new test-file
Boris Feld <boris.feld@octobus.net>
parents:
diff
changeset
|
48 426bada5c67598ca65036d57d9e4b64b0c1ce7a0 |
568e9b928c4c
streambundlev2: add a new test-file
Boris Feld <boris.feld@octobus.net>
parents:
diff
changeset
|
49 112478962961147124edd43549aedd1a335e44bf |
568e9b928c4c
streambundlev2: add a new test-file
Boris Feld <boris.feld@octobus.net>
parents:
diff
changeset
|
50 26805aba1e600a82e93661149f2313866a221a7b |
568e9b928c4c
streambundlev2: add a new test-file
Boris Feld <boris.feld@octobus.net>
parents:
diff
changeset
|
51 f585351a92f85104bff7c284233c338b10eb1df7 |
568e9b928c4c
streambundlev2: add a new test-file
Boris Feld <boris.feld@octobus.net>
parents:
diff
changeset
|
52 9bc730a19041f9ec7cb33c626e811aa233efb18c |
568e9b928c4c
streambundlev2: add a new test-file
Boris Feld <boris.feld@octobus.net>
parents:
diff
changeset
|
53 cache:rev-branch-cache -- {} |
568e9b928c4c
streambundlev2: add a new test-file
Boris Feld <boris.feld@octobus.net>
parents:
diff
changeset
|
54 $ hg debugbundle --spec bundle.hg |
568e9b928c4c
streambundlev2: add a new test-file
Boris Feld <boris.feld@octobus.net>
parents:
diff
changeset
|
55 none-v2 |