##// END OF EJS Templates
test-bookmarks-pushpull: add failing test of issue4700...
Valentin Gatien-Baron -
r41055:c236a491 default
parent child Browse files
Show More
@@ -1,1277 +1,1323 b''
1 #testcases b2-pushkey b2-binary
1 #testcases b2-pushkey b2-binary
2
2
3 #if b2-pushkey
3 #if b2-pushkey
4 $ cat << EOF >> $HGRCPATH
4 $ cat << EOF >> $HGRCPATH
5 > [devel]
5 > [devel]
6 > legacy.exchange=bookmarks
6 > legacy.exchange=bookmarks
7 > EOF
7 > EOF
8 #endif
8 #endif
9
9
10 #require serve
10 #require serve
11
11
12 $ cat << EOF >> $HGRCPATH
12 $ cat << EOF >> $HGRCPATH
13 > [ui]
13 > [ui]
14 > logtemplate={rev}:{node|short} {desc|firstline}
14 > logtemplate={rev}:{node|short} {desc|firstline}
15 > [phases]
15 > [phases]
16 > publish=False
16 > publish=False
17 > [experimental]
17 > [experimental]
18 > evolution.createmarkers=True
18 > evolution.createmarkers=True
19 > evolution.exchange=True
19 > evolution.exchange=True
20 > EOF
20 > EOF
21
21
22 $ cat > $TESTTMP/hook.sh <<'EOF'
22 $ cat > $TESTTMP/hook.sh <<'EOF'
23 > echo "test-hook-bookmark: $HG_BOOKMARK: $HG_OLDNODE -> $HG_NODE"
23 > echo "test-hook-bookmark: $HG_BOOKMARK: $HG_OLDNODE -> $HG_NODE"
24 > EOF
24 > EOF
25 $ TESTHOOK="hooks.txnclose-bookmark.test=sh $TESTTMP/hook.sh"
25 $ TESTHOOK="hooks.txnclose-bookmark.test=sh $TESTTMP/hook.sh"
26
26
27 initialize
27 initialize
28
28
29 $ hg init a
29 $ hg init a
30 $ cd a
30 $ cd a
31 $ echo 'test' > test
31 $ echo 'test' > test
32 $ hg commit -Am'test'
32 $ hg commit -Am'test'
33 adding test
33 adding test
34
34
35 set bookmarks
35 set bookmarks
36
36
37 $ hg bookmark X
37 $ hg bookmark X
38 $ hg bookmark Y
38 $ hg bookmark Y
39 $ hg bookmark Z
39 $ hg bookmark Z
40
40
41 import bookmark by name
41 import bookmark by name
42
42
43 $ hg init ../b
43 $ hg init ../b
44 $ cd ../b
44 $ cd ../b
45 $ hg book Y
45 $ hg book Y
46 $ hg book
46 $ hg book
47 * Y -1:000000000000
47 * Y -1:000000000000
48 $ hg pull ../a --config "$TESTHOOK"
48 $ hg pull ../a --config "$TESTHOOK"
49 pulling from ../a
49 pulling from ../a
50 requesting all changes
50 requesting all changes
51 adding changesets
51 adding changesets
52 adding manifests
52 adding manifests
53 adding file changes
53 adding file changes
54 added 1 changesets with 1 changes to 1 files
54 added 1 changesets with 1 changes to 1 files
55 adding remote bookmark X
55 adding remote bookmark X
56 updating bookmark Y
56 updating bookmark Y
57 adding remote bookmark Z
57 adding remote bookmark Z
58 new changesets 4e3505fd9583 (1 drafts)
58 new changesets 4e3505fd9583 (1 drafts)
59 test-hook-bookmark: X: -> 4e3505fd95835d721066b76e75dbb8cc554d7f77
59 test-hook-bookmark: X: -> 4e3505fd95835d721066b76e75dbb8cc554d7f77
60 test-hook-bookmark: Y: 0000000000000000000000000000000000000000 -> 4e3505fd95835d721066b76e75dbb8cc554d7f77
60 test-hook-bookmark: Y: 0000000000000000000000000000000000000000 -> 4e3505fd95835d721066b76e75dbb8cc554d7f77
61 test-hook-bookmark: Z: -> 4e3505fd95835d721066b76e75dbb8cc554d7f77
61 test-hook-bookmark: Z: -> 4e3505fd95835d721066b76e75dbb8cc554d7f77
62 (run 'hg update' to get a working copy)
62 (run 'hg update' to get a working copy)
63 $ hg bookmarks
63 $ hg bookmarks
64 X 0:4e3505fd9583
64 X 0:4e3505fd9583
65 * Y 0:4e3505fd9583
65 * Y 0:4e3505fd9583
66 Z 0:4e3505fd9583
66 Z 0:4e3505fd9583
67 $ hg debugpushkey ../a namespaces
67 $ hg debugpushkey ../a namespaces
68 bookmarks
68 bookmarks
69 namespaces
69 namespaces
70 obsolete
70 obsolete
71 phases
71 phases
72 $ hg debugpushkey ../a bookmarks
72 $ hg debugpushkey ../a bookmarks
73 X 4e3505fd95835d721066b76e75dbb8cc554d7f77
73 X 4e3505fd95835d721066b76e75dbb8cc554d7f77
74 Y 4e3505fd95835d721066b76e75dbb8cc554d7f77
74 Y 4e3505fd95835d721066b76e75dbb8cc554d7f77
75 Z 4e3505fd95835d721066b76e75dbb8cc554d7f77
75 Z 4e3505fd95835d721066b76e75dbb8cc554d7f77
76
76
77 delete the bookmark to re-pull it
77 delete the bookmark to re-pull it
78
78
79 $ hg book -d X
79 $ hg book -d X
80 $ hg pull -B X ../a
80 $ hg pull -B X ../a
81 pulling from ../a
81 pulling from ../a
82 no changes found
82 no changes found
83 adding remote bookmark X
83 adding remote bookmark X
84
84
85 finally no-op pull
85 finally no-op pull
86
86
87 $ hg pull -B X ../a
87 $ hg pull -B X ../a
88 pulling from ../a
88 pulling from ../a
89 no changes found
89 no changes found
90 $ hg bookmark
90 $ hg bookmark
91 X 0:4e3505fd9583
91 X 0:4e3505fd9583
92 * Y 0:4e3505fd9583
92 * Y 0:4e3505fd9583
93 Z 0:4e3505fd9583
93 Z 0:4e3505fd9583
94
94
95 export bookmark by name
95 export bookmark by name
96
96
97 $ hg bookmark W
97 $ hg bookmark W
98 $ hg bookmark foo
98 $ hg bookmark foo
99 $ hg bookmark foobar
99 $ hg bookmark foobar
100 $ hg push -B W ../a
100 $ hg push -B W ../a
101 pushing to ../a
101 pushing to ../a
102 searching for changes
102 searching for changes
103 no changes found
103 no changes found
104 exporting bookmark W
104 exporting bookmark W
105 [1]
105 [1]
106 $ hg -R ../a bookmarks
106 $ hg -R ../a bookmarks
107 W -1:000000000000
107 W -1:000000000000
108 X 0:4e3505fd9583
108 X 0:4e3505fd9583
109 Y 0:4e3505fd9583
109 Y 0:4e3505fd9583
110 * Z 0:4e3505fd9583
110 * Z 0:4e3505fd9583
111
111
112 delete a remote bookmark
112 delete a remote bookmark
113
113
114 $ hg book -d W
114 $ hg book -d W
115
115
116 #if b2-pushkey
116 #if b2-pushkey
117
117
118 $ hg push -B W ../a --config "$TESTHOOK" --debug --config devel.bundle2.debug=yes
118 $ hg push -B W ../a --config "$TESTHOOK" --debug --config devel.bundle2.debug=yes
119 pushing to ../a
119 pushing to ../a
120 query 1; heads
120 query 1; heads
121 searching for changes
121 searching for changes
122 all remote heads known locally
122 all remote heads known locally
123 listing keys for "phases"
123 listing keys for "phases"
124 checking for updated bookmarks
124 checking for updated bookmarks
125 listing keys for "bookmarks"
125 listing keys for "bookmarks"
126 no changes found
126 no changes found
127 bundle2-output-bundle: "HG20", 4 parts total
127 bundle2-output-bundle: "HG20", 4 parts total
128 bundle2-output: start emission of HG20 stream
128 bundle2-output: start emission of HG20 stream
129 bundle2-output: bundle parameter:
129 bundle2-output: bundle parameter:
130 bundle2-output: start of parts
130 bundle2-output: start of parts
131 bundle2-output: bundle part: "replycaps"
131 bundle2-output: bundle part: "replycaps"
132 bundle2-output-part: "replycaps" 222 bytes payload
132 bundle2-output-part: "replycaps" 222 bytes payload
133 bundle2-output: part 0: "REPLYCAPS"
133 bundle2-output: part 0: "REPLYCAPS"
134 bundle2-output: header chunk size: 16
134 bundle2-output: header chunk size: 16
135 bundle2-output: payload chunk size: 222
135 bundle2-output: payload chunk size: 222
136 bundle2-output: closing payload chunk
136 bundle2-output: closing payload chunk
137 bundle2-output: bundle part: "check:bookmarks"
137 bundle2-output: bundle part: "check:bookmarks"
138 bundle2-output-part: "check:bookmarks" 23 bytes payload
138 bundle2-output-part: "check:bookmarks" 23 bytes payload
139 bundle2-output: part 1: "CHECK:BOOKMARKS"
139 bundle2-output: part 1: "CHECK:BOOKMARKS"
140 bundle2-output: header chunk size: 22
140 bundle2-output: header chunk size: 22
141 bundle2-output: payload chunk size: 23
141 bundle2-output: payload chunk size: 23
142 bundle2-output: closing payload chunk
142 bundle2-output: closing payload chunk
143 bundle2-output: bundle part: "check:phases"
143 bundle2-output: bundle part: "check:phases"
144 bundle2-output-part: "check:phases" 24 bytes payload
144 bundle2-output-part: "check:phases" 24 bytes payload
145 bundle2-output: part 2: "CHECK:PHASES"
145 bundle2-output: part 2: "CHECK:PHASES"
146 bundle2-output: header chunk size: 19
146 bundle2-output: header chunk size: 19
147 bundle2-output: payload chunk size: 24
147 bundle2-output: payload chunk size: 24
148 bundle2-output: closing payload chunk
148 bundle2-output: closing payload chunk
149 bundle2-output: bundle part: "pushkey"
149 bundle2-output: bundle part: "pushkey"
150 bundle2-output-part: "pushkey" (params: 4 mandatory) empty payload
150 bundle2-output-part: "pushkey" (params: 4 mandatory) empty payload
151 bundle2-output: part 3: "PUSHKEY"
151 bundle2-output: part 3: "PUSHKEY"
152 bundle2-output: header chunk size: 90
152 bundle2-output: header chunk size: 90
153 bundle2-output: closing payload chunk
153 bundle2-output: closing payload chunk
154 bundle2-output: end of bundle
154 bundle2-output: end of bundle
155 bundle2-input: start processing of HG20 stream
155 bundle2-input: start processing of HG20 stream
156 bundle2-input: reading bundle2 stream parameters
156 bundle2-input: reading bundle2 stream parameters
157 bundle2-input-bundle: with-transaction
157 bundle2-input-bundle: with-transaction
158 bundle2-input: start extraction of bundle2 parts
158 bundle2-input: start extraction of bundle2 parts
159 bundle2-input: part header size: 16
159 bundle2-input: part header size: 16
160 bundle2-input: part type: "REPLYCAPS"
160 bundle2-input: part type: "REPLYCAPS"
161 bundle2-input: part id: "0"
161 bundle2-input: part id: "0"
162 bundle2-input: part parameters: 0
162 bundle2-input: part parameters: 0
163 bundle2-input: found a handler for part replycaps
163 bundle2-input: found a handler for part replycaps
164 bundle2-input-part: "replycaps" supported
164 bundle2-input-part: "replycaps" supported
165 bundle2-input: payload chunk size: 222
165 bundle2-input: payload chunk size: 222
166 bundle2-input: payload chunk size: 0
166 bundle2-input: payload chunk size: 0
167 bundle2-input-part: total payload size 222
167 bundle2-input-part: total payload size 222
168 bundle2-input: part header size: 22
168 bundle2-input: part header size: 22
169 bundle2-input: part type: "CHECK:BOOKMARKS"
169 bundle2-input: part type: "CHECK:BOOKMARKS"
170 bundle2-input: part id: "1"
170 bundle2-input: part id: "1"
171 bundle2-input: part parameters: 0
171 bundle2-input: part parameters: 0
172 bundle2-input: found a handler for part check:bookmarks
172 bundle2-input: found a handler for part check:bookmarks
173 bundle2-input-part: "check:bookmarks" supported
173 bundle2-input-part: "check:bookmarks" supported
174 bundle2-input: payload chunk size: 23
174 bundle2-input: payload chunk size: 23
175 bundle2-input: payload chunk size: 0
175 bundle2-input: payload chunk size: 0
176 bundle2-input-part: total payload size 23
176 bundle2-input-part: total payload size 23
177 bundle2-input: part header size: 19
177 bundle2-input: part header size: 19
178 bundle2-input: part type: "CHECK:PHASES"
178 bundle2-input: part type: "CHECK:PHASES"
179 bundle2-input: part id: "2"
179 bundle2-input: part id: "2"
180 bundle2-input: part parameters: 0
180 bundle2-input: part parameters: 0
181 bundle2-input: found a handler for part check:phases
181 bundle2-input: found a handler for part check:phases
182 bundle2-input-part: "check:phases" supported
182 bundle2-input-part: "check:phases" supported
183 bundle2-input: payload chunk size: 24
183 bundle2-input: payload chunk size: 24
184 bundle2-input: payload chunk size: 0
184 bundle2-input: payload chunk size: 0
185 bundle2-input-part: total payload size 24
185 bundle2-input-part: total payload size 24
186 bundle2-input: part header size: 90
186 bundle2-input: part header size: 90
187 bundle2-input: part type: "PUSHKEY"
187 bundle2-input: part type: "PUSHKEY"
188 bundle2-input: part id: "3"
188 bundle2-input: part id: "3"
189 bundle2-input: part parameters: 4
189 bundle2-input: part parameters: 4
190 bundle2-input: found a handler for part pushkey
190 bundle2-input: found a handler for part pushkey
191 bundle2-input-part: "pushkey" (params: 4 mandatory) supported
191 bundle2-input-part: "pushkey" (params: 4 mandatory) supported
192 pushing key for "bookmarks:W"
192 pushing key for "bookmarks:W"
193 bundle2-input: payload chunk size: 0
193 bundle2-input: payload chunk size: 0
194 bundle2-input: part header size: 0
194 bundle2-input: part header size: 0
195 bundle2-input: end of bundle2 stream
195 bundle2-input: end of bundle2 stream
196 bundle2-input-bundle: 3 parts total
196 bundle2-input-bundle: 3 parts total
197 running hook txnclose-bookmark.test: sh $TESTTMP/hook.sh
197 running hook txnclose-bookmark.test: sh $TESTTMP/hook.sh
198 test-hook-bookmark: W: 0000000000000000000000000000000000000000 ->
198 test-hook-bookmark: W: 0000000000000000000000000000000000000000 ->
199 bundle2-output-bundle: "HG20", 1 parts total
199 bundle2-output-bundle: "HG20", 1 parts total
200 bundle2-output: start emission of HG20 stream
200 bundle2-output: start emission of HG20 stream
201 bundle2-output: bundle parameter:
201 bundle2-output: bundle parameter:
202 bundle2-output: start of parts
202 bundle2-output: start of parts
203 bundle2-output: bundle part: "reply:pushkey"
203 bundle2-output: bundle part: "reply:pushkey"
204 bundle2-output-part: "reply:pushkey" (params: 0 advisory) empty payload
204 bundle2-output-part: "reply:pushkey" (params: 0 advisory) empty payload
205 bundle2-output: part 0: "REPLY:PUSHKEY"
205 bundle2-output: part 0: "REPLY:PUSHKEY"
206 bundle2-output: header chunk size: 43
206 bundle2-output: header chunk size: 43
207 bundle2-output: closing payload chunk
207 bundle2-output: closing payload chunk
208 bundle2-output: end of bundle
208 bundle2-output: end of bundle
209 bundle2-input: start processing of HG20 stream
209 bundle2-input: start processing of HG20 stream
210 bundle2-input: reading bundle2 stream parameters
210 bundle2-input: reading bundle2 stream parameters
211 bundle2-input-bundle: no-transaction
211 bundle2-input-bundle: no-transaction
212 bundle2-input: start extraction of bundle2 parts
212 bundle2-input: start extraction of bundle2 parts
213 bundle2-input: part header size: 43
213 bundle2-input: part header size: 43
214 bundle2-input: part type: "REPLY:PUSHKEY"
214 bundle2-input: part type: "REPLY:PUSHKEY"
215 bundle2-input: part id: "0"
215 bundle2-input: part id: "0"
216 bundle2-input: part parameters: 2
216 bundle2-input: part parameters: 2
217 bundle2-input: found a handler for part reply:pushkey
217 bundle2-input: found a handler for part reply:pushkey
218 bundle2-input-part: "reply:pushkey" (params: 0 advisory) supported
218 bundle2-input-part: "reply:pushkey" (params: 0 advisory) supported
219 bundle2-input: payload chunk size: 0
219 bundle2-input: payload chunk size: 0
220 bundle2-input: part header size: 0
220 bundle2-input: part header size: 0
221 bundle2-input: end of bundle2 stream
221 bundle2-input: end of bundle2 stream
222 bundle2-input-bundle: 0 parts total
222 bundle2-input-bundle: 0 parts total
223 deleting remote bookmark W
223 deleting remote bookmark W
224 listing keys for "phases"
224 listing keys for "phases"
225 [1]
225 [1]
226
226
227 #endif
227 #endif
228 #if b2-binary
228 #if b2-binary
229
229
230 $ hg push -B W ../a --config "$TESTHOOK" --debug --config devel.bundle2.debug=yes
230 $ hg push -B W ../a --config "$TESTHOOK" --debug --config devel.bundle2.debug=yes
231 pushing to ../a
231 pushing to ../a
232 query 1; heads
232 query 1; heads
233 searching for changes
233 searching for changes
234 all remote heads known locally
234 all remote heads known locally
235 listing keys for "phases"
235 listing keys for "phases"
236 checking for updated bookmarks
236 checking for updated bookmarks
237 listing keys for "bookmarks"
237 listing keys for "bookmarks"
238 no changes found
238 no changes found
239 bundle2-output-bundle: "HG20", 4 parts total
239 bundle2-output-bundle: "HG20", 4 parts total
240 bundle2-output: start emission of HG20 stream
240 bundle2-output: start emission of HG20 stream
241 bundle2-output: bundle parameter:
241 bundle2-output: bundle parameter:
242 bundle2-output: start of parts
242 bundle2-output: start of parts
243 bundle2-output: bundle part: "replycaps"
243 bundle2-output: bundle part: "replycaps"
244 bundle2-output-part: "replycaps" 222 bytes payload
244 bundle2-output-part: "replycaps" 222 bytes payload
245 bundle2-output: part 0: "REPLYCAPS"
245 bundle2-output: part 0: "REPLYCAPS"
246 bundle2-output: header chunk size: 16
246 bundle2-output: header chunk size: 16
247 bundle2-output: payload chunk size: 222
247 bundle2-output: payload chunk size: 222
248 bundle2-output: closing payload chunk
248 bundle2-output: closing payload chunk
249 bundle2-output: bundle part: "check:bookmarks"
249 bundle2-output: bundle part: "check:bookmarks"
250 bundle2-output-part: "check:bookmarks" 23 bytes payload
250 bundle2-output-part: "check:bookmarks" 23 bytes payload
251 bundle2-output: part 1: "CHECK:BOOKMARKS"
251 bundle2-output: part 1: "CHECK:BOOKMARKS"
252 bundle2-output: header chunk size: 22
252 bundle2-output: header chunk size: 22
253 bundle2-output: payload chunk size: 23
253 bundle2-output: payload chunk size: 23
254 bundle2-output: closing payload chunk
254 bundle2-output: closing payload chunk
255 bundle2-output: bundle part: "check:phases"
255 bundle2-output: bundle part: "check:phases"
256 bundle2-output-part: "check:phases" 24 bytes payload
256 bundle2-output-part: "check:phases" 24 bytes payload
257 bundle2-output: part 2: "CHECK:PHASES"
257 bundle2-output: part 2: "CHECK:PHASES"
258 bundle2-output: header chunk size: 19
258 bundle2-output: header chunk size: 19
259 bundle2-output: payload chunk size: 24
259 bundle2-output: payload chunk size: 24
260 bundle2-output: closing payload chunk
260 bundle2-output: closing payload chunk
261 bundle2-output: bundle part: "bookmarks"
261 bundle2-output: bundle part: "bookmarks"
262 bundle2-output-part: "bookmarks" 23 bytes payload
262 bundle2-output-part: "bookmarks" 23 bytes payload
263 bundle2-output: part 3: "BOOKMARKS"
263 bundle2-output: part 3: "BOOKMARKS"
264 bundle2-output: header chunk size: 16
264 bundle2-output: header chunk size: 16
265 bundle2-output: payload chunk size: 23
265 bundle2-output: payload chunk size: 23
266 bundle2-output: closing payload chunk
266 bundle2-output: closing payload chunk
267 bundle2-output: end of bundle
267 bundle2-output: end of bundle
268 bundle2-input: start processing of HG20 stream
268 bundle2-input: start processing of HG20 stream
269 bundle2-input: reading bundle2 stream parameters
269 bundle2-input: reading bundle2 stream parameters
270 bundle2-input-bundle: with-transaction
270 bundle2-input-bundle: with-transaction
271 bundle2-input: start extraction of bundle2 parts
271 bundle2-input: start extraction of bundle2 parts
272 bundle2-input: part header size: 16
272 bundle2-input: part header size: 16
273 bundle2-input: part type: "REPLYCAPS"
273 bundle2-input: part type: "REPLYCAPS"
274 bundle2-input: part id: "0"
274 bundle2-input: part id: "0"
275 bundle2-input: part parameters: 0
275 bundle2-input: part parameters: 0
276 bundle2-input: found a handler for part replycaps
276 bundle2-input: found a handler for part replycaps
277 bundle2-input-part: "replycaps" supported
277 bundle2-input-part: "replycaps" supported
278 bundle2-input: payload chunk size: 222
278 bundle2-input: payload chunk size: 222
279 bundle2-input: payload chunk size: 0
279 bundle2-input: payload chunk size: 0
280 bundle2-input-part: total payload size 222
280 bundle2-input-part: total payload size 222
281 bundle2-input: part header size: 22
281 bundle2-input: part header size: 22
282 bundle2-input: part type: "CHECK:BOOKMARKS"
282 bundle2-input: part type: "CHECK:BOOKMARKS"
283 bundle2-input: part id: "1"
283 bundle2-input: part id: "1"
284 bundle2-input: part parameters: 0
284 bundle2-input: part parameters: 0
285 bundle2-input: found a handler for part check:bookmarks
285 bundle2-input: found a handler for part check:bookmarks
286 bundle2-input-part: "check:bookmarks" supported
286 bundle2-input-part: "check:bookmarks" supported
287 bundle2-input: payload chunk size: 23
287 bundle2-input: payload chunk size: 23
288 bundle2-input: payload chunk size: 0
288 bundle2-input: payload chunk size: 0
289 bundle2-input-part: total payload size 23
289 bundle2-input-part: total payload size 23
290 bundle2-input: part header size: 19
290 bundle2-input: part header size: 19
291 bundle2-input: part type: "CHECK:PHASES"
291 bundle2-input: part type: "CHECK:PHASES"
292 bundle2-input: part id: "2"
292 bundle2-input: part id: "2"
293 bundle2-input: part parameters: 0
293 bundle2-input: part parameters: 0
294 bundle2-input: found a handler for part check:phases
294 bundle2-input: found a handler for part check:phases
295 bundle2-input-part: "check:phases" supported
295 bundle2-input-part: "check:phases" supported
296 bundle2-input: payload chunk size: 24
296 bundle2-input: payload chunk size: 24
297 bundle2-input: payload chunk size: 0
297 bundle2-input: payload chunk size: 0
298 bundle2-input-part: total payload size 24
298 bundle2-input-part: total payload size 24
299 bundle2-input: part header size: 16
299 bundle2-input: part header size: 16
300 bundle2-input: part type: "BOOKMARKS"
300 bundle2-input: part type: "BOOKMARKS"
301 bundle2-input: part id: "3"
301 bundle2-input: part id: "3"
302 bundle2-input: part parameters: 0
302 bundle2-input: part parameters: 0
303 bundle2-input: found a handler for part bookmarks
303 bundle2-input: found a handler for part bookmarks
304 bundle2-input-part: "bookmarks" supported
304 bundle2-input-part: "bookmarks" supported
305 bundle2-input: payload chunk size: 23
305 bundle2-input: payload chunk size: 23
306 bundle2-input: payload chunk size: 0
306 bundle2-input: payload chunk size: 0
307 bundle2-input-part: total payload size 23
307 bundle2-input-part: total payload size 23
308 bundle2-input: part header size: 0
308 bundle2-input: part header size: 0
309 bundle2-input: end of bundle2 stream
309 bundle2-input: end of bundle2 stream
310 bundle2-input-bundle: 3 parts total
310 bundle2-input-bundle: 3 parts total
311 running hook txnclose-bookmark.test: sh $TESTTMP/hook.sh
311 running hook txnclose-bookmark.test: sh $TESTTMP/hook.sh
312 test-hook-bookmark: W: 0000000000000000000000000000000000000000 ->
312 test-hook-bookmark: W: 0000000000000000000000000000000000000000 ->
313 bundle2-output-bundle: "HG20", 0 parts total
313 bundle2-output-bundle: "HG20", 0 parts total
314 bundle2-output: start emission of HG20 stream
314 bundle2-output: start emission of HG20 stream
315 bundle2-output: bundle parameter:
315 bundle2-output: bundle parameter:
316 bundle2-output: start of parts
316 bundle2-output: start of parts
317 bundle2-output: end of bundle
317 bundle2-output: end of bundle
318 bundle2-input: start processing of HG20 stream
318 bundle2-input: start processing of HG20 stream
319 bundle2-input: reading bundle2 stream parameters
319 bundle2-input: reading bundle2 stream parameters
320 bundle2-input-bundle: no-transaction
320 bundle2-input-bundle: no-transaction
321 bundle2-input: start extraction of bundle2 parts
321 bundle2-input: start extraction of bundle2 parts
322 bundle2-input: part header size: 0
322 bundle2-input: part header size: 0
323 bundle2-input: end of bundle2 stream
323 bundle2-input: end of bundle2 stream
324 bundle2-input-bundle: 0 parts total
324 bundle2-input-bundle: 0 parts total
325 deleting remote bookmark W
325 deleting remote bookmark W
326 listing keys for "phases"
326 listing keys for "phases"
327 [1]
327 [1]
328
328
329 #endif
329 #endif
330
330
331 export the active bookmark
331 export the active bookmark
332
332
333 $ hg bookmark V
333 $ hg bookmark V
334 $ hg push -B . ../a
334 $ hg push -B . ../a
335 pushing to ../a
335 pushing to ../a
336 searching for changes
336 searching for changes
337 no changes found
337 no changes found
338 exporting bookmark V
338 exporting bookmark V
339 [1]
339 [1]
340
340
341 exporting the active bookmark with 'push -B .'
341 exporting the active bookmark with 'push -B .'
342 demand that one of the bookmarks is activated
342 demand that one of the bookmarks is activated
343
343
344 $ hg update -r default
344 $ hg update -r default
345 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
345 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
346 (leaving bookmark V)
346 (leaving bookmark V)
347 $ hg push -B . ../a
347 $ hg push -B . ../a
348 abort: no active bookmark!
348 abort: no active bookmark!
349 [255]
349 [255]
350 $ hg update -r V
350 $ hg update -r V
351 0 files updated, 0 files merged, 1 files removed, 0 files unresolved
351 0 files updated, 0 files merged, 1 files removed, 0 files unresolved
352 (activating bookmark V)
352 (activating bookmark V)
353
353
354 delete the bookmark
354 delete the bookmark
355
355
356 $ hg book -d V
356 $ hg book -d V
357 $ hg push -B V ../a
357 $ hg push -B V ../a
358 pushing to ../a
358 pushing to ../a
359 searching for changes
359 searching for changes
360 no changes found
360 no changes found
361 deleting remote bookmark V
361 deleting remote bookmark V
362 [1]
362 [1]
363 $ hg up foobar
363 $ hg up foobar
364 0 files updated, 0 files merged, 0 files removed, 0 files unresolved
364 0 files updated, 0 files merged, 0 files removed, 0 files unresolved
365 (activating bookmark foobar)
365 (activating bookmark foobar)
366
366
367 push/pull name that doesn't exist
367 push/pull name that doesn't exist
368
368
369 $ hg push -B badname ../a
369 $ hg push -B badname ../a
370 pushing to ../a
370 pushing to ../a
371 searching for changes
371 searching for changes
372 bookmark badname does not exist on the local or remote repository!
372 bookmark badname does not exist on the local or remote repository!
373 no changes found
373 no changes found
374 [2]
374 [2]
375 $ hg pull -B anotherbadname ../a
375 $ hg pull -B anotherbadname ../a
376 pulling from ../a
376 pulling from ../a
377 abort: remote bookmark anotherbadname not found!
377 abort: remote bookmark anotherbadname not found!
378 [255]
378 [255]
379
379
380 divergent bookmarks
380 divergent bookmarks
381
381
382 $ cd ../a
382 $ cd ../a
383 $ echo c1 > f1
383 $ echo c1 > f1
384 $ hg ci -Am1
384 $ hg ci -Am1
385 adding f1
385 adding f1
386 $ hg book -f @
386 $ hg book -f @
387 $ hg book -f X
387 $ hg book -f X
388 $ hg book
388 $ hg book
389 @ 1:0d2164f0ce0d
389 @ 1:0d2164f0ce0d
390 * X 1:0d2164f0ce0d
390 * X 1:0d2164f0ce0d
391 Y 0:4e3505fd9583
391 Y 0:4e3505fd9583
392 Z 1:0d2164f0ce0d
392 Z 1:0d2164f0ce0d
393
393
394 $ cd ../b
394 $ cd ../b
395 $ hg up
395 $ hg up
396 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
396 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
397 updating bookmark foobar
397 updating bookmark foobar
398 $ echo c2 > f2
398 $ echo c2 > f2
399 $ hg ci -Am2
399 $ hg ci -Am2
400 adding f2
400 adding f2
401 $ hg book -if @
401 $ hg book -if @
402 $ hg book -if X
402 $ hg book -if X
403 $ hg book
403 $ hg book
404 @ 1:9b140be10808
404 @ 1:9b140be10808
405 X 1:9b140be10808
405 X 1:9b140be10808
406 Y 0:4e3505fd9583
406 Y 0:4e3505fd9583
407 Z 0:4e3505fd9583
407 Z 0:4e3505fd9583
408 foo -1:000000000000
408 foo -1:000000000000
409 * foobar 1:9b140be10808
409 * foobar 1:9b140be10808
410
410
411 $ hg pull --config paths.foo=../a foo --config "$TESTHOOK"
411 $ hg pull --config paths.foo=../a foo --config "$TESTHOOK"
412 pulling from $TESTTMP/a
412 pulling from $TESTTMP/a
413 searching for changes
413 searching for changes
414 adding changesets
414 adding changesets
415 adding manifests
415 adding manifests
416 adding file changes
416 adding file changes
417 added 1 changesets with 1 changes to 1 files (+1 heads)
417 added 1 changesets with 1 changes to 1 files (+1 heads)
418 divergent bookmark @ stored as @foo
418 divergent bookmark @ stored as @foo
419 divergent bookmark X stored as X@foo
419 divergent bookmark X stored as X@foo
420 updating bookmark Z
420 updating bookmark Z
421 new changesets 0d2164f0ce0d (1 drafts)
421 new changesets 0d2164f0ce0d (1 drafts)
422 test-hook-bookmark: @foo: -> 0d2164f0ce0d8f1d6f94351eba04b794909be66c
422 test-hook-bookmark: @foo: -> 0d2164f0ce0d8f1d6f94351eba04b794909be66c
423 test-hook-bookmark: X@foo: -> 0d2164f0ce0d8f1d6f94351eba04b794909be66c
423 test-hook-bookmark: X@foo: -> 0d2164f0ce0d8f1d6f94351eba04b794909be66c
424 test-hook-bookmark: Z: 4e3505fd95835d721066b76e75dbb8cc554d7f77 -> 0d2164f0ce0d8f1d6f94351eba04b794909be66c
424 test-hook-bookmark: Z: 4e3505fd95835d721066b76e75dbb8cc554d7f77 -> 0d2164f0ce0d8f1d6f94351eba04b794909be66c
425 (run 'hg heads' to see heads, 'hg merge' to merge)
425 (run 'hg heads' to see heads, 'hg merge' to merge)
426 $ hg book
426 $ hg book
427 @ 1:9b140be10808
427 @ 1:9b140be10808
428 @foo 2:0d2164f0ce0d
428 @foo 2:0d2164f0ce0d
429 X 1:9b140be10808
429 X 1:9b140be10808
430 X@foo 2:0d2164f0ce0d
430 X@foo 2:0d2164f0ce0d
431 Y 0:4e3505fd9583
431 Y 0:4e3505fd9583
432 Z 2:0d2164f0ce0d
432 Z 2:0d2164f0ce0d
433 foo -1:000000000000
433 foo -1:000000000000
434 * foobar 1:9b140be10808
434 * foobar 1:9b140be10808
435
435
436 (test that too many divergence of bookmark)
436 (test that too many divergence of bookmark)
437
437
438 $ "$PYTHON" $TESTDIR/seq.py 1 100 | while read i; do hg bookmarks -r 000000000000 "X@${i}"; done
438 $ "$PYTHON" $TESTDIR/seq.py 1 100 | while read i; do hg bookmarks -r 000000000000 "X@${i}"; done
439 $ hg pull ../a
439 $ hg pull ../a
440 pulling from ../a
440 pulling from ../a
441 searching for changes
441 searching for changes
442 no changes found
442 no changes found
443 warning: failed to assign numbered name to divergent bookmark X
443 warning: failed to assign numbered name to divergent bookmark X
444 divergent bookmark @ stored as @1
444 divergent bookmark @ stored as @1
445 $ hg bookmarks | grep '^ X' | grep -v ':000000000000'
445 $ hg bookmarks | grep '^ X' | grep -v ':000000000000'
446 X 1:9b140be10808
446 X 1:9b140be10808
447 X@foo 2:0d2164f0ce0d
447 X@foo 2:0d2164f0ce0d
448
448
449 (test that remotely diverged bookmarks are reused if they aren't changed)
449 (test that remotely diverged bookmarks are reused if they aren't changed)
450
450
451 $ hg bookmarks | grep '^ @'
451 $ hg bookmarks | grep '^ @'
452 @ 1:9b140be10808
452 @ 1:9b140be10808
453 @1 2:0d2164f0ce0d
453 @1 2:0d2164f0ce0d
454 @foo 2:0d2164f0ce0d
454 @foo 2:0d2164f0ce0d
455 $ hg pull ../a
455 $ hg pull ../a
456 pulling from ../a
456 pulling from ../a
457 searching for changes
457 searching for changes
458 no changes found
458 no changes found
459 warning: failed to assign numbered name to divergent bookmark X
459 warning: failed to assign numbered name to divergent bookmark X
460 divergent bookmark @ stored as @1
460 divergent bookmark @ stored as @1
461 $ hg bookmarks | grep '^ @'
461 $ hg bookmarks | grep '^ @'
462 @ 1:9b140be10808
462 @ 1:9b140be10808
463 @1 2:0d2164f0ce0d
463 @1 2:0d2164f0ce0d
464 @foo 2:0d2164f0ce0d
464 @foo 2:0d2164f0ce0d
465
465
466 $ "$PYTHON" $TESTDIR/seq.py 1 100 | while read i; do hg bookmarks -d "X@${i}"; done
466 $ "$PYTHON" $TESTDIR/seq.py 1 100 | while read i; do hg bookmarks -d "X@${i}"; done
467 $ hg bookmarks -d "@1"
467 $ hg bookmarks -d "@1"
468
468
469 $ hg push -f ../a
469 $ hg push -f ../a
470 pushing to ../a
470 pushing to ../a
471 searching for changes
471 searching for changes
472 adding changesets
472 adding changesets
473 adding manifests
473 adding manifests
474 adding file changes
474 adding file changes
475 added 1 changesets with 1 changes to 1 files (+1 heads)
475 added 1 changesets with 1 changes to 1 files (+1 heads)
476 $ hg -R ../a book
476 $ hg -R ../a book
477 @ 1:0d2164f0ce0d
477 @ 1:0d2164f0ce0d
478 * X 1:0d2164f0ce0d
478 * X 1:0d2164f0ce0d
479 Y 0:4e3505fd9583
479 Y 0:4e3505fd9583
480 Z 1:0d2164f0ce0d
480 Z 1:0d2164f0ce0d
481
481
482 explicit pull should overwrite the local version (issue4439)
482 explicit pull should overwrite the local version (issue4439)
483
483
484 $ hg update -r X
484 $ hg update -r X
485 0 files updated, 0 files merged, 0 files removed, 0 files unresolved
485 0 files updated, 0 files merged, 0 files removed, 0 files unresolved
486 (activating bookmark X)
486 (activating bookmark X)
487 $ hg pull --config paths.foo=../a foo -B . --config "$TESTHOOK"
487 $ hg pull --config paths.foo=../a foo -B . --config "$TESTHOOK"
488 pulling from $TESTTMP/a
488 pulling from $TESTTMP/a
489 no changes found
489 no changes found
490 divergent bookmark @ stored as @foo
490 divergent bookmark @ stored as @foo
491 importing bookmark X
491 importing bookmark X
492 test-hook-bookmark: @foo: 0d2164f0ce0d8f1d6f94351eba04b794909be66c -> 0d2164f0ce0d8f1d6f94351eba04b794909be66c
492 test-hook-bookmark: @foo: 0d2164f0ce0d8f1d6f94351eba04b794909be66c -> 0d2164f0ce0d8f1d6f94351eba04b794909be66c
493 test-hook-bookmark: X: 9b140be1080824d768c5a4691a564088eede71f9 -> 0d2164f0ce0d8f1d6f94351eba04b794909be66c
493 test-hook-bookmark: X: 9b140be1080824d768c5a4691a564088eede71f9 -> 0d2164f0ce0d8f1d6f94351eba04b794909be66c
494
494
495 reinstall state for further testing:
495 reinstall state for further testing:
496
496
497 $ hg book -fr 9b140be10808 X
497 $ hg book -fr 9b140be10808 X
498
498
499 revsets should not ignore divergent bookmarks
499 revsets should not ignore divergent bookmarks
500
500
501 $ hg bookmark -fr 1 Z
501 $ hg bookmark -fr 1 Z
502 $ hg log -r 'bookmark()' --template '{rev}:{node|short} {bookmarks}\n'
502 $ hg log -r 'bookmark()' --template '{rev}:{node|short} {bookmarks}\n'
503 0:4e3505fd9583 Y
503 0:4e3505fd9583 Y
504 1:9b140be10808 @ X Z foobar
504 1:9b140be10808 @ X Z foobar
505 2:0d2164f0ce0d @foo X@foo
505 2:0d2164f0ce0d @foo X@foo
506 $ hg log -r 'bookmark("X@foo")' --template '{rev}:{node|short} {bookmarks}\n'
506 $ hg log -r 'bookmark("X@foo")' --template '{rev}:{node|short} {bookmarks}\n'
507 2:0d2164f0ce0d @foo X@foo
507 2:0d2164f0ce0d @foo X@foo
508 $ hg log -r 'bookmark("re:X@foo")' --template '{rev}:{node|short} {bookmarks}\n'
508 $ hg log -r 'bookmark("re:X@foo")' --template '{rev}:{node|short} {bookmarks}\n'
509 2:0d2164f0ce0d @foo X@foo
509 2:0d2164f0ce0d @foo X@foo
510
510
511 update a remote bookmark from a non-head to a head
511 update a remote bookmark from a non-head to a head
512
512
513 $ hg up -q Y
513 $ hg up -q Y
514 $ echo c3 > f2
514 $ echo c3 > f2
515 $ hg ci -Am3
515 $ hg ci -Am3
516 adding f2
516 adding f2
517 created new head
517 created new head
518 $ hg push ../a --config "$TESTHOOK"
518 $ hg push ../a --config "$TESTHOOK"
519 pushing to ../a
519 pushing to ../a
520 searching for changes
520 searching for changes
521 adding changesets
521 adding changesets
522 adding manifests
522 adding manifests
523 adding file changes
523 adding file changes
524 added 1 changesets with 1 changes to 1 files (+1 heads)
524 added 1 changesets with 1 changes to 1 files (+1 heads)
525 test-hook-bookmark: Y: 4e3505fd95835d721066b76e75dbb8cc554d7f77 -> f6fc62dde3c0771e29704af56ba4d8af77abcc2f
525 test-hook-bookmark: Y: 4e3505fd95835d721066b76e75dbb8cc554d7f77 -> f6fc62dde3c0771e29704af56ba4d8af77abcc2f
526 updating bookmark Y
526 updating bookmark Y
527 $ hg -R ../a book
527 $ hg -R ../a book
528 @ 1:0d2164f0ce0d
528 @ 1:0d2164f0ce0d
529 * X 1:0d2164f0ce0d
529 * X 1:0d2164f0ce0d
530 Y 3:f6fc62dde3c0
530 Y 3:f6fc62dde3c0
531 Z 1:0d2164f0ce0d
531 Z 1:0d2164f0ce0d
532
532
533 update a bookmark in the middle of a client pulling changes
533 update a bookmark in the middle of a client pulling changes
534
534
535 $ cd ..
535 $ cd ..
536 $ hg clone -q a pull-race
536 $ hg clone -q a pull-race
537
537
538 We want to use http because it is stateless and therefore more susceptible to
538 We want to use http because it is stateless and therefore more susceptible to
539 race conditions
539 race conditions
540
540
541 $ hg serve -R pull-race -p $HGPORT -d --pid-file=pull-race.pid -E main-error.log
541 $ hg serve -R pull-race -p $HGPORT -d --pid-file=pull-race.pid -E main-error.log
542 $ cat pull-race.pid >> $DAEMON_PIDS
542 $ cat pull-race.pid >> $DAEMON_PIDS
543
543
544 $ cat <<EOF > $TESTTMP/out_makecommit.sh
544 $ cat <<EOF > $TESTTMP/out_makecommit.sh
545 > #!/bin/sh
545 > #!/bin/sh
546 > hg ci -Am5
546 > hg ci -Am5
547 > echo committed in pull-race
547 > echo committed in pull-race
548 > EOF
548 > EOF
549
549
550 $ hg clone -q http://localhost:$HGPORT/ pull-race2 --config "$TESTHOOK"
550 $ hg clone -q http://localhost:$HGPORT/ pull-race2 --config "$TESTHOOK"
551 test-hook-bookmark: @: -> 0d2164f0ce0d8f1d6f94351eba04b794909be66c
551 test-hook-bookmark: @: -> 0d2164f0ce0d8f1d6f94351eba04b794909be66c
552 test-hook-bookmark: X: -> 0d2164f0ce0d8f1d6f94351eba04b794909be66c
552 test-hook-bookmark: X: -> 0d2164f0ce0d8f1d6f94351eba04b794909be66c
553 test-hook-bookmark: Y: -> f6fc62dde3c0771e29704af56ba4d8af77abcc2f
553 test-hook-bookmark: Y: -> f6fc62dde3c0771e29704af56ba4d8af77abcc2f
554 test-hook-bookmark: Z: -> 0d2164f0ce0d8f1d6f94351eba04b794909be66c
554 test-hook-bookmark: Z: -> 0d2164f0ce0d8f1d6f94351eba04b794909be66c
555 $ cd pull-race
555 $ cd pull-race
556 $ hg up -q Y
556 $ hg up -q Y
557 $ echo c4 > f2
557 $ echo c4 > f2
558 $ hg ci -Am4
558 $ hg ci -Am4
559 $ echo c5 > f3
559 $ echo c5 > f3
560 $ cat <<EOF > .hg/hgrc
560 $ cat <<EOF > .hg/hgrc
561 > [hooks]
561 > [hooks]
562 > outgoing.makecommit = sh $TESTTMP/out_makecommit.sh
562 > outgoing.makecommit = sh $TESTTMP/out_makecommit.sh
563 > EOF
563 > EOF
564
564
565 (new config needs a server restart)
565 (new config needs a server restart)
566
566
567 $ cd ..
567 $ cd ..
568 $ killdaemons.py
568 $ killdaemons.py
569 $ hg serve -R pull-race -p $HGPORT -d --pid-file=pull-race.pid -E main-error.log
569 $ hg serve -R pull-race -p $HGPORT -d --pid-file=pull-race.pid -E main-error.log
570 $ cat pull-race.pid >> $DAEMON_PIDS
570 $ cat pull-race.pid >> $DAEMON_PIDS
571 $ cd pull-race2
571 $ cd pull-race2
572 $ hg -R $TESTTMP/pull-race book
572 $ hg -R $TESTTMP/pull-race book
573 @ 1:0d2164f0ce0d
573 @ 1:0d2164f0ce0d
574 X 1:0d2164f0ce0d
574 X 1:0d2164f0ce0d
575 * Y 4:b0a5eff05604
575 * Y 4:b0a5eff05604
576 Z 1:0d2164f0ce0d
576 Z 1:0d2164f0ce0d
577 $ hg pull
577 $ hg pull
578 pulling from http://localhost:$HGPORT/
578 pulling from http://localhost:$HGPORT/
579 searching for changes
579 searching for changes
580 adding changesets
580 adding changesets
581 adding manifests
581 adding manifests
582 adding file changes
582 adding file changes
583 added 1 changesets with 1 changes to 1 files
583 added 1 changesets with 1 changes to 1 files
584 updating bookmark Y
584 updating bookmark Y
585 new changesets b0a5eff05604 (1 drafts)
585 new changesets b0a5eff05604 (1 drafts)
586 (run 'hg update' to get a working copy)
586 (run 'hg update' to get a working copy)
587 $ hg book
587 $ hg book
588 * @ 1:0d2164f0ce0d
588 * @ 1:0d2164f0ce0d
589 X 1:0d2164f0ce0d
589 X 1:0d2164f0ce0d
590 Y 4:b0a5eff05604
590 Y 4:b0a5eff05604
591 Z 1:0d2164f0ce0d
591 Z 1:0d2164f0ce0d
592
592
593 Update a bookmark right after the initial lookup -B (issue4689)
593 Update a bookmark right after the initial lookup -B (issue4689)
594
594
595 $ echo c6 > ../pull-race/f3 # to be committed during the race
595 $ echo c6 > ../pull-race/f3 # to be committed during the race
596 $ cat <<EOF > $TESTTMP/listkeys_makecommit.sh
596 $ cat <<EOF > $TESTTMP/listkeys_makecommit.sh
597 > #!/bin/sh
597 > #!/bin/sh
598 > if hg st | grep -q M; then
598 > if hg st | grep -q M; then
599 > hg commit -m race
599 > hg commit -m race
600 > echo committed in pull-race
600 > echo committed in pull-race
601 > else
601 > else
602 > exit 0
602 > exit 0
603 > fi
603 > fi
604 > EOF
604 > EOF
605 $ cat <<EOF > ../pull-race/.hg/hgrc
605 $ cat <<EOF > ../pull-race/.hg/hgrc
606 > [hooks]
606 > [hooks]
607 > # If anything to commit, commit it right after the first key listing used
607 > # If anything to commit, commit it right after the first key listing used
608 > # during lookup. This makes the commit appear before the actual getbundle
608 > # during lookup. This makes the commit appear before the actual getbundle
609 > # call.
609 > # call.
610 > listkeys.makecommit= sh $TESTTMP/listkeys_makecommit.sh
610 > listkeys.makecommit= sh $TESTTMP/listkeys_makecommit.sh
611 > EOF
611 > EOF
612
612 $ restart_server() {
613 (new config need server restart)
613 > "$TESTDIR/killdaemons.py" $DAEMON_PIDS
614
614 > hg serve -R ../pull-race -p $HGPORT -d --pid-file=../pull-race.pid -E main-error.log
615 $ killdaemons.py
615 > cat ../pull-race.pid >> $DAEMON_PIDS
616 $ hg serve -R ../pull-race -p $HGPORT -d --pid-file=../pull-race.pid -E main-error.log
616 > }
617 $ cat ../pull-race.pid >> $DAEMON_PIDS
617 $ restart_server # new config need server restart
618
619 $ hg -R $TESTTMP/pull-race book
618 $ hg -R $TESTTMP/pull-race book
620 @ 1:0d2164f0ce0d
619 @ 1:0d2164f0ce0d
621 X 1:0d2164f0ce0d
620 X 1:0d2164f0ce0d
622 * Y 5:35d1ef0a8d1b
621 * Y 5:35d1ef0a8d1b
623 Z 1:0d2164f0ce0d
622 Z 1:0d2164f0ce0d
624 $ hg update -r Y
623 $ hg update -r Y
625 1 files updated, 0 files merged, 1 files removed, 0 files unresolved
624 1 files updated, 0 files merged, 1 files removed, 0 files unresolved
626 (activating bookmark Y)
625 (activating bookmark Y)
627 $ hg pull -B .
626 $ hg pull -B .
628 pulling from http://localhost:$HGPORT/
627 pulling from http://localhost:$HGPORT/
629 searching for changes
628 searching for changes
630 adding changesets
629 adding changesets
631 adding manifests
630 adding manifests
632 adding file changes
631 adding file changes
633 added 1 changesets with 1 changes to 1 files
632 added 1 changesets with 1 changes to 1 files
634 updating bookmark Y
633 updating bookmark Y
635 new changesets 35d1ef0a8d1b (1 drafts)
634 new changesets 35d1ef0a8d1b (1 drafts)
636 (run 'hg update' to get a working copy)
635 (run 'hg update' to get a working copy)
637 $ hg book
636 $ hg book
638 @ 1:0d2164f0ce0d
637 @ 1:0d2164f0ce0d
639 X 1:0d2164f0ce0d
638 X 1:0d2164f0ce0d
640 * Y 5:35d1ef0a8d1b
639 * Y 5:35d1ef0a8d1b
641 Z 1:0d2164f0ce0d
640 Z 1:0d2164f0ce0d
642
641
642 Update a bookmark right after the initial lookup -r (issue4700)
643
644 $ echo c7 > ../pull-race/f3 # to be committed during the race
645 $ cat <<EOF > ../lookuphook.py
646 > """small extensions adding a hook after wireprotocol lookup to test race"""
647 > import functools
648 > from mercurial import wireprotov1server, wireprotov2server
649 >
650 > def wrappedlookup(orig, repo, *args, **kwargs):
651 > ret = orig(repo, *args, **kwargs)
652 > repo.hook(b'lookup')
653 > return ret
654 > for table in [wireprotov1server.commands, wireprotov2server.COMMANDS]:
655 > table[b'lookup'].func = functools.partial(wrappedlookup, table[b'lookup'].func)
656 > EOF
657 $ cat <<EOF > ../pull-race/.hg/hgrc
658 > [extensions]
659 > lookuphook=$TESTTMP/lookuphook.py
660 > [hooks]
661 > lookup.makecommit= sh $TESTTMP/listkeys_makecommit.sh
662 > EOF
663 $ restart_server # new config need server restart
664 $ hg -R $TESTTMP/pull-race book
665 @ 1:0d2164f0ce0d
666 X 1:0d2164f0ce0d
667 * Y 6:0d60821d2197
668 Z 1:0d2164f0ce0d
669 $ hg pull -r Y
670 pulling from http://localhost:$HGPORT/
671 searching for changes
672 adding changesets
673 adding manifests
674 adding file changes
675 added 1 changesets with 1 changes to 1 files
676 new changesets 0d60821d2197 (1 drafts)
677 (run 'hg update' to get a working copy)
678 $ hg book
679 @ 1:0d2164f0ce0d
680 X 1:0d2164f0ce0d
681 * Y 5:35d1ef0a8d1b
682 Z 1:0d2164f0ce0d
683 $ hg -R $TESTTMP/pull-race book
684 @ 1:0d2164f0ce0d
685 X 1:0d2164f0ce0d
686 * Y 7:714424d9e8b8
687 Z 1:0d2164f0ce0d
688
643 (done with this section of the test)
689 (done with this section of the test)
644
690
645 $ killdaemons.py
691 $ killdaemons.py
646 $ cd ../b
692 $ cd ../b
647
693
648 diverging a remote bookmark fails
694 diverging a remote bookmark fails
649
695
650 $ hg up -q 4e3505fd9583
696 $ hg up -q 4e3505fd9583
651 $ echo c4 > f2
697 $ echo c4 > f2
652 $ hg ci -Am4
698 $ hg ci -Am4
653 adding f2
699 adding f2
654 created new head
700 created new head
655 $ echo c5 > f2
701 $ echo c5 > f2
656 $ hg ci -Am5
702 $ hg ci -Am5
657 $ hg log -G
703 $ hg log -G
658 @ 5:c922c0139ca0 5
704 @ 5:c922c0139ca0 5
659 |
705 |
660 o 4:4efff6d98829 4
706 o 4:4efff6d98829 4
661 |
707 |
662 | o 3:f6fc62dde3c0 3
708 | o 3:f6fc62dde3c0 3
663 |/
709 |/
664 | o 2:0d2164f0ce0d 1
710 | o 2:0d2164f0ce0d 1
665 |/
711 |/
666 | o 1:9b140be10808 2
712 | o 1:9b140be10808 2
667 |/
713 |/
668 o 0:4e3505fd9583 test
714 o 0:4e3505fd9583 test
669
715
670
716
671 $ hg book -f Y
717 $ hg book -f Y
672
718
673 $ cat <<EOF > ../a/.hg/hgrc
719 $ cat <<EOF > ../a/.hg/hgrc
674 > [web]
720 > [web]
675 > push_ssl = false
721 > push_ssl = false
676 > allow_push = *
722 > allow_push = *
677 > EOF
723 > EOF
678
724
679 $ hg serve -R ../a -p $HGPORT2 -d --pid-file=../hg2.pid
725 $ hg serve -R ../a -p $HGPORT2 -d --pid-file=../hg2.pid
680 $ cat ../hg2.pid >> $DAEMON_PIDS
726 $ cat ../hg2.pid >> $DAEMON_PIDS
681
727
682 $ hg push http://localhost:$HGPORT2/
728 $ hg push http://localhost:$HGPORT2/
683 pushing to http://localhost:$HGPORT2/
729 pushing to http://localhost:$HGPORT2/
684 searching for changes
730 searching for changes
685 abort: push creates new remote head c922c0139ca0 with bookmark 'Y'!
731 abort: push creates new remote head c922c0139ca0 with bookmark 'Y'!
686 (merge or see 'hg help push' for details about pushing new heads)
732 (merge or see 'hg help push' for details about pushing new heads)
687 [255]
733 [255]
688 $ hg -R ../a book
734 $ hg -R ../a book
689 @ 1:0d2164f0ce0d
735 @ 1:0d2164f0ce0d
690 * X 1:0d2164f0ce0d
736 * X 1:0d2164f0ce0d
691 Y 3:f6fc62dde3c0
737 Y 3:f6fc62dde3c0
692 Z 1:0d2164f0ce0d
738 Z 1:0d2164f0ce0d
693
739
694
740
695 Unrelated marker does not alter the decision
741 Unrelated marker does not alter the decision
696
742
697 $ hg debugobsolete aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
743 $ hg debugobsolete aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
698 $ hg push http://localhost:$HGPORT2/
744 $ hg push http://localhost:$HGPORT2/
699 pushing to http://localhost:$HGPORT2/
745 pushing to http://localhost:$HGPORT2/
700 searching for changes
746 searching for changes
701 abort: push creates new remote head c922c0139ca0 with bookmark 'Y'!
747 abort: push creates new remote head c922c0139ca0 with bookmark 'Y'!
702 (merge or see 'hg help push' for details about pushing new heads)
748 (merge or see 'hg help push' for details about pushing new heads)
703 [255]
749 [255]
704 $ hg -R ../a book
750 $ hg -R ../a book
705 @ 1:0d2164f0ce0d
751 @ 1:0d2164f0ce0d
706 * X 1:0d2164f0ce0d
752 * X 1:0d2164f0ce0d
707 Y 3:f6fc62dde3c0
753 Y 3:f6fc62dde3c0
708 Z 1:0d2164f0ce0d
754 Z 1:0d2164f0ce0d
709
755
710 Update to a successor works
756 Update to a successor works
711
757
712 $ hg id --debug -r 3
758 $ hg id --debug -r 3
713 f6fc62dde3c0771e29704af56ba4d8af77abcc2f
759 f6fc62dde3c0771e29704af56ba4d8af77abcc2f
714 $ hg id --debug -r 4
760 $ hg id --debug -r 4
715 4efff6d98829d9c824c621afd6e3f01865f5439f
761 4efff6d98829d9c824c621afd6e3f01865f5439f
716 $ hg id --debug -r 5
762 $ hg id --debug -r 5
717 c922c0139ca03858f655e4a2af4dd02796a63969 tip Y
763 c922c0139ca03858f655e4a2af4dd02796a63969 tip Y
718 $ hg debugobsolete f6fc62dde3c0771e29704af56ba4d8af77abcc2f cccccccccccccccccccccccccccccccccccccccc
764 $ hg debugobsolete f6fc62dde3c0771e29704af56ba4d8af77abcc2f cccccccccccccccccccccccccccccccccccccccc
719 obsoleted 1 changesets
765 obsoleted 1 changesets
720 $ hg debugobsolete cccccccccccccccccccccccccccccccccccccccc 4efff6d98829d9c824c621afd6e3f01865f5439f
766 $ hg debugobsolete cccccccccccccccccccccccccccccccccccccccc 4efff6d98829d9c824c621afd6e3f01865f5439f
721 $ hg push http://localhost:$HGPORT2/
767 $ hg push http://localhost:$HGPORT2/
722 pushing to http://localhost:$HGPORT2/
768 pushing to http://localhost:$HGPORT2/
723 searching for changes
769 searching for changes
724 remote: adding changesets
770 remote: adding changesets
725 remote: adding manifests
771 remote: adding manifests
726 remote: adding file changes
772 remote: adding file changes
727 remote: added 2 changesets with 2 changes to 1 files (+1 heads)
773 remote: added 2 changesets with 2 changes to 1 files (+1 heads)
728 remote: 2 new obsolescence markers
774 remote: 2 new obsolescence markers
729 remote: obsoleted 1 changesets
775 remote: obsoleted 1 changesets
730 updating bookmark Y
776 updating bookmark Y
731 $ hg -R ../a book
777 $ hg -R ../a book
732 @ 1:0d2164f0ce0d
778 @ 1:0d2164f0ce0d
733 * X 1:0d2164f0ce0d
779 * X 1:0d2164f0ce0d
734 Y 5:c922c0139ca0
780 Y 5:c922c0139ca0
735 Z 1:0d2164f0ce0d
781 Z 1:0d2164f0ce0d
736
782
737 hgweb
783 hgweb
738
784
739 $ cat <<EOF > .hg/hgrc
785 $ cat <<EOF > .hg/hgrc
740 > [web]
786 > [web]
741 > push_ssl = false
787 > push_ssl = false
742 > allow_push = *
788 > allow_push = *
743 > EOF
789 > EOF
744
790
745 $ hg serve -p $HGPORT -d --pid-file=../hg.pid -E errors.log
791 $ hg serve -p $HGPORT -d --pid-file=../hg.pid -E errors.log
746 $ cat ../hg.pid >> $DAEMON_PIDS
792 $ cat ../hg.pid >> $DAEMON_PIDS
747 $ cd ../a
793 $ cd ../a
748
794
749 $ hg debugpushkey http://localhost:$HGPORT/ namespaces
795 $ hg debugpushkey http://localhost:$HGPORT/ namespaces
750 bookmarks
796 bookmarks
751 namespaces
797 namespaces
752 obsolete
798 obsolete
753 phases
799 phases
754 $ hg debugpushkey http://localhost:$HGPORT/ bookmarks
800 $ hg debugpushkey http://localhost:$HGPORT/ bookmarks
755 @ 9b140be1080824d768c5a4691a564088eede71f9
801 @ 9b140be1080824d768c5a4691a564088eede71f9
756 X 9b140be1080824d768c5a4691a564088eede71f9
802 X 9b140be1080824d768c5a4691a564088eede71f9
757 Y c922c0139ca03858f655e4a2af4dd02796a63969
803 Y c922c0139ca03858f655e4a2af4dd02796a63969
758 Z 9b140be1080824d768c5a4691a564088eede71f9
804 Z 9b140be1080824d768c5a4691a564088eede71f9
759 foo 0000000000000000000000000000000000000000
805 foo 0000000000000000000000000000000000000000
760 foobar 9b140be1080824d768c5a4691a564088eede71f9
806 foobar 9b140be1080824d768c5a4691a564088eede71f9
761 $ hg out -B http://localhost:$HGPORT/
807 $ hg out -B http://localhost:$HGPORT/
762 comparing with http://localhost:$HGPORT/
808 comparing with http://localhost:$HGPORT/
763 searching for changed bookmarks
809 searching for changed bookmarks
764 @ 0d2164f0ce0d
810 @ 0d2164f0ce0d
765 X 0d2164f0ce0d
811 X 0d2164f0ce0d
766 Z 0d2164f0ce0d
812 Z 0d2164f0ce0d
767 foo
813 foo
768 foobar
814 foobar
769 $ hg push -B Z http://localhost:$HGPORT/
815 $ hg push -B Z http://localhost:$HGPORT/
770 pushing to http://localhost:$HGPORT/
816 pushing to http://localhost:$HGPORT/
771 searching for changes
817 searching for changes
772 no changes found
818 no changes found
773 updating bookmark Z
819 updating bookmark Z
774 [1]
820 [1]
775 $ hg book -d Z
821 $ hg book -d Z
776 $ hg in -B http://localhost:$HGPORT/
822 $ hg in -B http://localhost:$HGPORT/
777 comparing with http://localhost:$HGPORT/
823 comparing with http://localhost:$HGPORT/
778 searching for changed bookmarks
824 searching for changed bookmarks
779 @ 9b140be10808
825 @ 9b140be10808
780 X 9b140be10808
826 X 9b140be10808
781 Z 0d2164f0ce0d
827 Z 0d2164f0ce0d
782 foo 000000000000
828 foo 000000000000
783 foobar 9b140be10808
829 foobar 9b140be10808
784 $ hg pull -B Z http://localhost:$HGPORT/
830 $ hg pull -B Z http://localhost:$HGPORT/
785 pulling from http://localhost:$HGPORT/
831 pulling from http://localhost:$HGPORT/
786 no changes found
832 no changes found
787 divergent bookmark @ stored as @1
833 divergent bookmark @ stored as @1
788 divergent bookmark X stored as X@1
834 divergent bookmark X stored as X@1
789 adding remote bookmark Z
835 adding remote bookmark Z
790 adding remote bookmark foo
836 adding remote bookmark foo
791 adding remote bookmark foobar
837 adding remote bookmark foobar
792 $ hg clone http://localhost:$HGPORT/ cloned-bookmarks
838 $ hg clone http://localhost:$HGPORT/ cloned-bookmarks
793 requesting all changes
839 requesting all changes
794 adding changesets
840 adding changesets
795 adding manifests
841 adding manifests
796 adding file changes
842 adding file changes
797 added 5 changesets with 5 changes to 3 files (+2 heads)
843 added 5 changesets with 5 changes to 3 files (+2 heads)
798 2 new obsolescence markers
844 2 new obsolescence markers
799 new changesets 4e3505fd9583:c922c0139ca0 (5 drafts)
845 new changesets 4e3505fd9583:c922c0139ca0 (5 drafts)
800 updating to bookmark @
846 updating to bookmark @
801 2 files updated, 0 files merged, 0 files removed, 0 files unresolved
847 2 files updated, 0 files merged, 0 files removed, 0 files unresolved
802 $ hg -R cloned-bookmarks bookmarks
848 $ hg -R cloned-bookmarks bookmarks
803 * @ 1:9b140be10808
849 * @ 1:9b140be10808
804 X 1:9b140be10808
850 X 1:9b140be10808
805 Y 4:c922c0139ca0
851 Y 4:c922c0139ca0
806 Z 2:0d2164f0ce0d
852 Z 2:0d2164f0ce0d
807 foo -1:000000000000
853 foo -1:000000000000
808 foobar 1:9b140be10808
854 foobar 1:9b140be10808
809
855
810 $ cd ..
856 $ cd ..
811
857
812 Test to show result of bookmarks comparison
858 Test to show result of bookmarks comparison
813
859
814 $ mkdir bmcomparison
860 $ mkdir bmcomparison
815 $ cd bmcomparison
861 $ cd bmcomparison
816
862
817 $ hg init source
863 $ hg init source
818 $ hg -R source debugbuilddag '+2*2*3*4'
864 $ hg -R source debugbuilddag '+2*2*3*4'
819 $ hg -R source log -G --template '{rev}:{node|short}'
865 $ hg -R source log -G --template '{rev}:{node|short}'
820 o 4:e7bd5218ca15
866 o 4:e7bd5218ca15
821 |
867 |
822 | o 3:6100d3090acf
868 | o 3:6100d3090acf
823 |/
869 |/
824 | o 2:fa942426a6fd
870 | o 2:fa942426a6fd
825 |/
871 |/
826 | o 1:66f7d451a68b
872 | o 1:66f7d451a68b
827 |/
873 |/
828 o 0:1ea73414a91b
874 o 0:1ea73414a91b
829
875
830 $ hg -R source bookmarks -r 0 SAME
876 $ hg -R source bookmarks -r 0 SAME
831 $ hg -R source bookmarks -r 0 ADV_ON_REPO1
877 $ hg -R source bookmarks -r 0 ADV_ON_REPO1
832 $ hg -R source bookmarks -r 0 ADV_ON_REPO2
878 $ hg -R source bookmarks -r 0 ADV_ON_REPO2
833 $ hg -R source bookmarks -r 0 DIFF_ADV_ON_REPO1
879 $ hg -R source bookmarks -r 0 DIFF_ADV_ON_REPO1
834 $ hg -R source bookmarks -r 0 DIFF_ADV_ON_REPO2
880 $ hg -R source bookmarks -r 0 DIFF_ADV_ON_REPO2
835 $ hg -R source bookmarks -r 1 DIVERGED
881 $ hg -R source bookmarks -r 1 DIVERGED
836
882
837 $ hg clone -U source repo1
883 $ hg clone -U source repo1
838
884
839 (test that incoming/outgoing exit with 1, if there is no bookmark to
885 (test that incoming/outgoing exit with 1, if there is no bookmark to
840 be exchanged)
886 be exchanged)
841
887
842 $ hg -R repo1 incoming -B
888 $ hg -R repo1 incoming -B
843 comparing with $TESTTMP/bmcomparison/source
889 comparing with $TESTTMP/bmcomparison/source
844 searching for changed bookmarks
890 searching for changed bookmarks
845 no changed bookmarks found
891 no changed bookmarks found
846 [1]
892 [1]
847 $ hg -R repo1 outgoing -B
893 $ hg -R repo1 outgoing -B
848 comparing with $TESTTMP/bmcomparison/source
894 comparing with $TESTTMP/bmcomparison/source
849 searching for changed bookmarks
895 searching for changed bookmarks
850 no changed bookmarks found
896 no changed bookmarks found
851 [1]
897 [1]
852
898
853 $ hg -R repo1 bookmarks -f -r 1 ADD_ON_REPO1
899 $ hg -R repo1 bookmarks -f -r 1 ADD_ON_REPO1
854 $ hg -R repo1 bookmarks -f -r 2 ADV_ON_REPO1
900 $ hg -R repo1 bookmarks -f -r 2 ADV_ON_REPO1
855 $ hg -R repo1 bookmarks -f -r 3 DIFF_ADV_ON_REPO1
901 $ hg -R repo1 bookmarks -f -r 3 DIFF_ADV_ON_REPO1
856 $ hg -R repo1 bookmarks -f -r 3 DIFF_DIVERGED
902 $ hg -R repo1 bookmarks -f -r 3 DIFF_DIVERGED
857 $ hg -R repo1 -q --config extensions.mq= strip 4
903 $ hg -R repo1 -q --config extensions.mq= strip 4
858 $ hg -R repo1 log -G --template '{node|short} ({bookmarks})'
904 $ hg -R repo1 log -G --template '{node|short} ({bookmarks})'
859 o 6100d3090acf (DIFF_ADV_ON_REPO1 DIFF_DIVERGED)
905 o 6100d3090acf (DIFF_ADV_ON_REPO1 DIFF_DIVERGED)
860 |
906 |
861 | o fa942426a6fd (ADV_ON_REPO1)
907 | o fa942426a6fd (ADV_ON_REPO1)
862 |/
908 |/
863 | o 66f7d451a68b (ADD_ON_REPO1 DIVERGED)
909 | o 66f7d451a68b (ADD_ON_REPO1 DIVERGED)
864 |/
910 |/
865 o 1ea73414a91b (ADV_ON_REPO2 DIFF_ADV_ON_REPO2 SAME)
911 o 1ea73414a91b (ADV_ON_REPO2 DIFF_ADV_ON_REPO2 SAME)
866
912
867
913
868 $ hg clone -U source repo2
914 $ hg clone -U source repo2
869 $ hg -R repo2 bookmarks -f -r 1 ADD_ON_REPO2
915 $ hg -R repo2 bookmarks -f -r 1 ADD_ON_REPO2
870 $ hg -R repo2 bookmarks -f -r 1 ADV_ON_REPO2
916 $ hg -R repo2 bookmarks -f -r 1 ADV_ON_REPO2
871 $ hg -R repo2 bookmarks -f -r 2 DIVERGED
917 $ hg -R repo2 bookmarks -f -r 2 DIVERGED
872 $ hg -R repo2 bookmarks -f -r 4 DIFF_ADV_ON_REPO2
918 $ hg -R repo2 bookmarks -f -r 4 DIFF_ADV_ON_REPO2
873 $ hg -R repo2 bookmarks -f -r 4 DIFF_DIVERGED
919 $ hg -R repo2 bookmarks -f -r 4 DIFF_DIVERGED
874 $ hg -R repo2 -q --config extensions.mq= strip 3
920 $ hg -R repo2 -q --config extensions.mq= strip 3
875 $ hg -R repo2 log -G --template '{node|short} ({bookmarks})'
921 $ hg -R repo2 log -G --template '{node|short} ({bookmarks})'
876 o e7bd5218ca15 (DIFF_ADV_ON_REPO2 DIFF_DIVERGED)
922 o e7bd5218ca15 (DIFF_ADV_ON_REPO2 DIFF_DIVERGED)
877 |
923 |
878 | o fa942426a6fd (DIVERGED)
924 | o fa942426a6fd (DIVERGED)
879 |/
925 |/
880 | o 66f7d451a68b (ADD_ON_REPO2 ADV_ON_REPO2)
926 | o 66f7d451a68b (ADD_ON_REPO2 ADV_ON_REPO2)
881 |/
927 |/
882 o 1ea73414a91b (ADV_ON_REPO1 DIFF_ADV_ON_REPO1 SAME)
928 o 1ea73414a91b (ADV_ON_REPO1 DIFF_ADV_ON_REPO1 SAME)
883
929
884
930
885 (test that difference of bookmarks between repositories are fully shown)
931 (test that difference of bookmarks between repositories are fully shown)
886
932
887 $ hg -R repo1 incoming -B repo2 -v
933 $ hg -R repo1 incoming -B repo2 -v
888 comparing with repo2
934 comparing with repo2
889 searching for changed bookmarks
935 searching for changed bookmarks
890 ADD_ON_REPO2 66f7d451a68b added
936 ADD_ON_REPO2 66f7d451a68b added
891 ADV_ON_REPO2 66f7d451a68b advanced
937 ADV_ON_REPO2 66f7d451a68b advanced
892 DIFF_ADV_ON_REPO2 e7bd5218ca15 changed
938 DIFF_ADV_ON_REPO2 e7bd5218ca15 changed
893 DIFF_DIVERGED e7bd5218ca15 changed
939 DIFF_DIVERGED e7bd5218ca15 changed
894 DIVERGED fa942426a6fd diverged
940 DIVERGED fa942426a6fd diverged
895 $ hg -R repo1 outgoing -B repo2 -v
941 $ hg -R repo1 outgoing -B repo2 -v
896 comparing with repo2
942 comparing with repo2
897 searching for changed bookmarks
943 searching for changed bookmarks
898 ADD_ON_REPO1 66f7d451a68b added
944 ADD_ON_REPO1 66f7d451a68b added
899 ADD_ON_REPO2 deleted
945 ADD_ON_REPO2 deleted
900 ADV_ON_REPO1 fa942426a6fd advanced
946 ADV_ON_REPO1 fa942426a6fd advanced
901 DIFF_ADV_ON_REPO1 6100d3090acf advanced
947 DIFF_ADV_ON_REPO1 6100d3090acf advanced
902 DIFF_ADV_ON_REPO2 1ea73414a91b changed
948 DIFF_ADV_ON_REPO2 1ea73414a91b changed
903 DIFF_DIVERGED 6100d3090acf changed
949 DIFF_DIVERGED 6100d3090acf changed
904 DIVERGED 66f7d451a68b diverged
950 DIVERGED 66f7d451a68b diverged
905
951
906 $ hg -R repo2 incoming -B repo1 -v
952 $ hg -R repo2 incoming -B repo1 -v
907 comparing with repo1
953 comparing with repo1
908 searching for changed bookmarks
954 searching for changed bookmarks
909 ADD_ON_REPO1 66f7d451a68b added
955 ADD_ON_REPO1 66f7d451a68b added
910 ADV_ON_REPO1 fa942426a6fd advanced
956 ADV_ON_REPO1 fa942426a6fd advanced
911 DIFF_ADV_ON_REPO1 6100d3090acf changed
957 DIFF_ADV_ON_REPO1 6100d3090acf changed
912 DIFF_DIVERGED 6100d3090acf changed
958 DIFF_DIVERGED 6100d3090acf changed
913 DIVERGED 66f7d451a68b diverged
959 DIVERGED 66f7d451a68b diverged
914 $ hg -R repo2 outgoing -B repo1 -v
960 $ hg -R repo2 outgoing -B repo1 -v
915 comparing with repo1
961 comparing with repo1
916 searching for changed bookmarks
962 searching for changed bookmarks
917 ADD_ON_REPO1 deleted
963 ADD_ON_REPO1 deleted
918 ADD_ON_REPO2 66f7d451a68b added
964 ADD_ON_REPO2 66f7d451a68b added
919 ADV_ON_REPO2 66f7d451a68b advanced
965 ADV_ON_REPO2 66f7d451a68b advanced
920 DIFF_ADV_ON_REPO1 1ea73414a91b changed
966 DIFF_ADV_ON_REPO1 1ea73414a91b changed
921 DIFF_ADV_ON_REPO2 e7bd5218ca15 advanced
967 DIFF_ADV_ON_REPO2 e7bd5218ca15 advanced
922 DIFF_DIVERGED e7bd5218ca15 changed
968 DIFF_DIVERGED e7bd5218ca15 changed
923 DIVERGED fa942426a6fd diverged
969 DIVERGED fa942426a6fd diverged
924
970
925 $ cd ..
971 $ cd ..
926
972
927 Pushing a bookmark should only push the changes required by that
973 Pushing a bookmark should only push the changes required by that
928 bookmark, not all outgoing changes:
974 bookmark, not all outgoing changes:
929 $ hg clone http://localhost:$HGPORT/ addmarks
975 $ hg clone http://localhost:$HGPORT/ addmarks
930 requesting all changes
976 requesting all changes
931 adding changesets
977 adding changesets
932 adding manifests
978 adding manifests
933 adding file changes
979 adding file changes
934 added 5 changesets with 5 changes to 3 files (+2 heads)
980 added 5 changesets with 5 changes to 3 files (+2 heads)
935 2 new obsolescence markers
981 2 new obsolescence markers
936 new changesets 4e3505fd9583:c922c0139ca0 (5 drafts)
982 new changesets 4e3505fd9583:c922c0139ca0 (5 drafts)
937 updating to bookmark @
983 updating to bookmark @
938 2 files updated, 0 files merged, 0 files removed, 0 files unresolved
984 2 files updated, 0 files merged, 0 files removed, 0 files unresolved
939 $ cd addmarks
985 $ cd addmarks
940 $ echo foo > foo
986 $ echo foo > foo
941 $ hg add foo
987 $ hg add foo
942 $ hg commit -m 'add foo'
988 $ hg commit -m 'add foo'
943 $ echo bar > bar
989 $ echo bar > bar
944 $ hg add bar
990 $ hg add bar
945 $ hg commit -m 'add bar'
991 $ hg commit -m 'add bar'
946 $ hg co "tip^"
992 $ hg co "tip^"
947 0 files updated, 0 files merged, 1 files removed, 0 files unresolved
993 0 files updated, 0 files merged, 1 files removed, 0 files unresolved
948 (leaving bookmark @)
994 (leaving bookmark @)
949 $ hg book add-foo
995 $ hg book add-foo
950 $ hg book -r tip add-bar
996 $ hg book -r tip add-bar
951 Note: this push *must* push only a single changeset, as that's the point
997 Note: this push *must* push only a single changeset, as that's the point
952 of this test.
998 of this test.
953 $ hg push -B add-foo --traceback
999 $ hg push -B add-foo --traceback
954 pushing to http://localhost:$HGPORT/
1000 pushing to http://localhost:$HGPORT/
955 searching for changes
1001 searching for changes
956 remote: adding changesets
1002 remote: adding changesets
957 remote: adding manifests
1003 remote: adding manifests
958 remote: adding file changes
1004 remote: adding file changes
959 remote: added 1 changesets with 1 changes to 1 files
1005 remote: added 1 changesets with 1 changes to 1 files
960 exporting bookmark add-foo
1006 exporting bookmark add-foo
961
1007
962 pushing a new bookmark on a new head does not require -f if -B is specified
1008 pushing a new bookmark on a new head does not require -f if -B is specified
963
1009
964 $ hg up -q X
1010 $ hg up -q X
965 $ hg book W
1011 $ hg book W
966 $ echo c5 > f2
1012 $ echo c5 > f2
967 $ hg ci -Am5
1013 $ hg ci -Am5
968 created new head
1014 created new head
969 $ hg push -B .
1015 $ hg push -B .
970 pushing to http://localhost:$HGPORT/
1016 pushing to http://localhost:$HGPORT/
971 searching for changes
1017 searching for changes
972 remote: adding changesets
1018 remote: adding changesets
973 remote: adding manifests
1019 remote: adding manifests
974 remote: adding file changes
1020 remote: adding file changes
975 remote: added 1 changesets with 1 changes to 1 files (+1 heads)
1021 remote: added 1 changesets with 1 changes to 1 files (+1 heads)
976 exporting bookmark W
1022 exporting bookmark W
977 $ hg -R ../b id -r W
1023 $ hg -R ../b id -r W
978 cc978a373a53 tip W
1024 cc978a373a53 tip W
979
1025
980 pushing an existing but divergent bookmark with -B still requires -f
1026 pushing an existing but divergent bookmark with -B still requires -f
981
1027
982 $ hg clone -q . ../r
1028 $ hg clone -q . ../r
983 $ hg up -q X
1029 $ hg up -q X
984 $ echo 1 > f2
1030 $ echo 1 > f2
985 $ hg ci -qAml
1031 $ hg ci -qAml
986
1032
987 $ cd ../r
1033 $ cd ../r
988 $ hg up -q X
1034 $ hg up -q X
989 $ echo 2 > f2
1035 $ echo 2 > f2
990 $ hg ci -qAmr
1036 $ hg ci -qAmr
991 $ hg push -B X
1037 $ hg push -B X
992 pushing to $TESTTMP/addmarks
1038 pushing to $TESTTMP/addmarks
993 searching for changes
1039 searching for changes
994 remote has heads on branch 'default' that are not known locally: a2a606d9ff1b
1040 remote has heads on branch 'default' that are not known locally: a2a606d9ff1b
995 abort: push creates new remote head 54694f811df9 with bookmark 'X'!
1041 abort: push creates new remote head 54694f811df9 with bookmark 'X'!
996 (pull and merge or see 'hg help push' for details about pushing new heads)
1042 (pull and merge or see 'hg help push' for details about pushing new heads)
997 [255]
1043 [255]
998 $ cd ../addmarks
1044 $ cd ../addmarks
999
1045
1000 Check summary output for incoming/outgoing bookmarks
1046 Check summary output for incoming/outgoing bookmarks
1001
1047
1002 $ hg bookmarks -d X
1048 $ hg bookmarks -d X
1003 $ hg bookmarks -d Y
1049 $ hg bookmarks -d Y
1004 $ hg summary --remote | grep '^remote:'
1050 $ hg summary --remote | grep '^remote:'
1005 remote: *, 2 incoming bookmarks, 1 outgoing bookmarks (glob)
1051 remote: *, 2 incoming bookmarks, 1 outgoing bookmarks (glob)
1006
1052
1007 $ cd ..
1053 $ cd ..
1008
1054
1009 pushing an unchanged bookmark should result in no changes
1055 pushing an unchanged bookmark should result in no changes
1010
1056
1011 $ hg init unchanged-a
1057 $ hg init unchanged-a
1012 $ hg init unchanged-b
1058 $ hg init unchanged-b
1013 $ cd unchanged-a
1059 $ cd unchanged-a
1014 $ echo initial > foo
1060 $ echo initial > foo
1015 $ hg commit -A -m initial
1061 $ hg commit -A -m initial
1016 adding foo
1062 adding foo
1017 $ hg bookmark @
1063 $ hg bookmark @
1018 $ hg push -B @ ../unchanged-b
1064 $ hg push -B @ ../unchanged-b
1019 pushing to ../unchanged-b
1065 pushing to ../unchanged-b
1020 searching for changes
1066 searching for changes
1021 adding changesets
1067 adding changesets
1022 adding manifests
1068 adding manifests
1023 adding file changes
1069 adding file changes
1024 added 1 changesets with 1 changes to 1 files
1070 added 1 changesets with 1 changes to 1 files
1025 exporting bookmark @
1071 exporting bookmark @
1026
1072
1027 $ hg push -B @ ../unchanged-b
1073 $ hg push -B @ ../unchanged-b
1028 pushing to ../unchanged-b
1074 pushing to ../unchanged-b
1029 searching for changes
1075 searching for changes
1030 no changes found
1076 no changes found
1031 [1]
1077 [1]
1032
1078
1033 Pushing a really long bookmark should work fine (issue5165)
1079 Pushing a really long bookmark should work fine (issue5165)
1034 ===============================================
1080 ===============================================
1035
1081
1036 #if b2-binary
1082 #if b2-binary
1037 >>> with open('longname', 'w') as f:
1083 >>> with open('longname', 'w') as f:
1038 ... f.write('wat' * 100) and None
1084 ... f.write('wat' * 100) and None
1039 $ hg book `cat longname`
1085 $ hg book `cat longname`
1040 $ hg push -B `cat longname` ../unchanged-b
1086 $ hg push -B `cat longname` ../unchanged-b
1041 pushing to ../unchanged-b
1087 pushing to ../unchanged-b
1042 searching for changes
1088 searching for changes
1043 no changes found
1089 no changes found
1044 exporting bookmark (wat){100} (re)
1090 exporting bookmark (wat){100} (re)
1045 [1]
1091 [1]
1046 $ hg -R ../unchanged-b book --delete `cat longname`
1092 $ hg -R ../unchanged-b book --delete `cat longname`
1047
1093
1048 Test again but forcing bundle2 exchange to make sure that doesn't regress.
1094 Test again but forcing bundle2 exchange to make sure that doesn't regress.
1049
1095
1050 $ hg push -B `cat longname` ../unchanged-b --config devel.legacy.exchange=bundle1
1096 $ hg push -B `cat longname` ../unchanged-b --config devel.legacy.exchange=bundle1
1051 pushing to ../unchanged-b
1097 pushing to ../unchanged-b
1052 searching for changes
1098 searching for changes
1053 no changes found
1099 no changes found
1054 exporting bookmark (wat){100} (re)
1100 exporting bookmark (wat){100} (re)
1055 [1]
1101 [1]
1056 $ hg -R ../unchanged-b book --delete `cat longname`
1102 $ hg -R ../unchanged-b book --delete `cat longname`
1057 $ hg book --delete `cat longname`
1103 $ hg book --delete `cat longname`
1058 $ hg co @
1104 $ hg co @
1059 0 files updated, 0 files merged, 0 files removed, 0 files unresolved
1105 0 files updated, 0 files merged, 0 files removed, 0 files unresolved
1060 (activating bookmark @)
1106 (activating bookmark @)
1061 #endif
1107 #endif
1062
1108
1063 Check hook preventing push (issue4455)
1109 Check hook preventing push (issue4455)
1064 ======================================
1110 ======================================
1065
1111
1066 $ hg bookmarks
1112 $ hg bookmarks
1067 * @ 0:55482a6fb4b1
1113 * @ 0:55482a6fb4b1
1068 $ hg log -G
1114 $ hg log -G
1069 @ 0:55482a6fb4b1 initial
1115 @ 0:55482a6fb4b1 initial
1070
1116
1071 $ hg init ../issue4455-dest
1117 $ hg init ../issue4455-dest
1072 $ hg push ../issue4455-dest # changesets only
1118 $ hg push ../issue4455-dest # changesets only
1073 pushing to ../issue4455-dest
1119 pushing to ../issue4455-dest
1074 searching for changes
1120 searching for changes
1075 adding changesets
1121 adding changesets
1076 adding manifests
1122 adding manifests
1077 adding file changes
1123 adding file changes
1078 added 1 changesets with 1 changes to 1 files
1124 added 1 changesets with 1 changes to 1 files
1079 $ cat >> .hg/hgrc << EOF
1125 $ cat >> .hg/hgrc << EOF
1080 > [paths]
1126 > [paths]
1081 > local=../issue4455-dest/
1127 > local=../issue4455-dest/
1082 > ssh=ssh://user@dummy/issue4455-dest
1128 > ssh=ssh://user@dummy/issue4455-dest
1083 > http=http://localhost:$HGPORT/
1129 > http=http://localhost:$HGPORT/
1084 > [ui]
1130 > [ui]
1085 > ssh="$PYTHON" "$TESTDIR/dummyssh"
1131 > ssh="$PYTHON" "$TESTDIR/dummyssh"
1086 > EOF
1132 > EOF
1087 $ cat >> ../issue4455-dest/.hg/hgrc << EOF
1133 $ cat >> ../issue4455-dest/.hg/hgrc << EOF
1088 > [hooks]
1134 > [hooks]
1089 > prepushkey=false
1135 > prepushkey=false
1090 > [web]
1136 > [web]
1091 > push_ssl = false
1137 > push_ssl = false
1092 > allow_push = *
1138 > allow_push = *
1093 > EOF
1139 > EOF
1094 $ killdaemons.py
1140 $ killdaemons.py
1095 $ hg serve -R ../issue4455-dest -p $HGPORT -d --pid-file=../issue4455.pid -E ../issue4455-error.log
1141 $ hg serve -R ../issue4455-dest -p $HGPORT -d --pid-file=../issue4455.pid -E ../issue4455-error.log
1096 $ cat ../issue4455.pid >> $DAEMON_PIDS
1142 $ cat ../issue4455.pid >> $DAEMON_PIDS
1097
1143
1098 Local push
1144 Local push
1099 ----------
1145 ----------
1100
1146
1101 #if b2-pushkey
1147 #if b2-pushkey
1102
1148
1103 $ hg push -B @ local
1149 $ hg push -B @ local
1104 pushing to $TESTTMP/issue4455-dest
1150 pushing to $TESTTMP/issue4455-dest
1105 searching for changes
1151 searching for changes
1106 no changes found
1152 no changes found
1107 pushkey-abort: prepushkey hook exited with status 1
1153 pushkey-abort: prepushkey hook exited with status 1
1108 abort: exporting bookmark @ failed!
1154 abort: exporting bookmark @ failed!
1109 [255]
1155 [255]
1110
1156
1111 #endif
1157 #endif
1112 #if b2-binary
1158 #if b2-binary
1113
1159
1114 $ hg push -B @ local
1160 $ hg push -B @ local
1115 pushing to $TESTTMP/issue4455-dest
1161 pushing to $TESTTMP/issue4455-dest
1116 searching for changes
1162 searching for changes
1117 no changes found
1163 no changes found
1118 abort: prepushkey hook exited with status 1
1164 abort: prepushkey hook exited with status 1
1119 [255]
1165 [255]
1120
1166
1121 #endif
1167 #endif
1122
1168
1123 $ hg -R ../issue4455-dest/ bookmarks
1169 $ hg -R ../issue4455-dest/ bookmarks
1124 no bookmarks set
1170 no bookmarks set
1125
1171
1126 Using ssh
1172 Using ssh
1127 ---------
1173 ---------
1128
1174
1129 #if b2-pushkey
1175 #if b2-pushkey
1130
1176
1131 $ hg push -B @ ssh # bundle2+
1177 $ hg push -B @ ssh # bundle2+
1132 pushing to ssh://user@dummy/issue4455-dest
1178 pushing to ssh://user@dummy/issue4455-dest
1133 searching for changes
1179 searching for changes
1134 no changes found
1180 no changes found
1135 remote: pushkey-abort: prepushkey hook exited with status 1
1181 remote: pushkey-abort: prepushkey hook exited with status 1
1136 abort: exporting bookmark @ failed!
1182 abort: exporting bookmark @ failed!
1137 [255]
1183 [255]
1138
1184
1139 $ hg -R ../issue4455-dest/ bookmarks
1185 $ hg -R ../issue4455-dest/ bookmarks
1140 no bookmarks set
1186 no bookmarks set
1141
1187
1142 $ hg push -B @ ssh --config devel.legacy.exchange=bundle1
1188 $ hg push -B @ ssh --config devel.legacy.exchange=bundle1
1143 pushing to ssh://user@dummy/issue4455-dest
1189 pushing to ssh://user@dummy/issue4455-dest
1144 searching for changes
1190 searching for changes
1145 no changes found
1191 no changes found
1146 remote: pushkey-abort: prepushkey hook exited with status 1
1192 remote: pushkey-abort: prepushkey hook exited with status 1
1147 exporting bookmark @ failed!
1193 exporting bookmark @ failed!
1148 [1]
1194 [1]
1149
1195
1150 #endif
1196 #endif
1151 #if b2-binary
1197 #if b2-binary
1152
1198
1153 $ hg push -B @ ssh # bundle2+
1199 $ hg push -B @ ssh # bundle2+
1154 pushing to ssh://user@dummy/issue4455-dest
1200 pushing to ssh://user@dummy/issue4455-dest
1155 searching for changes
1201 searching for changes
1156 no changes found
1202 no changes found
1157 remote: prepushkey hook exited with status 1
1203 remote: prepushkey hook exited with status 1
1158 abort: push failed on remote
1204 abort: push failed on remote
1159 [255]
1205 [255]
1160
1206
1161 #endif
1207 #endif
1162
1208
1163 $ hg -R ../issue4455-dest/ bookmarks
1209 $ hg -R ../issue4455-dest/ bookmarks
1164 no bookmarks set
1210 no bookmarks set
1165
1211
1166 Using http
1212 Using http
1167 ----------
1213 ----------
1168
1214
1169 #if b2-pushkey
1215 #if b2-pushkey
1170 $ hg push -B @ http # bundle2+
1216 $ hg push -B @ http # bundle2+
1171 pushing to http://localhost:$HGPORT/
1217 pushing to http://localhost:$HGPORT/
1172 searching for changes
1218 searching for changes
1173 no changes found
1219 no changes found
1174 remote: pushkey-abort: prepushkey hook exited with status 1
1220 remote: pushkey-abort: prepushkey hook exited with status 1
1175 abort: exporting bookmark @ failed!
1221 abort: exporting bookmark @ failed!
1176 [255]
1222 [255]
1177
1223
1178 $ hg -R ../issue4455-dest/ bookmarks
1224 $ hg -R ../issue4455-dest/ bookmarks
1179 no bookmarks set
1225 no bookmarks set
1180
1226
1181 $ hg push -B @ http --config devel.legacy.exchange=bundle1
1227 $ hg push -B @ http --config devel.legacy.exchange=bundle1
1182 pushing to http://localhost:$HGPORT/
1228 pushing to http://localhost:$HGPORT/
1183 searching for changes
1229 searching for changes
1184 no changes found
1230 no changes found
1185 remote: pushkey-abort: prepushkey hook exited with status 1
1231 remote: pushkey-abort: prepushkey hook exited with status 1
1186 exporting bookmark @ failed!
1232 exporting bookmark @ failed!
1187 [1]
1233 [1]
1188
1234
1189 #endif
1235 #endif
1190
1236
1191 #if b2-binary
1237 #if b2-binary
1192
1238
1193 $ hg push -B @ ssh # bundle2+
1239 $ hg push -B @ ssh # bundle2+
1194 pushing to ssh://user@dummy/issue4455-dest
1240 pushing to ssh://user@dummy/issue4455-dest
1195 searching for changes
1241 searching for changes
1196 no changes found
1242 no changes found
1197 remote: prepushkey hook exited with status 1
1243 remote: prepushkey hook exited with status 1
1198 abort: push failed on remote
1244 abort: push failed on remote
1199 [255]
1245 [255]
1200
1246
1201 #endif
1247 #endif
1202
1248
1203 $ hg -R ../issue4455-dest/ bookmarks
1249 $ hg -R ../issue4455-dest/ bookmarks
1204 no bookmarks set
1250 no bookmarks set
1205
1251
1206 $ cd ..
1252 $ cd ..
1207
1253
1208 Test that pre-pushkey compat for bookmark works as expected (issue5777)
1254 Test that pre-pushkey compat for bookmark works as expected (issue5777)
1209
1255
1210 $ cat << EOF >> $HGRCPATH
1256 $ cat << EOF >> $HGRCPATH
1211 > [ui]
1257 > [ui]
1212 > ssh="$PYTHON" "$TESTDIR/dummyssh"
1258 > ssh="$PYTHON" "$TESTDIR/dummyssh"
1213 > [server]
1259 > [server]
1214 > bookmarks-pushkey-compat = yes
1260 > bookmarks-pushkey-compat = yes
1215 > EOF
1261 > EOF
1216
1262
1217 $ hg init server
1263 $ hg init server
1218 $ echo foo > server/a
1264 $ echo foo > server/a
1219 $ hg -R server book foo
1265 $ hg -R server book foo
1220 $ hg -R server commit -Am a
1266 $ hg -R server commit -Am a
1221 adding a
1267 adding a
1222 $ hg clone ssh://user@dummy/server client
1268 $ hg clone ssh://user@dummy/server client
1223 requesting all changes
1269 requesting all changes
1224 adding changesets
1270 adding changesets
1225 adding manifests
1271 adding manifests
1226 adding file changes
1272 adding file changes
1227 added 1 changesets with 1 changes to 1 files
1273 added 1 changesets with 1 changes to 1 files
1228 new changesets 79513d0d7716 (1 drafts)
1274 new changesets 79513d0d7716 (1 drafts)
1229 updating to branch default
1275 updating to branch default
1230 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
1276 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
1231
1277
1232 Forbid bookmark move on the server
1278 Forbid bookmark move on the server
1233
1279
1234 $ cat << EOF >> $TESTTMP/no-bm-move.sh
1280 $ cat << EOF >> $TESTTMP/no-bm-move.sh
1235 > #!/bin/sh
1281 > #!/bin/sh
1236 > echo \$HG_NAMESPACE | grep -v bookmarks
1282 > echo \$HG_NAMESPACE | grep -v bookmarks
1237 > EOF
1283 > EOF
1238 $ cat << EOF >> server/.hg/hgrc
1284 $ cat << EOF >> server/.hg/hgrc
1239 > [hooks]
1285 > [hooks]
1240 > prepushkey.no-bm-move= sh $TESTTMP/no-bm-move.sh
1286 > prepushkey.no-bm-move= sh $TESTTMP/no-bm-move.sh
1241 > EOF
1287 > EOF
1242
1288
1243 pushing changeset is okay
1289 pushing changeset is okay
1244
1290
1245 $ echo bar >> client/a
1291 $ echo bar >> client/a
1246 $ hg -R client commit -m b
1292 $ hg -R client commit -m b
1247 $ hg -R client push
1293 $ hg -R client push
1248 pushing to ssh://user@dummy/server
1294 pushing to ssh://user@dummy/server
1249 searching for changes
1295 searching for changes
1250 remote: adding changesets
1296 remote: adding changesets
1251 remote: adding manifests
1297 remote: adding manifests
1252 remote: adding file changes
1298 remote: adding file changes
1253 remote: added 1 changesets with 1 changes to 1 files
1299 remote: added 1 changesets with 1 changes to 1 files
1254
1300
1255 attempt to move the bookmark is rejected
1301 attempt to move the bookmark is rejected
1256
1302
1257 $ hg -R client book foo -r .
1303 $ hg -R client book foo -r .
1258 moving bookmark 'foo' forward from 79513d0d7716
1304 moving bookmark 'foo' forward from 79513d0d7716
1259
1305
1260 #if b2-pushkey
1306 #if b2-pushkey
1261 $ hg -R client push
1307 $ hg -R client push
1262 pushing to ssh://user@dummy/server
1308 pushing to ssh://user@dummy/server
1263 searching for changes
1309 searching for changes
1264 no changes found
1310 no changes found
1265 remote: pushkey-abort: prepushkey.no-bm-move hook exited with status 1
1311 remote: pushkey-abort: prepushkey.no-bm-move hook exited with status 1
1266 abort: updating bookmark foo failed!
1312 abort: updating bookmark foo failed!
1267 [255]
1313 [255]
1268 #endif
1314 #endif
1269 #if b2-binary
1315 #if b2-binary
1270 $ hg -R client push
1316 $ hg -R client push
1271 pushing to ssh://user@dummy/server
1317 pushing to ssh://user@dummy/server
1272 searching for changes
1318 searching for changes
1273 no changes found
1319 no changes found
1274 remote: prepushkey.no-bm-move hook exited with status 1
1320 remote: prepushkey.no-bm-move hook exited with status 1
1275 abort: push failed on remote
1321 abort: push failed on remote
1276 [255]
1322 [255]
1277 #endif
1323 #endif
General Comments 0
You need to be logged in to leave comments. Login now