##// END OF EJS Templates
streamclonebundle: add a test for stream clone bundle v2...
Boris Feld -
r37186:99f28a4b default
parent child Browse files
Show More
@@ -21,6 +21,7 b' Test creating a consuming stream bundle '
21 > publish=False
21 > publish=False
22 > [extensions]
22 > [extensions]
23 > drawdag=$TESTDIR/drawdag.py
23 > drawdag=$TESTDIR/drawdag.py
24 > clonebundles=
24 > EOF
25 > EOF
25
26
26 The extension requires a repo (currently unused)
27 The extension requires a repo (currently unused)
@@ -46,3 +47,68 b' The extension requires a repo (currently'
46 stream2 -- {bytecount: 1693, filecount: 11, requirements: dotencode%2Cfncache%2Cgeneraldelta%2Crevlogv1%2Cstore}
47 stream2 -- {bytecount: 1693, filecount: 11, requirements: dotencode%2Cfncache%2Cgeneraldelta%2Crevlogv1%2Cstore}
47 $ hg debugbundle --spec bundle.hg
48 $ hg debugbundle --spec bundle.hg
48 none-v2;stream=v2;requirements%3Ddotencode%2Cfncache%2Cgeneraldelta%2Crevlogv1%2Cstore
49 none-v2;stream=v2;requirements%3Ddotencode%2Cfncache%2Cgeneraldelta%2Crevlogv1%2Cstore
50
51 Test that we can apply the bundle as a stream clone bundle
52
53 $ cat > .hg/clonebundles.manifest << EOF
54 > http://localhost:$HGPORT1/bundle.hg BUNDLESPEC=`hg debugbundle --spec bundle.hg`
55 > EOF
56
57 $ hg serve -d -p $HGPORT --pid-file hg.pid --accesslog access.log
58 $ cat hg.pid >> $DAEMON_PIDS
59
60 $ "$PYTHON" $TESTDIR/dumbhttp.py -p $HGPORT1 --pid http.pid
61 $ cat http.pid >> $DAEMON_PIDS
62
63 $ cd ..
64 $ hg clone http://localhost:$HGPORT streamv2-clone-implicit --debug
65 using http://localhost:$HGPORT/
66 sending capabilities command
67 sending clonebundles command
68 applying clone bundle from http://localhost:$HGPORT1/bundle.hg
69 bundle2-input-bundle: with-transaction
70 bundle2-input-part: "stream2" (params: 3 mandatory) supported
71 applying stream bundle
72 11 files to transfer, 1.65 KB of data
73 adding [s] data/A.i (66 bytes)
74 adding [s] data/B.i (66 bytes)
75 adding [s] data/C.i (66 bytes)
76 adding [s] data/D.i (66 bytes)
77 adding [s] data/E.i (66 bytes)
78 adding [s] 00manifest.i (584 bytes)
79 adding [s] 00changelog.i (595 bytes)
80 adding [s] phaseroots (43 bytes)
81 adding [c] branch2-served (94 bytes)
82 adding [c] rbc-names-v1 (7 bytes)
83 adding [c] rbc-revs-v1 (40 bytes)
84 transferred 1.65 KB in \d\.\d seconds \(.*/sec\) (re)
85 bundle2-input-part: total payload size 1840
86 bundle2-input-bundle: 0 parts total
87 finished applying clone bundle
88 query 1; heads
89 sending batch command
90 searching for changes
91 all remote heads known locally
92 no changes found
93 sending getbundle command
94 bundle2-input-bundle: with-transaction
95 bundle2-input-part: "listkeys" (params: 1 mandatory) supported
96 bundle2-input-part: "phase-heads" supported
97 bundle2-input-part: total payload size 24
98 bundle2-input-bundle: 1 parts total
99 checking for updated bookmarks
100 updating to branch default
101 resolving manifests
102 branchmerge: False, force: False, partial: False
103 ancestor: 000000000000, local: 000000000000+, remote: 9bc730a19041
104 A: remote created -> g
105 getting A
106 B: remote created -> g
107 getting B
108 C: remote created -> g
109 getting C
110 D: remote created -> g
111 getting D
112 E: remote created -> g
113 getting E
114 5 files updated, 0 files merged, 0 files removed, 0 files unresolved
General Comments 0
You need to be logged in to leave comments. Login now