Patchwork D1953: streambundlev2: add a new test-file

login
register
mail settings
Submitter phabricator
Date March 30, 2018, 5:11 p.m.
Message ID <1bd9f7b46e3ab975ef66605e4d501903@localhost.localdomain>
Download mbox | patch
Permalink /patch/29961/
State Not Applicable
Headers show

Comments

phabricator - March 30, 2018, 5:11 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG568e9b928c4c: streambundlev2: add a new test-file (authored by lothiraldan, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D1953?vs=7375&id=7384

REVISION DETAIL
  https://phab.mercurial-scm.org/D1953

AFFECTED FILES
  tests/test-stream-bundle-v2.t

CHANGE DETAILS




To: lothiraldan, #hg-reviewers, indygreg
Cc: mercurial-devel

Patch

diff --git a/tests/test-stream-bundle-v2.t b/tests/test-stream-bundle-v2.t
new file mode 100644
--- /dev/null
+++ b/tests/test-stream-bundle-v2.t
@@ -0,0 +1,55 @@ 
+Test creating a consuming stream bundle v2
+
+  $ getmainid() {
+  >    hg -R main log --template '{node}\n' --rev "$1"
+  > }
+
+  $ cp $HGRCPATH $TESTTMP/hgrc.orig
+
+  $ cat >> $HGRCPATH << EOF
+  > [experimental]
+  > evolution.createmarkers=True
+  > evolution.exchange=True
+  > bundle2-output-capture=True
+  > [ui]
+  > ssh="$PYTHON" "$TESTDIR/dummyssh"
+  > logtemplate={rev}:{node|short} {phase} {author} {bookmarks} {desc|firstline}
+  > [web]
+  > push_ssl = false
+  > allow_push = *
+  > [phases]
+  > publish=False
+  > [extensions]
+  > drawdag=$TESTDIR/drawdag.py
+  > EOF
+
+The extension requires a repo (currently unused)
+
+  $ hg init main
+  $ cd main
+
+  $ hg debugdrawdag <<'EOF'
+  > E
+  > |
+  > D
+  > |
+  > C
+  > |
+  > B
+  > |
+  > A
+  > EOF
+
+  $ hg bundle -a --type="none-v2;stream=v2" bundle.hg
+  5 changesets found
+  $ hg debugbundle bundle.hg
+  Stream params: {}
+  changegroup -- {nbchanges: 5, version: 02}
+      426bada5c67598ca65036d57d9e4b64b0c1ce7a0
+      112478962961147124edd43549aedd1a335e44bf
+      26805aba1e600a82e93661149f2313866a221a7b
+      f585351a92f85104bff7c284233c338b10eb1df7
+      9bc730a19041f9ec7cb33c626e811aa233efb18c
+  cache:rev-branch-cache -- {}
+  $ hg debugbundle --spec bundle.hg
+  none-v2