Mercurial > hg
annotate tests/test-stream-bundle-v2.t @ 37168:a2b350d9f6ae
bundlespec: add support for some variants
This way the stream v2 bundle spec can disable the changegroup part while
enabling the stream v2 part.
Differential Revision: https://phab.mercurial-scm.org/D1955
author | Boris Feld <boris.feld@octobus.net> |
---|---|
date | Wed, 31 Jan 2018 11:10:55 +0100 |
parents | 568e9b928c4c |
children | 99f28a4b2a3a |
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 $ hg debugbundle bundle.hg |
568e9b928c4c
streambundlev2: add a new test-file
Boris Feld <boris.feld@octobus.net>
parents:
diff
changeset
|
45 Stream params: {} |
37168
a2b350d9f6ae
bundlespec: add support for some variants
Boris Feld <boris.feld@octobus.net>
parents:
37166
diff
changeset
|
46 stream2 -- {bytecount: 1693, filecount: 11, requirements: dotencode%2Cfncache%2Cgeneraldelta%2Crevlogv1%2Cstore} |
37166
568e9b928c4c
streambundlev2: add a new test-file
Boris Feld <boris.feld@octobus.net>
parents:
diff
changeset
|
47 $ hg debugbundle --spec bundle.hg |
37168
a2b350d9f6ae
bundlespec: add support for some variants
Boris Feld <boris.feld@octobus.net>
parents:
37166
diff
changeset
|
48 none-v2;stream=v2;requirements%3Ddotencode%2Cfncache%2Cgeneraldelta%2Crevlogv1%2Cstore |