Show More
@@ -2,31 +2,30 b'' | |||
|
2 | 2 | |
|
3 | 3 | $ hg init repo |
|
4 | 4 | $ cd repo |
|
5 | $ echo foo > foo | |
|
6 | $ hg ci -qAm 'add foo' | |
|
7 | $ echo >> foo | |
|
8 | $ hg ci -m 'change foo' | |
|
9 | $ hg up -qC 0 | |
|
10 | $ echo bar > bar | |
|
11 | $ hg ci -qAm 'add bar' | |
|
5 | $ hg debugbuilddag '+3<3+1' | |
|
12 | 6 | |
|
13 | 7 | $ hg log |
|
14 | changeset: 2:effea6de0384 | |
|
8 | changeset: 3:6100d3090acf | |
|
15 | 9 | tag: tip |
|
16 |
parent: 0: |
|
|
17 |
user: |
|
|
18 |
date: Thu Jan 01 00:00:0 |
|
|
19 |
summary: |
|
|
10 | parent: 0:1ea73414a91b | |
|
11 | user: debugbuilddag | |
|
12 | date: Thu Jan 01 00:00:03 1970 +0000 | |
|
13 | summary: r3 | |
|
20 | 14 | |
|
21 |
changeset: |
|
|
22 |
user: |
|
|
23 |
date: Thu Jan 01 00:00:0 |
|
|
24 |
summary: |
|
|
15 | changeset: 2:01241442b3c2 | |
|
16 | user: debugbuilddag | |
|
17 | date: Thu Jan 01 00:00:02 1970 +0000 | |
|
18 | summary: r2 | |
|
25 | 19 | |
|
26 | changeset: 0:bbd179dfa0a7 | |
|
27 |
user: |
|
|
20 | changeset: 1:66f7d451a68b | |
|
21 | user: debugbuilddag | |
|
22 | date: Thu Jan 01 00:00:01 1970 +0000 | |
|
23 | summary: r1 | |
|
24 | ||
|
25 | changeset: 0:1ea73414a91b | |
|
26 | user: debugbuilddag | |
|
28 | 27 | date: Thu Jan 01 00:00:00 1970 +0000 |
|
29 |
summary: |
|
|
28 | summary: r0 | |
|
30 | 29 | |
|
31 | 30 | $ cd .. |
|
32 | 31 | |
@@ -47,10 +46,13 b' Test pullbundle functionality' | |||
|
47 | 46 | 1 changesets found |
|
48 | 47 | $ hg bundle --base 1 -r 2 .hg/2.hg |
|
49 | 48 | 1 changesets found |
|
49 | $ hg bundle --base 1 -r 3 .hg/3.hg | |
|
50 | 1 changesets found | |
|
50 | 51 | $ cat <<EOF > .hg/pullbundles.manifest |
|
51 | > 2.hg BUNDLESPEC=none-v2 heads=effea6de0384e684f44435651cb7bd70b8735bd4 bases=bbd179dfa0a71671c253b3ae0aa1513b60d199fa | |
|
52 | > 1.hg BUNDLESPEC=bzip2-v2 heads=ed1b79f46b9a29f5a6efa59cf12fcfca43bead5a bases=bbd179dfa0a71671c253b3ae0aa1513b60d199fa | |
|
53 | > 0.hg BUNDLESPEC=gzip-v2 heads=bbd179dfa0a71671c253b3ae0aa1513b60d199fa | |
|
52 | > 3.hg BUNDLESPEC=none-v2 heads=6100d3090acf50ed11ec23196cec20f5bd7323aa bases=1ea73414a91b0920940797d8fc6a11e447f8ea1e | |
|
53 | > 2.hg BUNDLESPEC=none-v2 heads=01241442b3c2bf3211e593b549c655ea65b295e3 bases=66f7d451a68b85ed82ff5fcc254daf50c74144bd | |
|
54 | > 1.hg BUNDLESPEC=bzip2-v2 heads=66f7d451a68b85ed82ff5fcc254daf50c74144bd bases=1ea73414a91b0920940797d8fc6a11e447f8ea1e | |
|
55 | > 0.hg BUNDLESPEC=gzip-v2 heads=1ea73414a91b0920940797d8fc6a11e447f8ea1e | |
|
54 | 56 | > EOF |
|
55 | 57 | $ hg --config blackbox.track=debug --debug serve -p $HGPORT2 -d --pid-file=../repo.pid -E ../error.txt |
|
56 | 58 | listening at http://*:$HGPORT2/ (bound to $LOCALIP:$HGPORT2) (glob) (?) |
@@ -60,10 +62,10 b' Test pullbundle functionality' | |||
|
60 | 62 | adding changesets |
|
61 | 63 | adding manifests |
|
62 | 64 | adding file changes |
|
63 |
added 1 changesets with |
|
|
64 |
new changesets |
|
|
65 | added 1 changesets with 0 changes to 0 files | |
|
66 | new changesets 1ea73414a91b (1 drafts) | |
|
65 | 67 | updating to branch default |
|
66 |
|
|
|
68 | 0 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
|
67 | 69 | $ cat error.txt |
|
68 | 70 | $ cd repo.pullbundle |
|
69 | 71 | $ hg pull -r 1 |
@@ -72,24 +74,24 b' Test pullbundle functionality' | |||
|
72 | 74 | adding changesets |
|
73 | 75 | adding manifests |
|
74 | 76 | adding file changes |
|
75 |
added 1 changesets with |
|
|
76 |
new changesets |
|
|
77 | added 1 changesets with 0 changes to 0 files | |
|
78 | new changesets 66f7d451a68b (1 drafts) | |
|
77 | 79 | (run 'hg update' to get a working copy) |
|
78 |
$ hg pull -r |
|
|
80 | $ hg pull -r 3 | |
|
79 | 81 | pulling from http://localhost:$HGPORT2/ |
|
80 | 82 | searching for changes |
|
81 | 83 | adding changesets |
|
82 | 84 | adding manifests |
|
83 | 85 | adding file changes |
|
84 |
added 1 changesets with |
|
|
85 |
new changesets |
|
|
86 | added 1 changesets with 0 changes to 0 files (+1 heads) | |
|
87 | new changesets 6100d3090acf (1 drafts) | |
|
86 | 88 | (run 'hg heads' to see heads, 'hg merge' to merge) |
|
87 | 89 | $ cd .. |
|
88 | 90 | $ killdaemons.py |
|
89 | 91 | $ grep 'sending pullbundle ' repo/.hg/blackbox.log |
|
90 | 92 | * sending pullbundle "0.hg" (glob) |
|
91 | 93 | * sending pullbundle "1.hg" (glob) |
|
92 |
* sending pullbundle " |
|
|
94 | * sending pullbundle "3.hg" (glob) | |
|
93 | 95 | $ rm repo/.hg/blackbox.log |
|
94 | 96 | |
|
95 | 97 | Test pullbundle functionality for incremental pulls |
@@ -110,15 +112,19 b' Test pullbundle functionality for increm' | |||
|
110 | 112 | adding changesets |
|
111 | 113 | adding manifests |
|
112 | 114 | adding file changes |
|
113 | added 3 changesets with 3 changes to 3 files (+1 heads) | |
|
114 | new changesets bbd179dfa0a7:ed1b79f46b9a (3 drafts) | |
|
115 | adding changesets | |
|
116 | adding manifests | |
|
117 | adding file changes | |
|
118 | added 4 changesets with 0 changes to 0 files (+1 heads) | |
|
119 | new changesets 1ea73414a91b:01241442b3c2 (4 drafts) | |
|
115 | 120 | updating to branch default |
|
116 |
|
|
|
121 | 0 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
|
117 | 122 | $ killdaemons.py |
|
118 | 123 | $ grep 'sending pullbundle ' repo/.hg/blackbox.log |
|
119 | 124 | * sending pullbundle "0.hg" (glob) |
|
125 | * sending pullbundle "3.hg" (glob) | |
|
126 | * sending pullbundle "1.hg" (glob) | |
|
120 | 127 | * sending pullbundle "2.hg" (glob) |
|
121 | * sending pullbundle "1.hg" (glob) | |
|
122 | 128 | $ rm repo/.hg/blackbox.log |
|
123 | 129 | |
|
124 | 130 | Test pullbundle functionality for incoming |
@@ -132,19 +138,19 b' Test pullbundle functionality for incomi' | |||
|
132 | 138 | adding changesets |
|
133 | 139 | adding manifests |
|
134 | 140 | adding file changes |
|
135 |
added 1 changesets with |
|
|
136 |
new changesets |
|
|
141 | added 1 changesets with 0 changes to 0 files | |
|
142 | new changesets 1ea73414a91b (1 drafts) | |
|
137 | 143 | updating to branch default |
|
138 |
|
|
|
144 | 0 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
|
139 | 145 | $ cd repo.pullbundle2a |
|
140 |
$ hg incoming -r |
|
|
146 | $ hg incoming -r 66f7d451a68b | |
|
141 | 147 | comparing with http://localhost:$HGPORT2/ |
|
142 | 148 | searching for changes |
|
143 |
changeset: 1: |
|
|
149 | changeset: 1:66f7d451a68b | |
|
144 | 150 | tag: tip |
|
145 |
user: |
|
|
146 |
date: Thu Jan 01 00:00:0 |
|
|
147 |
summary: |
|
|
151 | user: debugbuilddag | |
|
152 | date: Thu Jan 01 00:00:01 1970 +0000 | |
|
153 | summary: r1 | |
|
148 | 154 | |
|
149 | 155 | $ cd .. |
|
150 | 156 | $ killdaemons.py |
@@ -157,8 +163,8 b' Test recovery from misconfigured server ' | |||
|
157 | 163 | |
|
158 | 164 | $ cd repo |
|
159 | 165 | $ cat <<EOF > .hg/pullbundles.manifest |
|
160 | > 0.hg heads=ed1b79f46b9a29f5a6efa59cf12fcfca43bead5a bases=bbd179dfa0a71671c253b3ae0aa1513b60d199fa | |
|
161 | > 0.hg heads=bbd179dfa0a71671c253b3ae0aa1513b60d199fa | |
|
166 | > 0.hg heads=66f7d451a68b85ed82ff5fcc254daf50c74144bd bases=1ea73414a91b0920940797d8fc6a11e447f8ea1e | |
|
167 | > 0.hg heads=1ea73414a91b0920940797d8fc6a11e447f8ea1e | |
|
162 | 168 | > EOF |
|
163 | 169 | $ hg --config blackbox.track=debug --debug serve -p $HGPORT2 -d --pid-file=../repo.pid |
|
164 | 170 | listening at http://*:$HGPORT2/ (bound to $LOCALIP:$HGPORT2) (glob) (?) |
@@ -168,10 +174,10 b' Test recovery from misconfigured server ' | |||
|
168 | 174 | adding changesets |
|
169 | 175 | adding manifests |
|
170 | 176 | adding file changes |
|
171 |
added 1 changesets with |
|
|
172 |
new changesets |
|
|
177 | added 1 changesets with 0 changes to 0 files | |
|
178 | new changesets 1ea73414a91b (1 drafts) | |
|
173 | 179 | updating to branch default |
|
174 |
|
|
|
180 | 0 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
|
175 | 181 | $ cd repo.pullbundle3 |
|
176 | 182 | $ hg pull -r 1 |
|
177 | 183 | pulling from http://localhost:$HGPORT2/ |
@@ -179,8 +185,7 b' Test recovery from misconfigured server ' | |||
|
179 | 185 | adding changesets |
|
180 | 186 | adding manifests |
|
181 | 187 | adding file changes |
|
182 | added 0 changesets with 0 changes to 1 files | |
|
183 | abort: 00changelog.i@ed1b79f46b9a: no node | |
|
188 | abort: 00changelog.i@66f7d451a68b: no node | |
|
184 | 189 | [255] |
|
185 | 190 | $ cd .. |
|
186 | 191 | $ killdaemons.py |
@@ -193,7 +198,6 b' Test processing when nodes used in the p' | |||
|
193 | 198 | |
|
194 | 199 | $ hg --repo repo debugobsolete ed1b79f46b9a29f5a6efa59cf12fcfca43bead5a |
|
195 | 200 | 1 new obsolescence markers |
|
196 | obsoleted 1 changesets | |
|
197 | 201 | $ hg serve --repo repo --config server.view=visible -p $HGPORT -d --pid-file=hg.pid -E errors.log |
|
198 | 202 | $ cat hg.pid >> $DAEMON_PIDS |
|
199 | 203 | $ hg clone http://localhost:$HGPORT repo-obs |
@@ -204,8 +208,8 b' Test processing when nodes used in the p' | |||
|
204 | 208 | adding changesets |
|
205 | 209 | adding manifests |
|
206 | 210 | adding file changes |
|
207 |
added |
|
|
208 | new changesets bbd179dfa0a7:effea6de0384 | |
|
211 | added 1 changesets with 0 changes to 0 files | |
|
212 | new changesets 1ea73414a91b (1 drafts) | |
|
209 | 213 | updating to branch default |
|
210 |
|
|
|
214 | 0 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
|
211 | 215 | $ killdaemons.py |
General Comments 0
You need to be logged in to leave comments.
Login now