Mercurial > hg
annotate tests/test-pull-bundle.t @ 49762:c4d587fa161c
peer: pass the `path` to the statichttp peer
We now have all peer able to receive and store a `path` object. Hooray.
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Fri, 02 Dec 2022 19:34:01 +0100 |
parents | 53e4f44ba0e8 |
children |
rev | line source |
---|---|
38021
538e850ae737
tests: mark tests that fail when using chg as #require no-chg
Kyle Lippincott <spectral@google.com>
parents:
37592
diff
changeset
|
1 #require no-chg |
538e850ae737
tests: mark tests that fail when using chg as #require no-chg
Kyle Lippincott <spectral@google.com>
parents:
37592
diff
changeset
|
2 |
37498
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
3 $ hg init repo |
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
4 $ cd repo |
45961
35d5d1d8bcf0
tests: simplify and extend pull-bundle test using debugbuilddag
Joerg Sonnenberger <joerg@bec.de>
parents:
45906
diff
changeset
|
5 $ hg debugbuilddag '+3<3+1' |
37498
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
6 |
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
7 $ hg log |
45961
35d5d1d8bcf0
tests: simplify and extend pull-bundle test using debugbuilddag
Joerg Sonnenberger <joerg@bec.de>
parents:
45906
diff
changeset
|
8 changeset: 3:6100d3090acf |
37498
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
9 tag: tip |
45961
35d5d1d8bcf0
tests: simplify and extend pull-bundle test using debugbuilddag
Joerg Sonnenberger <joerg@bec.de>
parents:
45906
diff
changeset
|
10 parent: 0:1ea73414a91b |
35d5d1d8bcf0
tests: simplify and extend pull-bundle test using debugbuilddag
Joerg Sonnenberger <joerg@bec.de>
parents:
45906
diff
changeset
|
11 user: debugbuilddag |
35d5d1d8bcf0
tests: simplify and extend pull-bundle test using debugbuilddag
Joerg Sonnenberger <joerg@bec.de>
parents:
45906
diff
changeset
|
12 date: Thu Jan 01 00:00:03 1970 +0000 |
35d5d1d8bcf0
tests: simplify and extend pull-bundle test using debugbuilddag
Joerg Sonnenberger <joerg@bec.de>
parents:
45906
diff
changeset
|
13 summary: r3 |
37498
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
14 |
45961
35d5d1d8bcf0
tests: simplify and extend pull-bundle test using debugbuilddag
Joerg Sonnenberger <joerg@bec.de>
parents:
45906
diff
changeset
|
15 changeset: 2:01241442b3c2 |
35d5d1d8bcf0
tests: simplify and extend pull-bundle test using debugbuilddag
Joerg Sonnenberger <joerg@bec.de>
parents:
45906
diff
changeset
|
16 user: debugbuilddag |
35d5d1d8bcf0
tests: simplify and extend pull-bundle test using debugbuilddag
Joerg Sonnenberger <joerg@bec.de>
parents:
45906
diff
changeset
|
17 date: Thu Jan 01 00:00:02 1970 +0000 |
35d5d1d8bcf0
tests: simplify and extend pull-bundle test using debugbuilddag
Joerg Sonnenberger <joerg@bec.de>
parents:
45906
diff
changeset
|
18 summary: r2 |
37498
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
19 |
45961
35d5d1d8bcf0
tests: simplify and extend pull-bundle test using debugbuilddag
Joerg Sonnenberger <joerg@bec.de>
parents:
45906
diff
changeset
|
20 changeset: 1:66f7d451a68b |
35d5d1d8bcf0
tests: simplify and extend pull-bundle test using debugbuilddag
Joerg Sonnenberger <joerg@bec.de>
parents:
45906
diff
changeset
|
21 user: debugbuilddag |
35d5d1d8bcf0
tests: simplify and extend pull-bundle test using debugbuilddag
Joerg Sonnenberger <joerg@bec.de>
parents:
45906
diff
changeset
|
22 date: Thu Jan 01 00:00:01 1970 +0000 |
35d5d1d8bcf0
tests: simplify and extend pull-bundle test using debugbuilddag
Joerg Sonnenberger <joerg@bec.de>
parents:
45906
diff
changeset
|
23 summary: r1 |
35d5d1d8bcf0
tests: simplify and extend pull-bundle test using debugbuilddag
Joerg Sonnenberger <joerg@bec.de>
parents:
45906
diff
changeset
|
24 |
35d5d1d8bcf0
tests: simplify and extend pull-bundle test using debugbuilddag
Joerg Sonnenberger <joerg@bec.de>
parents:
45906
diff
changeset
|
25 changeset: 0:1ea73414a91b |
35d5d1d8bcf0
tests: simplify and extend pull-bundle test using debugbuilddag
Joerg Sonnenberger <joerg@bec.de>
parents:
45906
diff
changeset
|
26 user: debugbuilddag |
37498
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
27 date: Thu Jan 01 00:00:00 1970 +0000 |
45961
35d5d1d8bcf0
tests: simplify and extend pull-bundle test using debugbuilddag
Joerg Sonnenberger <joerg@bec.de>
parents:
45906
diff
changeset
|
28 summary: r0 |
37498
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
29 |
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
30 $ cd .. |
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
31 |
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
32 Test pullbundle functionality |
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
33 |
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
34 $ cd repo |
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
35 $ cat <<EOF > .hg/hgrc |
44782
3d5fb6cab832
pullbundles: use unfiltered repo for head/base matching
Joerg Sonnenberger <joerg@bec.de>
parents:
42897
diff
changeset
|
36 > [experimental] |
3d5fb6cab832
pullbundles: use unfiltered repo for head/base matching
Joerg Sonnenberger <joerg@bec.de>
parents:
42897
diff
changeset
|
37 > evolution = True |
37498
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
38 > [extensions] |
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
39 > blackbox = |
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
40 > EOF |
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
41 $ hg bundle --base null -r 0 .hg/0.hg |
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
42 1 changesets found |
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
43 $ hg bundle --base 0 -r 1 .hg/1.hg |
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
44 1 changesets found |
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
45 $ hg bundle --base 1 -r 2 .hg/2.hg |
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
46 1 changesets found |
45961
35d5d1d8bcf0
tests: simplify and extend pull-bundle test using debugbuilddag
Joerg Sonnenberger <joerg@bec.de>
parents:
45906
diff
changeset
|
47 $ hg bundle --base 1 -r 3 .hg/3.hg |
35d5d1d8bcf0
tests: simplify and extend pull-bundle test using debugbuilddag
Joerg Sonnenberger <joerg@bec.de>
parents:
45906
diff
changeset
|
48 1 changesets found |
37498
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
49 $ cat <<EOF > .hg/pullbundles.manifest |
45961
35d5d1d8bcf0
tests: simplify and extend pull-bundle test using debugbuilddag
Joerg Sonnenberger <joerg@bec.de>
parents:
45906
diff
changeset
|
50 > 3.hg BUNDLESPEC=none-v2 heads=6100d3090acf50ed11ec23196cec20f5bd7323aa bases=1ea73414a91b0920940797d8fc6a11e447f8ea1e |
35d5d1d8bcf0
tests: simplify and extend pull-bundle test using debugbuilddag
Joerg Sonnenberger <joerg@bec.de>
parents:
45906
diff
changeset
|
51 > 2.hg BUNDLESPEC=none-v2 heads=01241442b3c2bf3211e593b549c655ea65b295e3 bases=66f7d451a68b85ed82ff5fcc254daf50c74144bd |
35d5d1d8bcf0
tests: simplify and extend pull-bundle test using debugbuilddag
Joerg Sonnenberger <joerg@bec.de>
parents:
45906
diff
changeset
|
52 > 1.hg BUNDLESPEC=bzip2-v2 heads=66f7d451a68b85ed82ff5fcc254daf50c74144bd bases=1ea73414a91b0920940797d8fc6a11e447f8ea1e |
35d5d1d8bcf0
tests: simplify and extend pull-bundle test using debugbuilddag
Joerg Sonnenberger <joerg@bec.de>
parents:
45906
diff
changeset
|
53 > 0.hg BUNDLESPEC=gzip-v2 heads=1ea73414a91b0920940797d8fc6a11e447f8ea1e |
37498
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
54 > EOF |
45730
fbde66b05da4
test: check server error output in `test-pull-bundle.t`
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
44782
diff
changeset
|
55 $ hg --config blackbox.track=debug --debug serve -p $HGPORT2 -d --pid-file=../repo.pid -E ../error.txt |
37592
fb91757471b5
tests: glob away fqdn wherever we print it
Augie Fackler <augie@google.com>
parents:
37516
diff
changeset
|
56 listening at http://*:$HGPORT2/ (bound to $LOCALIP:$HGPORT2) (glob) (?) |
37498
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
57 $ cat ../repo.pid >> $DAEMON_PIDS |
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
58 $ cd .. |
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
59 $ hg clone -r 0 http://localhost:$HGPORT2/ repo.pullbundle |
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
60 adding changesets |
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
61 adding manifests |
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
62 adding file changes |
45961
35d5d1d8bcf0
tests: simplify and extend pull-bundle test using debugbuilddag
Joerg Sonnenberger <joerg@bec.de>
parents:
45906
diff
changeset
|
63 added 1 changesets with 0 changes to 0 files |
35d5d1d8bcf0
tests: simplify and extend pull-bundle test using debugbuilddag
Joerg Sonnenberger <joerg@bec.de>
parents:
45906
diff
changeset
|
64 new changesets 1ea73414a91b (1 drafts) |
37498
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
65 updating to branch default |
45961
35d5d1d8bcf0
tests: simplify and extend pull-bundle test using debugbuilddag
Joerg Sonnenberger <joerg@bec.de>
parents:
45906
diff
changeset
|
66 0 files updated, 0 files merged, 0 files removed, 0 files unresolved |
45730
fbde66b05da4
test: check server error output in `test-pull-bundle.t`
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
44782
diff
changeset
|
67 $ cat error.txt |
37498
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
68 $ cd repo.pullbundle |
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
69 $ hg pull -r 1 |
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
70 pulling from http://localhost:$HGPORT2/ |
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
71 searching for changes |
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
72 adding changesets |
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
73 adding manifests |
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
74 adding file changes |
45961
35d5d1d8bcf0
tests: simplify and extend pull-bundle test using debugbuilddag
Joerg Sonnenberger <joerg@bec.de>
parents:
45906
diff
changeset
|
75 added 1 changesets with 0 changes to 0 files |
35d5d1d8bcf0
tests: simplify and extend pull-bundle test using debugbuilddag
Joerg Sonnenberger <joerg@bec.de>
parents:
45906
diff
changeset
|
76 new changesets 66f7d451a68b (1 drafts) |
37498
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
77 (run 'hg update' to get a working copy) |
45961
35d5d1d8bcf0
tests: simplify and extend pull-bundle test using debugbuilddag
Joerg Sonnenberger <joerg@bec.de>
parents:
45906
diff
changeset
|
78 $ hg pull -r 3 |
37498
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
79 pulling from http://localhost:$HGPORT2/ |
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
80 searching for changes |
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
81 adding changesets |
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
82 adding manifests |
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
83 adding file changes |
45961
35d5d1d8bcf0
tests: simplify and extend pull-bundle test using debugbuilddag
Joerg Sonnenberger <joerg@bec.de>
parents:
45906
diff
changeset
|
84 added 1 changesets with 0 changes to 0 files (+1 heads) |
35d5d1d8bcf0
tests: simplify and extend pull-bundle test using debugbuilddag
Joerg Sonnenberger <joerg@bec.de>
parents:
45906
diff
changeset
|
85 new changesets 6100d3090acf (1 drafts) |
37498
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
86 (run 'hg heads' to see heads, 'hg merge' to merge) |
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
87 $ cd .. |
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
88 $ killdaemons.py |
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
89 $ grep 'sending pullbundle ' repo/.hg/blackbox.log |
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
90 * sending pullbundle "0.hg" (glob) |
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
91 * sending pullbundle "1.hg" (glob) |
45961
35d5d1d8bcf0
tests: simplify and extend pull-bundle test using debugbuilddag
Joerg Sonnenberger <joerg@bec.de>
parents:
45906
diff
changeset
|
92 * sending pullbundle "3.hg" (glob) |
37498
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
93 $ rm repo/.hg/blackbox.log |
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
94 |
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
95 Test pullbundle functionality for incremental pulls |
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
96 |
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
97 $ cd repo |
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
98 $ hg --config blackbox.track=debug --debug serve -p $HGPORT2 -d --pid-file=../repo.pid |
37592
fb91757471b5
tests: glob away fqdn wherever we print it
Augie Fackler <augie@google.com>
parents:
37516
diff
changeset
|
99 listening at http://*:$HGPORT2/ (bound to $LOCALIP:$HGPORT2) (glob) (?) |
37498
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
100 $ cat ../repo.pid >> $DAEMON_PIDS |
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
101 $ cd .. |
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
102 $ hg clone http://localhost:$HGPORT2/ repo.pullbundle2 |
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
103 requesting all changes |
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
104 adding changesets |
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
105 adding manifests |
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
106 adding file changes |
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
107 adding changesets |
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
108 adding manifests |
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
109 adding file changes |
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
110 adding changesets |
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
111 adding manifests |
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
112 adding file changes |
45961
35d5d1d8bcf0
tests: simplify and extend pull-bundle test using debugbuilddag
Joerg Sonnenberger <joerg@bec.de>
parents:
45906
diff
changeset
|
113 adding changesets |
35d5d1d8bcf0
tests: simplify and extend pull-bundle test using debugbuilddag
Joerg Sonnenberger <joerg@bec.de>
parents:
45906
diff
changeset
|
114 adding manifests |
35d5d1d8bcf0
tests: simplify and extend pull-bundle test using debugbuilddag
Joerg Sonnenberger <joerg@bec.de>
parents:
45906
diff
changeset
|
115 adding file changes |
35d5d1d8bcf0
tests: simplify and extend pull-bundle test using debugbuilddag
Joerg Sonnenberger <joerg@bec.de>
parents:
45906
diff
changeset
|
116 added 4 changesets with 0 changes to 0 files (+1 heads) |
35d5d1d8bcf0
tests: simplify and extend pull-bundle test using debugbuilddag
Joerg Sonnenberger <joerg@bec.de>
parents:
45906
diff
changeset
|
117 new changesets 1ea73414a91b:01241442b3c2 (4 drafts) |
37498
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
118 updating to branch default |
45961
35d5d1d8bcf0
tests: simplify and extend pull-bundle test using debugbuilddag
Joerg Sonnenberger <joerg@bec.de>
parents:
45906
diff
changeset
|
119 0 files updated, 0 files merged, 0 files removed, 0 files unresolved |
37498
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
120 $ killdaemons.py |
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
121 $ grep 'sending pullbundle ' repo/.hg/blackbox.log |
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
122 * sending pullbundle "0.hg" (glob) |
45961
35d5d1d8bcf0
tests: simplify and extend pull-bundle test using debugbuilddag
Joerg Sonnenberger <joerg@bec.de>
parents:
45906
diff
changeset
|
123 * sending pullbundle "3.hg" (glob) |
35d5d1d8bcf0
tests: simplify and extend pull-bundle test using debugbuilddag
Joerg Sonnenberger <joerg@bec.de>
parents:
45906
diff
changeset
|
124 * sending pullbundle "1.hg" (glob) |
37498
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
125 * sending pullbundle "2.hg" (glob) |
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
126 $ rm repo/.hg/blackbox.log |
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
127 |
42143
29569f2db929
bundle2: handle compression in _forwardchunks
Joerg Sonnenberger <joerg@bec.de>
parents:
39480
diff
changeset
|
128 Test pullbundle functionality for incoming |
29569f2db929
bundle2: handle compression in _forwardchunks
Joerg Sonnenberger <joerg@bec.de>
parents:
39480
diff
changeset
|
129 |
29569f2db929
bundle2: handle compression in _forwardchunks
Joerg Sonnenberger <joerg@bec.de>
parents:
39480
diff
changeset
|
130 $ cd repo |
29569f2db929
bundle2: handle compression in _forwardchunks
Joerg Sonnenberger <joerg@bec.de>
parents:
39480
diff
changeset
|
131 $ hg --config blackbox.track=debug --debug serve -p $HGPORT2 -d --pid-file=../repo.pid |
29569f2db929
bundle2: handle compression in _forwardchunks
Joerg Sonnenberger <joerg@bec.de>
parents:
39480
diff
changeset
|
132 listening at http://*:$HGPORT2/ (bound to $LOCALIP:$HGPORT2) (glob) (?) |
29569f2db929
bundle2: handle compression in _forwardchunks
Joerg Sonnenberger <joerg@bec.de>
parents:
39480
diff
changeset
|
133 $ cat ../repo.pid >> $DAEMON_PIDS |
29569f2db929
bundle2: handle compression in _forwardchunks
Joerg Sonnenberger <joerg@bec.de>
parents:
39480
diff
changeset
|
134 $ cd .. |
29569f2db929
bundle2: handle compression in _forwardchunks
Joerg Sonnenberger <joerg@bec.de>
parents:
39480
diff
changeset
|
135 $ hg clone http://localhost:$HGPORT2/ repo.pullbundle2a -r 0 |
29569f2db929
bundle2: handle compression in _forwardchunks
Joerg Sonnenberger <joerg@bec.de>
parents:
39480
diff
changeset
|
136 adding changesets |
29569f2db929
bundle2: handle compression in _forwardchunks
Joerg Sonnenberger <joerg@bec.de>
parents:
39480
diff
changeset
|
137 adding manifests |
29569f2db929
bundle2: handle compression in _forwardchunks
Joerg Sonnenberger <joerg@bec.de>
parents:
39480
diff
changeset
|
138 adding file changes |
45961
35d5d1d8bcf0
tests: simplify and extend pull-bundle test using debugbuilddag
Joerg Sonnenberger <joerg@bec.de>
parents:
45906
diff
changeset
|
139 added 1 changesets with 0 changes to 0 files |
35d5d1d8bcf0
tests: simplify and extend pull-bundle test using debugbuilddag
Joerg Sonnenberger <joerg@bec.de>
parents:
45906
diff
changeset
|
140 new changesets 1ea73414a91b (1 drafts) |
42143
29569f2db929
bundle2: handle compression in _forwardchunks
Joerg Sonnenberger <joerg@bec.de>
parents:
39480
diff
changeset
|
141 updating to branch default |
45961
35d5d1d8bcf0
tests: simplify and extend pull-bundle test using debugbuilddag
Joerg Sonnenberger <joerg@bec.de>
parents:
45906
diff
changeset
|
142 0 files updated, 0 files merged, 0 files removed, 0 files unresolved |
42143
29569f2db929
bundle2: handle compression in _forwardchunks
Joerg Sonnenberger <joerg@bec.de>
parents:
39480
diff
changeset
|
143 $ cd repo.pullbundle2a |
45961
35d5d1d8bcf0
tests: simplify and extend pull-bundle test using debugbuilddag
Joerg Sonnenberger <joerg@bec.de>
parents:
45906
diff
changeset
|
144 $ hg incoming -r 66f7d451a68b |
42143
29569f2db929
bundle2: handle compression in _forwardchunks
Joerg Sonnenberger <joerg@bec.de>
parents:
39480
diff
changeset
|
145 comparing with http://localhost:$HGPORT2/ |
29569f2db929
bundle2: handle compression in _forwardchunks
Joerg Sonnenberger <joerg@bec.de>
parents:
39480
diff
changeset
|
146 searching for changes |
45961
35d5d1d8bcf0
tests: simplify and extend pull-bundle test using debugbuilddag
Joerg Sonnenberger <joerg@bec.de>
parents:
45906
diff
changeset
|
147 changeset: 1:66f7d451a68b |
42143
29569f2db929
bundle2: handle compression in _forwardchunks
Joerg Sonnenberger <joerg@bec.de>
parents:
39480
diff
changeset
|
148 tag: tip |
45961
35d5d1d8bcf0
tests: simplify and extend pull-bundle test using debugbuilddag
Joerg Sonnenberger <joerg@bec.de>
parents:
45906
diff
changeset
|
149 user: debugbuilddag |
35d5d1d8bcf0
tests: simplify and extend pull-bundle test using debugbuilddag
Joerg Sonnenberger <joerg@bec.de>
parents:
45906
diff
changeset
|
150 date: Thu Jan 01 00:00:01 1970 +0000 |
35d5d1d8bcf0
tests: simplify and extend pull-bundle test using debugbuilddag
Joerg Sonnenberger <joerg@bec.de>
parents:
45906
diff
changeset
|
151 summary: r1 |
42143
29569f2db929
bundle2: handle compression in _forwardchunks
Joerg Sonnenberger <joerg@bec.de>
parents:
39480
diff
changeset
|
152 |
29569f2db929
bundle2: handle compression in _forwardchunks
Joerg Sonnenberger <joerg@bec.de>
parents:
39480
diff
changeset
|
153 $ cd .. |
29569f2db929
bundle2: handle compression in _forwardchunks
Joerg Sonnenberger <joerg@bec.de>
parents:
39480
diff
changeset
|
154 $ killdaemons.py |
29569f2db929
bundle2: handle compression in _forwardchunks
Joerg Sonnenberger <joerg@bec.de>
parents:
39480
diff
changeset
|
155 $ grep 'sending pullbundle ' repo/.hg/blackbox.log |
29569f2db929
bundle2: handle compression in _forwardchunks
Joerg Sonnenberger <joerg@bec.de>
parents:
39480
diff
changeset
|
156 * sending pullbundle "0.hg" (glob) |
29569f2db929
bundle2: handle compression in _forwardchunks
Joerg Sonnenberger <joerg@bec.de>
parents:
39480
diff
changeset
|
157 * sending pullbundle "1.hg" (glob) |
29569f2db929
bundle2: handle compression in _forwardchunks
Joerg Sonnenberger <joerg@bec.de>
parents:
39480
diff
changeset
|
158 $ rm repo/.hg/blackbox.log |
29569f2db929
bundle2: handle compression in _forwardchunks
Joerg Sonnenberger <joerg@bec.de>
parents:
39480
diff
changeset
|
159 |
37498
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
160 Test recovery from misconfigured server sending no new data |
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
161 |
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
162 $ cd repo |
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
163 $ cat <<EOF > .hg/pullbundles.manifest |
45961
35d5d1d8bcf0
tests: simplify and extend pull-bundle test using debugbuilddag
Joerg Sonnenberger <joerg@bec.de>
parents:
45906
diff
changeset
|
164 > 0.hg heads=66f7d451a68b85ed82ff5fcc254daf50c74144bd bases=1ea73414a91b0920940797d8fc6a11e447f8ea1e |
35d5d1d8bcf0
tests: simplify and extend pull-bundle test using debugbuilddag
Joerg Sonnenberger <joerg@bec.de>
parents:
45906
diff
changeset
|
165 > 0.hg heads=1ea73414a91b0920940797d8fc6a11e447f8ea1e |
37498
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
166 > EOF |
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
167 $ hg --config blackbox.track=debug --debug serve -p $HGPORT2 -d --pid-file=../repo.pid |
37592
fb91757471b5
tests: glob away fqdn wherever we print it
Augie Fackler <augie@google.com>
parents:
37516
diff
changeset
|
168 listening at http://*:$HGPORT2/ (bound to $LOCALIP:$HGPORT2) (glob) (?) |
37498
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
169 $ cat ../repo.pid >> $DAEMON_PIDS |
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
170 $ cd .. |
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
171 $ hg clone -r 0 http://localhost:$HGPORT2/ repo.pullbundle3 |
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
172 adding changesets |
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
173 adding manifests |
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
174 adding file changes |
45961
35d5d1d8bcf0
tests: simplify and extend pull-bundle test using debugbuilddag
Joerg Sonnenberger <joerg@bec.de>
parents:
45906
diff
changeset
|
175 added 1 changesets with 0 changes to 0 files |
35d5d1d8bcf0
tests: simplify and extend pull-bundle test using debugbuilddag
Joerg Sonnenberger <joerg@bec.de>
parents:
45906
diff
changeset
|
176 new changesets 1ea73414a91b (1 drafts) |
37498
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
177 updating to branch default |
45961
35d5d1d8bcf0
tests: simplify and extend pull-bundle test using debugbuilddag
Joerg Sonnenberger <joerg@bec.de>
parents:
45906
diff
changeset
|
178 0 files updated, 0 files merged, 0 files removed, 0 files unresolved |
37498
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
179 $ cd repo.pullbundle3 |
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
180 $ hg pull -r 1 |
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
181 pulling from http://localhost:$HGPORT2/ |
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
182 searching for changes |
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
183 adding changesets |
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
184 adding manifests |
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
185 adding file changes |
47155
96ee8ca99f5a
revlog: use revlog.display_id in LookupError
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
46651
diff
changeset
|
186 abort: 00changelog@66f7d451a68b85ed82ff5fcc254daf50c74144bd: no node |
46116
17a695357270
errors: use detailed exit code 50 for StorageError
Martin von Zweigbergk <martinvonz@google.com>
parents:
45961
diff
changeset
|
187 [50] |
37498
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
188 $ cd .. |
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
189 $ killdaemons.py |
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
190 $ grep 'sending pullbundle ' repo/.hg/blackbox.log |
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
191 * sending pullbundle "0.hg" (glob) |
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
192 * sending pullbundle "0.hg" (glob) |
aacfca6f9767
wireproto: support for pullbundles
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
193 $ rm repo/.hg/blackbox.log |
44782
3d5fb6cab832
pullbundles: use unfiltered repo for head/base matching
Joerg Sonnenberger <joerg@bec.de>
parents:
42897
diff
changeset
|
194 |
48980
6e7ae547e38d
pullbundle: fix file name in the help text
Joerg Sonnenberger <joerg@bec.de>
parents:
47155
diff
changeset
|
195 Test processing when nodes used in the pullbundles.manifest end up being hidden |
44782
3d5fb6cab832
pullbundles: use unfiltered repo for head/base matching
Joerg Sonnenberger <joerg@bec.de>
parents:
42897
diff
changeset
|
196 |
3d5fb6cab832
pullbundles: use unfiltered repo for head/base matching
Joerg Sonnenberger <joerg@bec.de>
parents:
42897
diff
changeset
|
197 $ hg --repo repo debugobsolete ed1b79f46b9a29f5a6efa59cf12fcfca43bead5a |
3d5fb6cab832
pullbundles: use unfiltered repo for head/base matching
Joerg Sonnenberger <joerg@bec.de>
parents:
42897
diff
changeset
|
198 1 new obsolescence markers |
3d5fb6cab832
pullbundles: use unfiltered repo for head/base matching
Joerg Sonnenberger <joerg@bec.de>
parents:
42897
diff
changeset
|
199 $ hg serve --repo repo --config server.view=visible -p $HGPORT -d --pid-file=hg.pid -E errors.log |
3d5fb6cab832
pullbundles: use unfiltered repo for head/base matching
Joerg Sonnenberger <joerg@bec.de>
parents:
42897
diff
changeset
|
200 $ cat hg.pid >> $DAEMON_PIDS |
3d5fb6cab832
pullbundles: use unfiltered repo for head/base matching
Joerg Sonnenberger <joerg@bec.de>
parents:
42897
diff
changeset
|
201 $ hg clone http://localhost:$HGPORT repo-obs |
3d5fb6cab832
pullbundles: use unfiltered repo for head/base matching
Joerg Sonnenberger <joerg@bec.de>
parents:
42897
diff
changeset
|
202 requesting all changes |
3d5fb6cab832
pullbundles: use unfiltered repo for head/base matching
Joerg Sonnenberger <joerg@bec.de>
parents:
42897
diff
changeset
|
203 adding changesets |
3d5fb6cab832
pullbundles: use unfiltered repo for head/base matching
Joerg Sonnenberger <joerg@bec.de>
parents:
42897
diff
changeset
|
204 adding manifests |
3d5fb6cab832
pullbundles: use unfiltered repo for head/base matching
Joerg Sonnenberger <joerg@bec.de>
parents:
42897
diff
changeset
|
205 adding file changes |
3d5fb6cab832
pullbundles: use unfiltered repo for head/base matching
Joerg Sonnenberger <joerg@bec.de>
parents:
42897
diff
changeset
|
206 adding changesets |
3d5fb6cab832
pullbundles: use unfiltered repo for head/base matching
Joerg Sonnenberger <joerg@bec.de>
parents:
42897
diff
changeset
|
207 adding manifests |
3d5fb6cab832
pullbundles: use unfiltered repo for head/base matching
Joerg Sonnenberger <joerg@bec.de>
parents:
42897
diff
changeset
|
208 adding file changes |
45961
35d5d1d8bcf0
tests: simplify and extend pull-bundle test using debugbuilddag
Joerg Sonnenberger <joerg@bec.de>
parents:
45906
diff
changeset
|
209 added 1 changesets with 0 changes to 0 files |
35d5d1d8bcf0
tests: simplify and extend pull-bundle test using debugbuilddag
Joerg Sonnenberger <joerg@bec.de>
parents:
45906
diff
changeset
|
210 new changesets 1ea73414a91b (1 drafts) |
44782
3d5fb6cab832
pullbundles: use unfiltered repo for head/base matching
Joerg Sonnenberger <joerg@bec.de>
parents:
42897
diff
changeset
|
211 updating to branch default |
45961
35d5d1d8bcf0
tests: simplify and extend pull-bundle test using debugbuilddag
Joerg Sonnenberger <joerg@bec.de>
parents:
45906
diff
changeset
|
212 0 files updated, 0 files merged, 0 files removed, 0 files unresolved |
44782
3d5fb6cab832
pullbundles: use unfiltered repo for head/base matching
Joerg Sonnenberger <joerg@bec.de>
parents:
42897
diff
changeset
|
213 $ killdaemons.py |