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