##// END OF EJS Templates
test: use both bundle formats in test-bookmarks-pushpull...
Pierre-Yves David -
r25357:efa2621c default
parent child Browse files
Show More
@@ -1,729 +1,749
1 #require serve
1 #require serve
2
2
3 $ cat << EOF >> $HGRCPATH
3 $ cat << EOF >> $HGRCPATH
4 > [ui]
4 > [ui]
5 > logtemplate={rev}:{node|short} {desc|firstline}
5 > logtemplate={rev}:{node|short} {desc|firstline}
6 > [phases]
6 > [phases]
7 > publish=False
7 > publish=False
8 > [experimental]
8 > [experimental]
9 > evolution=createmarkers,exchange
9 > evolution=createmarkers,exchange
10 > # drop me once bundle2 is the default,
10 > # drop me once bundle2 is the default,
11 > # added to get test change early.
11 > # added to get test change early.
12 > bundle2-exp = True
12 > bundle2-exp = True
13 > EOF
13 > EOF
14
14
15 initialize
15 initialize
16
16
17 $ hg init a
17 $ hg init a
18 $ cd a
18 $ cd a
19 $ echo 'test' > test
19 $ echo 'test' > test
20 $ hg commit -Am'test'
20 $ hg commit -Am'test'
21 adding test
21 adding test
22
22
23 set bookmarks
23 set bookmarks
24
24
25 $ hg bookmark X
25 $ hg bookmark X
26 $ hg bookmark Y
26 $ hg bookmark Y
27 $ hg bookmark Z
27 $ hg bookmark Z
28
28
29 import bookmark by name
29 import bookmark by name
30
30
31 $ hg init ../b
31 $ hg init ../b
32 $ cd ../b
32 $ cd ../b
33 $ hg book Y
33 $ hg book Y
34 $ hg book
34 $ hg book
35 * Y -1:000000000000
35 * Y -1:000000000000
36 $ hg pull ../a
36 $ hg pull ../a
37 pulling from ../a
37 pulling from ../a
38 requesting all changes
38 requesting all changes
39 adding changesets
39 adding changesets
40 adding manifests
40 adding manifests
41 adding file changes
41 adding file changes
42 added 1 changesets with 1 changes to 1 files
42 added 1 changesets with 1 changes to 1 files
43 adding remote bookmark X
43 adding remote bookmark X
44 updating bookmark Y
44 updating bookmark Y
45 adding remote bookmark Z
45 adding remote bookmark Z
46 (run 'hg update' to get a working copy)
46 (run 'hg update' to get a working copy)
47 $ hg bookmarks
47 $ hg bookmarks
48 X 0:4e3505fd9583
48 X 0:4e3505fd9583
49 * Y 0:4e3505fd9583
49 * Y 0:4e3505fd9583
50 Z 0:4e3505fd9583
50 Z 0:4e3505fd9583
51 $ hg debugpushkey ../a namespaces
51 $ hg debugpushkey ../a namespaces
52 bookmarks
52 bookmarks
53 namespaces
53 namespaces
54 obsolete
54 obsolete
55 phases
55 phases
56 $ hg debugpushkey ../a bookmarks
56 $ hg debugpushkey ../a bookmarks
57 X 4e3505fd95835d721066b76e75dbb8cc554d7f77
57 X 4e3505fd95835d721066b76e75dbb8cc554d7f77
58 Y 4e3505fd95835d721066b76e75dbb8cc554d7f77
58 Y 4e3505fd95835d721066b76e75dbb8cc554d7f77
59 Z 4e3505fd95835d721066b76e75dbb8cc554d7f77
59 Z 4e3505fd95835d721066b76e75dbb8cc554d7f77
60
60
61 delete the bookmark to re-pull it
61 delete the bookmark to re-pull it
62
62
63 $ hg book -d X
63 $ hg book -d X
64 $ hg pull -B X ../a
64 $ hg pull -B X ../a
65 pulling from ../a
65 pulling from ../a
66 no changes found
66 no changes found
67 adding remote bookmark X
67 adding remote bookmark X
68
68
69 finally no-op pull
69 finally no-op pull
70
70
71 $ hg pull -B X ../a
71 $ hg pull -B X ../a
72 pulling from ../a
72 pulling from ../a
73 no changes found
73 no changes found
74 $ hg bookmark
74 $ hg bookmark
75 X 0:4e3505fd9583
75 X 0:4e3505fd9583
76 * Y 0:4e3505fd9583
76 * Y 0:4e3505fd9583
77 Z 0:4e3505fd9583
77 Z 0:4e3505fd9583
78
78
79 export bookmark by name
79 export bookmark by name
80
80
81 $ hg bookmark W
81 $ hg bookmark W
82 $ hg bookmark foo
82 $ hg bookmark foo
83 $ hg bookmark foobar
83 $ hg bookmark foobar
84 $ hg push -B W ../a
84 $ hg push -B W ../a
85 pushing to ../a
85 pushing to ../a
86 searching for changes
86 searching for changes
87 no changes found
87 no changes found
88 exporting bookmark W
88 exporting bookmark W
89 [1]
89 [1]
90 $ hg -R ../a bookmarks
90 $ hg -R ../a bookmarks
91 W -1:000000000000
91 W -1:000000000000
92 X 0:4e3505fd9583
92 X 0:4e3505fd9583
93 Y 0:4e3505fd9583
93 Y 0:4e3505fd9583
94 * Z 0:4e3505fd9583
94 * Z 0:4e3505fd9583
95
95
96 delete a remote bookmark
96 delete a remote bookmark
97
97
98 $ hg book -d W
98 $ hg book -d W
99 $ hg push -B W ../a
99 $ hg push -B W ../a
100 pushing to ../a
100 pushing to ../a
101 searching for changes
101 searching for changes
102 no changes found
102 no changes found
103 deleting remote bookmark W
103 deleting remote bookmark W
104 [1]
104 [1]
105
105
106 push/pull name that doesn't exist
106 push/pull name that doesn't exist
107
107
108 $ hg push -B badname ../a
108 $ hg push -B badname ../a
109 pushing to ../a
109 pushing to ../a
110 searching for changes
110 searching for changes
111 bookmark badname does not exist on the local or remote repository!
111 bookmark badname does not exist on the local or remote repository!
112 no changes found
112 no changes found
113 [2]
113 [2]
114 $ hg pull -B anotherbadname ../a
114 $ hg pull -B anotherbadname ../a
115 pulling from ../a
115 pulling from ../a
116 abort: remote bookmark anotherbadname not found!
116 abort: remote bookmark anotherbadname not found!
117 [255]
117 [255]
118
118
119 divergent bookmarks
119 divergent bookmarks
120
120
121 $ cd ../a
121 $ cd ../a
122 $ echo c1 > f1
122 $ echo c1 > f1
123 $ hg ci -Am1
123 $ hg ci -Am1
124 adding f1
124 adding f1
125 $ hg book -f @
125 $ hg book -f @
126 $ hg book -f X
126 $ hg book -f X
127 $ hg book
127 $ hg book
128 @ 1:0d2164f0ce0d
128 @ 1:0d2164f0ce0d
129 * X 1:0d2164f0ce0d
129 * X 1:0d2164f0ce0d
130 Y 0:4e3505fd9583
130 Y 0:4e3505fd9583
131 Z 1:0d2164f0ce0d
131 Z 1:0d2164f0ce0d
132
132
133 $ cd ../b
133 $ cd ../b
134 $ hg up
134 $ hg up
135 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
135 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
136 updating bookmark foobar
136 updating bookmark foobar
137 $ echo c2 > f2
137 $ echo c2 > f2
138 $ hg ci -Am2
138 $ hg ci -Am2
139 adding f2
139 adding f2
140 $ hg book -if @
140 $ hg book -if @
141 $ hg book -if X
141 $ hg book -if X
142 $ hg book
142 $ hg book
143 @ 1:9b140be10808
143 @ 1:9b140be10808
144 X 1:9b140be10808
144 X 1:9b140be10808
145 Y 0:4e3505fd9583
145 Y 0:4e3505fd9583
146 Z 0:4e3505fd9583
146 Z 0:4e3505fd9583
147 foo -1:000000000000
147 foo -1:000000000000
148 * foobar 1:9b140be10808
148 * foobar 1:9b140be10808
149
149
150 $ hg pull --config paths.foo=../a foo
150 $ hg pull --config paths.foo=../a foo
151 pulling from $TESTTMP/a (glob)
151 pulling from $TESTTMP/a (glob)
152 searching for changes
152 searching for changes
153 adding changesets
153 adding changesets
154 adding manifests
154 adding manifests
155 adding file changes
155 adding file changes
156 added 1 changesets with 1 changes to 1 files (+1 heads)
156 added 1 changesets with 1 changes to 1 files (+1 heads)
157 divergent bookmark @ stored as @foo
157 divergent bookmark @ stored as @foo
158 divergent bookmark X stored as X@foo
158 divergent bookmark X stored as X@foo
159 updating bookmark Z
159 updating bookmark Z
160 (run 'hg heads' to see heads, 'hg merge' to merge)
160 (run 'hg heads' to see heads, 'hg merge' to merge)
161 $ hg book
161 $ hg book
162 @ 1:9b140be10808
162 @ 1:9b140be10808
163 @foo 2:0d2164f0ce0d
163 @foo 2:0d2164f0ce0d
164 X 1:9b140be10808
164 X 1:9b140be10808
165 X@foo 2:0d2164f0ce0d
165 X@foo 2:0d2164f0ce0d
166 Y 0:4e3505fd9583
166 Y 0:4e3505fd9583
167 Z 2:0d2164f0ce0d
167 Z 2:0d2164f0ce0d
168 foo -1:000000000000
168 foo -1:000000000000
169 * foobar 1:9b140be10808
169 * foobar 1:9b140be10808
170
170
171 (test that too many divergence of bookmark)
171 (test that too many divergence of bookmark)
172
172
173 $ python $TESTDIR/seq.py 1 100 | while read i; do hg bookmarks -r 000000000000 "X@${i}"; done
173 $ python $TESTDIR/seq.py 1 100 | while read i; do hg bookmarks -r 000000000000 "X@${i}"; done
174 $ hg pull ../a
174 $ hg pull ../a
175 pulling from ../a
175 pulling from ../a
176 searching for changes
176 searching for changes
177 no changes found
177 no changes found
178 warning: failed to assign numbered name to divergent bookmark X
178 warning: failed to assign numbered name to divergent bookmark X
179 divergent bookmark @ stored as @1
179 divergent bookmark @ stored as @1
180 $ hg bookmarks | grep '^ X' | grep -v ':000000000000'
180 $ hg bookmarks | grep '^ X' | grep -v ':000000000000'
181 X 1:9b140be10808
181 X 1:9b140be10808
182 X@foo 2:0d2164f0ce0d
182 X@foo 2:0d2164f0ce0d
183
183
184 (test that remotely diverged bookmarks are reused if they aren't changed)
184 (test that remotely diverged bookmarks are reused if they aren't changed)
185
185
186 $ hg bookmarks | grep '^ @'
186 $ hg bookmarks | grep '^ @'
187 @ 1:9b140be10808
187 @ 1:9b140be10808
188 @1 2:0d2164f0ce0d
188 @1 2:0d2164f0ce0d
189 @foo 2:0d2164f0ce0d
189 @foo 2:0d2164f0ce0d
190 $ hg pull ../a
190 $ hg pull ../a
191 pulling from ../a
191 pulling from ../a
192 searching for changes
192 searching for changes
193 no changes found
193 no changes found
194 warning: failed to assign numbered name to divergent bookmark X
194 warning: failed to assign numbered name to divergent bookmark X
195 divergent bookmark @ stored as @1
195 divergent bookmark @ stored as @1
196 $ hg bookmarks | grep '^ @'
196 $ hg bookmarks | grep '^ @'
197 @ 1:9b140be10808
197 @ 1:9b140be10808
198 @1 2:0d2164f0ce0d
198 @1 2:0d2164f0ce0d
199 @foo 2:0d2164f0ce0d
199 @foo 2:0d2164f0ce0d
200
200
201 $ python $TESTDIR/seq.py 1 100 | while read i; do hg bookmarks -d "X@${i}"; done
201 $ python $TESTDIR/seq.py 1 100 | while read i; do hg bookmarks -d "X@${i}"; done
202 $ hg bookmarks -d "@1"
202 $ hg bookmarks -d "@1"
203
203
204 $ hg push -f ../a
204 $ hg push -f ../a
205 pushing to ../a
205 pushing to ../a
206 searching for changes
206 searching for changes
207 adding changesets
207 adding changesets
208 adding manifests
208 adding manifests
209 adding file changes
209 adding file changes
210 added 1 changesets with 1 changes to 1 files (+1 heads)
210 added 1 changesets with 1 changes to 1 files (+1 heads)
211 $ hg -R ../a book
211 $ hg -R ../a book
212 @ 1:0d2164f0ce0d
212 @ 1:0d2164f0ce0d
213 * X 1:0d2164f0ce0d
213 * X 1:0d2164f0ce0d
214 Y 0:4e3505fd9583
214 Y 0:4e3505fd9583
215 Z 1:0d2164f0ce0d
215 Z 1:0d2164f0ce0d
216
216
217 explicit pull should overwrite the local version (issue4439)
217 explicit pull should overwrite the local version (issue4439)
218
218
219 $ hg pull --config paths.foo=../a foo -B X
219 $ hg pull --config paths.foo=../a foo -B X
220 pulling from $TESTTMP/a (glob)
220 pulling from $TESTTMP/a (glob)
221 no changes found
221 no changes found
222 divergent bookmark @ stored as @foo
222 divergent bookmark @ stored as @foo
223 importing bookmark X
223 importing bookmark X
224
224
225 reinstall state for further testing:
225 reinstall state for further testing:
226
226
227 $ hg book -fr 9b140be10808 X
227 $ hg book -fr 9b140be10808 X
228
228
229 revsets should not ignore divergent bookmarks
229 revsets should not ignore divergent bookmarks
230
230
231 $ hg bookmark -fr 1 Z
231 $ hg bookmark -fr 1 Z
232 $ hg log -r 'bookmark()' --template '{rev}:{node|short} {bookmarks}\n'
232 $ hg log -r 'bookmark()' --template '{rev}:{node|short} {bookmarks}\n'
233 0:4e3505fd9583 Y
233 0:4e3505fd9583 Y
234 1:9b140be10808 @ X Z foobar
234 1:9b140be10808 @ X Z foobar
235 2:0d2164f0ce0d @foo X@foo
235 2:0d2164f0ce0d @foo X@foo
236 $ hg log -r 'bookmark("X@foo")' --template '{rev}:{node|short} {bookmarks}\n'
236 $ hg log -r 'bookmark("X@foo")' --template '{rev}:{node|short} {bookmarks}\n'
237 2:0d2164f0ce0d @foo X@foo
237 2:0d2164f0ce0d @foo X@foo
238 $ hg log -r 'bookmark("re:X@foo")' --template '{rev}:{node|short} {bookmarks}\n'
238 $ hg log -r 'bookmark("re:X@foo")' --template '{rev}:{node|short} {bookmarks}\n'
239 2:0d2164f0ce0d @foo X@foo
239 2:0d2164f0ce0d @foo X@foo
240
240
241 update a remote bookmark from a non-head to a head
241 update a remote bookmark from a non-head to a head
242
242
243 $ hg up -q Y
243 $ hg up -q Y
244 $ echo c3 > f2
244 $ echo c3 > f2
245 $ hg ci -Am3
245 $ hg ci -Am3
246 adding f2
246 adding f2
247 created new head
247 created new head
248 $ hg push ../a
248 $ hg push ../a
249 pushing to ../a
249 pushing to ../a
250 searching for changes
250 searching for changes
251 adding changesets
251 adding changesets
252 adding manifests
252 adding manifests
253 adding file changes
253 adding file changes
254 added 1 changesets with 1 changes to 1 files (+1 heads)
254 added 1 changesets with 1 changes to 1 files (+1 heads)
255 updating bookmark Y
255 updating bookmark Y
256 $ hg -R ../a book
256 $ hg -R ../a book
257 @ 1:0d2164f0ce0d
257 @ 1:0d2164f0ce0d
258 * X 1:0d2164f0ce0d
258 * X 1:0d2164f0ce0d
259 Y 3:f6fc62dde3c0
259 Y 3:f6fc62dde3c0
260 Z 1:0d2164f0ce0d
260 Z 1:0d2164f0ce0d
261
261
262 update a bookmark in the middle of a client pulling changes
262 update a bookmark in the middle of a client pulling changes
263
263
264 $ cd ..
264 $ cd ..
265 $ hg clone -q a pull-race
265 $ hg clone -q a pull-race
266 $ hg clone -q pull-race pull-race2
266 $ hg clone -q pull-race pull-race2
267 $ cd pull-race
267 $ cd pull-race
268 $ hg up -q Y
268 $ hg up -q Y
269 $ echo c4 > f2
269 $ echo c4 > f2
270 $ hg ci -Am4
270 $ hg ci -Am4
271 $ echo c5 > f3
271 $ echo c5 > f3
272 $ cat <<EOF > .hg/hgrc
272 $ cat <<EOF > .hg/hgrc
273 > [hooks]
273 > [hooks]
274 > outgoing.makecommit = hg ci -Am5; echo committed in pull-race
274 > outgoing.makecommit = hg ci -Am5; echo committed in pull-race
275 > EOF
275 > EOF
276 $ cd ../pull-race2
276 $ cd ../pull-race2
277 $ hg pull
277 $ hg pull
278 pulling from $TESTTMP/pull-race (glob)
278 pulling from $TESTTMP/pull-race (glob)
279 searching for changes
279 searching for changes
280 adding f3
280 adding f3
281 committed in pull-race
281 committed in pull-race
282 adding changesets
282 adding changesets
283 adding manifests
283 adding manifests
284 adding file changes
284 adding file changes
285 added 1 changesets with 1 changes to 1 files
285 added 1 changesets with 1 changes to 1 files
286 updating bookmark Y
286 updating bookmark Y
287 (run 'hg update' to get a working copy)
287 (run 'hg update' to get a working copy)
288 $ hg book
288 $ hg book
289 * @ 1:0d2164f0ce0d
289 * @ 1:0d2164f0ce0d
290 X 1:0d2164f0ce0d
290 X 1:0d2164f0ce0d
291 Y 4:b0a5eff05604
291 Y 4:b0a5eff05604
292 Z 1:0d2164f0ce0d
292 Z 1:0d2164f0ce0d
293 $ cd ../b
293 $ cd ../b
294
294
295 diverging a remote bookmark fails
295 diverging a remote bookmark fails
296
296
297 $ hg up -q 4e3505fd9583
297 $ hg up -q 4e3505fd9583
298 $ echo c4 > f2
298 $ echo c4 > f2
299 $ hg ci -Am4
299 $ hg ci -Am4
300 adding f2
300 adding f2
301 created new head
301 created new head
302 $ echo c5 > f2
302 $ echo c5 > f2
303 $ hg ci -Am5
303 $ hg ci -Am5
304 $ hg log -G
304 $ hg log -G
305 @ 5:c922c0139ca0 5
305 @ 5:c922c0139ca0 5
306 |
306 |
307 o 4:4efff6d98829 4
307 o 4:4efff6d98829 4
308 |
308 |
309 | o 3:f6fc62dde3c0 3
309 | o 3:f6fc62dde3c0 3
310 |/
310 |/
311 | o 2:0d2164f0ce0d 1
311 | o 2:0d2164f0ce0d 1
312 |/
312 |/
313 | o 1:9b140be10808 2
313 | o 1:9b140be10808 2
314 |/
314 |/
315 o 0:4e3505fd9583 test
315 o 0:4e3505fd9583 test
316
316
317
317
318 $ hg book -f Y
318 $ hg book -f Y
319
319
320 $ cat <<EOF > ../a/.hg/hgrc
320 $ cat <<EOF > ../a/.hg/hgrc
321 > [web]
321 > [web]
322 > push_ssl = false
322 > push_ssl = false
323 > allow_push = *
323 > allow_push = *
324 > EOF
324 > EOF
325
325
326 $ hg -R ../a serve -p $HGPORT2 -d --pid-file=../hg2.pid
326 $ hg -R ../a serve -p $HGPORT2 -d --pid-file=../hg2.pid
327 $ cat ../hg2.pid >> $DAEMON_PIDS
327 $ cat ../hg2.pid >> $DAEMON_PIDS
328
328
329 $ hg push http://localhost:$HGPORT2/
329 $ hg push http://localhost:$HGPORT2/
330 pushing to http://localhost:$HGPORT2/
330 pushing to http://localhost:$HGPORT2/
331 searching for changes
331 searching for changes
332 abort: push creates new remote head c922c0139ca0 with bookmark 'Y'!
332 abort: push creates new remote head c922c0139ca0 with bookmark 'Y'!
333 (merge or see "hg help push" for details about pushing new heads)
333 (merge or see "hg help push" for details about pushing new heads)
334 [255]
334 [255]
335 $ hg -R ../a book
335 $ hg -R ../a book
336 @ 1:0d2164f0ce0d
336 @ 1:0d2164f0ce0d
337 * X 1:0d2164f0ce0d
337 * X 1:0d2164f0ce0d
338 Y 3:f6fc62dde3c0
338 Y 3:f6fc62dde3c0
339 Z 1:0d2164f0ce0d
339 Z 1:0d2164f0ce0d
340
340
341
341
342 Unrelated marker does not alter the decision
342 Unrelated marker does not alter the decision
343
343
344 $ hg debugobsolete aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
344 $ hg debugobsolete aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
345 $ hg push http://localhost:$HGPORT2/
345 $ hg push http://localhost:$HGPORT2/
346 pushing to http://localhost:$HGPORT2/
346 pushing to http://localhost:$HGPORT2/
347 searching for changes
347 searching for changes
348 abort: push creates new remote head c922c0139ca0 with bookmark 'Y'!
348 abort: push creates new remote head c922c0139ca0 with bookmark 'Y'!
349 (merge or see "hg help push" for details about pushing new heads)
349 (merge or see "hg help push" for details about pushing new heads)
350 [255]
350 [255]
351 $ hg -R ../a book
351 $ hg -R ../a book
352 @ 1:0d2164f0ce0d
352 @ 1:0d2164f0ce0d
353 * X 1:0d2164f0ce0d
353 * X 1:0d2164f0ce0d
354 Y 3:f6fc62dde3c0
354 Y 3:f6fc62dde3c0
355 Z 1:0d2164f0ce0d
355 Z 1:0d2164f0ce0d
356
356
357 Update to a successor works
357 Update to a successor works
358
358
359 $ hg id --debug -r 3
359 $ hg id --debug -r 3
360 f6fc62dde3c0771e29704af56ba4d8af77abcc2f
360 f6fc62dde3c0771e29704af56ba4d8af77abcc2f
361 $ hg id --debug -r 4
361 $ hg id --debug -r 4
362 4efff6d98829d9c824c621afd6e3f01865f5439f
362 4efff6d98829d9c824c621afd6e3f01865f5439f
363 $ hg id --debug -r 5
363 $ hg id --debug -r 5
364 c922c0139ca03858f655e4a2af4dd02796a63969 tip Y
364 c922c0139ca03858f655e4a2af4dd02796a63969 tip Y
365 $ hg debugobsolete f6fc62dde3c0771e29704af56ba4d8af77abcc2f cccccccccccccccccccccccccccccccccccccccc
365 $ hg debugobsolete f6fc62dde3c0771e29704af56ba4d8af77abcc2f cccccccccccccccccccccccccccccccccccccccc
366 $ hg debugobsolete cccccccccccccccccccccccccccccccccccccccc 4efff6d98829d9c824c621afd6e3f01865f5439f
366 $ hg debugobsolete cccccccccccccccccccccccccccccccccccccccc 4efff6d98829d9c824c621afd6e3f01865f5439f
367 $ hg push http://localhost:$HGPORT2/
367 $ hg push http://localhost:$HGPORT2/
368 pushing to http://localhost:$HGPORT2/
368 pushing to http://localhost:$HGPORT2/
369 searching for changes
369 searching for changes
370 remote: adding changesets
370 remote: adding changesets
371 remote: adding manifests
371 remote: adding manifests
372 remote: adding file changes
372 remote: adding file changes
373 remote: added 2 changesets with 2 changes to 1 files (+1 heads)
373 remote: added 2 changesets with 2 changes to 1 files (+1 heads)
374 remote: 2 new obsolescence markers
374 remote: 2 new obsolescence markers
375 updating bookmark Y
375 updating bookmark Y
376 $ hg -R ../a book
376 $ hg -R ../a book
377 @ 1:0d2164f0ce0d
377 @ 1:0d2164f0ce0d
378 * X 1:0d2164f0ce0d
378 * X 1:0d2164f0ce0d
379 Y 5:c922c0139ca0
379 Y 5:c922c0139ca0
380 Z 1:0d2164f0ce0d
380 Z 1:0d2164f0ce0d
381
381
382 hgweb
382 hgweb
383
383
384 $ cat <<EOF > .hg/hgrc
384 $ cat <<EOF > .hg/hgrc
385 > [web]
385 > [web]
386 > push_ssl = false
386 > push_ssl = false
387 > allow_push = *
387 > allow_push = *
388 > EOF
388 > EOF
389
389
390 $ hg serve -p $HGPORT -d --pid-file=../hg.pid -E errors.log
390 $ hg serve -p $HGPORT -d --pid-file=../hg.pid -E errors.log
391 $ cat ../hg.pid >> $DAEMON_PIDS
391 $ cat ../hg.pid >> $DAEMON_PIDS
392 $ cd ../a
392 $ cd ../a
393
393
394 $ hg debugpushkey http://localhost:$HGPORT/ namespaces
394 $ hg debugpushkey http://localhost:$HGPORT/ namespaces
395 bookmarks
395 bookmarks
396 namespaces
396 namespaces
397 obsolete
397 obsolete
398 phases
398 phases
399 $ hg debugpushkey http://localhost:$HGPORT/ bookmarks
399 $ hg debugpushkey http://localhost:$HGPORT/ bookmarks
400 @ 9b140be1080824d768c5a4691a564088eede71f9
400 @ 9b140be1080824d768c5a4691a564088eede71f9
401 X 9b140be1080824d768c5a4691a564088eede71f9
401 X 9b140be1080824d768c5a4691a564088eede71f9
402 Y c922c0139ca03858f655e4a2af4dd02796a63969
402 Y c922c0139ca03858f655e4a2af4dd02796a63969
403 Z 9b140be1080824d768c5a4691a564088eede71f9
403 Z 9b140be1080824d768c5a4691a564088eede71f9
404 foo 0000000000000000000000000000000000000000
404 foo 0000000000000000000000000000000000000000
405 foobar 9b140be1080824d768c5a4691a564088eede71f9
405 foobar 9b140be1080824d768c5a4691a564088eede71f9
406 $ hg out -B http://localhost:$HGPORT/
406 $ hg out -B http://localhost:$HGPORT/
407 comparing with http://localhost:$HGPORT/
407 comparing with http://localhost:$HGPORT/
408 searching for changed bookmarks
408 searching for changed bookmarks
409 @ 0d2164f0ce0d
409 @ 0d2164f0ce0d
410 X 0d2164f0ce0d
410 X 0d2164f0ce0d
411 Z 0d2164f0ce0d
411 Z 0d2164f0ce0d
412 foo
412 foo
413 foobar
413 foobar
414 $ hg push -B Z http://localhost:$HGPORT/
414 $ hg push -B Z http://localhost:$HGPORT/
415 pushing to http://localhost:$HGPORT/
415 pushing to http://localhost:$HGPORT/
416 searching for changes
416 searching for changes
417 no changes found
417 no changes found
418 updating bookmark Z
418 updating bookmark Z
419 [1]
419 [1]
420 $ hg book -d Z
420 $ hg book -d Z
421 $ hg in -B http://localhost:$HGPORT/
421 $ hg in -B http://localhost:$HGPORT/
422 comparing with http://localhost:$HGPORT/
422 comparing with http://localhost:$HGPORT/
423 searching for changed bookmarks
423 searching for changed bookmarks
424 @ 9b140be10808
424 @ 9b140be10808
425 X 9b140be10808
425 X 9b140be10808
426 Z 0d2164f0ce0d
426 Z 0d2164f0ce0d
427 foo 000000000000
427 foo 000000000000
428 foobar 9b140be10808
428 foobar 9b140be10808
429 $ hg pull -B Z http://localhost:$HGPORT/
429 $ hg pull -B Z http://localhost:$HGPORT/
430 pulling from http://localhost:$HGPORT/
430 pulling from http://localhost:$HGPORT/
431 no changes found
431 no changes found
432 divergent bookmark @ stored as @1
432 divergent bookmark @ stored as @1
433 divergent bookmark X stored as X@1
433 divergent bookmark X stored as X@1
434 adding remote bookmark Z
434 adding remote bookmark Z
435 adding remote bookmark foo
435 adding remote bookmark foo
436 adding remote bookmark foobar
436 adding remote bookmark foobar
437 $ hg clone http://localhost:$HGPORT/ cloned-bookmarks
437 $ hg clone http://localhost:$HGPORT/ cloned-bookmarks
438 requesting all changes
438 requesting all changes
439 adding changesets
439 adding changesets
440 adding manifests
440 adding manifests
441 adding file changes
441 adding file changes
442 added 5 changesets with 5 changes to 3 files (+2 heads)
442 added 5 changesets with 5 changes to 3 files (+2 heads)
443 2 new obsolescence markers
443 2 new obsolescence markers
444 updating to bookmark @
444 updating to bookmark @
445 2 files updated, 0 files merged, 0 files removed, 0 files unresolved
445 2 files updated, 0 files merged, 0 files removed, 0 files unresolved
446 $ hg -R cloned-bookmarks bookmarks
446 $ hg -R cloned-bookmarks bookmarks
447 * @ 1:9b140be10808
447 * @ 1:9b140be10808
448 X 1:9b140be10808
448 X 1:9b140be10808
449 Y 4:c922c0139ca0
449 Y 4:c922c0139ca0
450 Z 2:0d2164f0ce0d
450 Z 2:0d2164f0ce0d
451 foo -1:000000000000
451 foo -1:000000000000
452 foobar 1:9b140be10808
452 foobar 1:9b140be10808
453
453
454 $ cd ..
454 $ cd ..
455
455
456 Test to show result of bookmarks comparision
456 Test to show result of bookmarks comparision
457
457
458 $ mkdir bmcomparison
458 $ mkdir bmcomparison
459 $ cd bmcomparison
459 $ cd bmcomparison
460
460
461 $ hg init source
461 $ hg init source
462 $ hg -R source debugbuilddag '+2*2*3*4'
462 $ hg -R source debugbuilddag '+2*2*3*4'
463 $ hg -R source log -G --template '{rev}:{node|short}'
463 $ hg -R source log -G --template '{rev}:{node|short}'
464 o 4:e7bd5218ca15
464 o 4:e7bd5218ca15
465 |
465 |
466 | o 3:6100d3090acf
466 | o 3:6100d3090acf
467 |/
467 |/
468 | o 2:fa942426a6fd
468 | o 2:fa942426a6fd
469 |/
469 |/
470 | o 1:66f7d451a68b
470 | o 1:66f7d451a68b
471 |/
471 |/
472 o 0:1ea73414a91b
472 o 0:1ea73414a91b
473
473
474 $ hg -R source bookmarks -r 0 SAME
474 $ hg -R source bookmarks -r 0 SAME
475 $ hg -R source bookmarks -r 0 ADV_ON_REPO1
475 $ hg -R source bookmarks -r 0 ADV_ON_REPO1
476 $ hg -R source bookmarks -r 0 ADV_ON_REPO2
476 $ hg -R source bookmarks -r 0 ADV_ON_REPO2
477 $ hg -R source bookmarks -r 0 DIFF_ADV_ON_REPO1
477 $ hg -R source bookmarks -r 0 DIFF_ADV_ON_REPO1
478 $ hg -R source bookmarks -r 0 DIFF_ADV_ON_REPO2
478 $ hg -R source bookmarks -r 0 DIFF_ADV_ON_REPO2
479 $ hg -R source bookmarks -r 1 DIVERGED
479 $ hg -R source bookmarks -r 1 DIVERGED
480
480
481 $ hg clone -U source repo1
481 $ hg clone -U source repo1
482
482
483 (test that incoming/outgoing exit with 1, if there is no bookmark to
483 (test that incoming/outgoing exit with 1, if there is no bookmark to
484 be excahnged)
484 be excahnged)
485
485
486 $ hg -R repo1 incoming -B
486 $ hg -R repo1 incoming -B
487 comparing with $TESTTMP/bmcomparison/source
487 comparing with $TESTTMP/bmcomparison/source
488 searching for changed bookmarks
488 searching for changed bookmarks
489 no changed bookmarks found
489 no changed bookmarks found
490 [1]
490 [1]
491 $ hg -R repo1 outgoing -B
491 $ hg -R repo1 outgoing -B
492 comparing with $TESTTMP/bmcomparison/source
492 comparing with $TESTTMP/bmcomparison/source
493 searching for changed bookmarks
493 searching for changed bookmarks
494 no changed bookmarks found
494 no changed bookmarks found
495 [1]
495 [1]
496
496
497 $ hg -R repo1 bookmarks -f -r 1 ADD_ON_REPO1
497 $ hg -R repo1 bookmarks -f -r 1 ADD_ON_REPO1
498 $ hg -R repo1 bookmarks -f -r 2 ADV_ON_REPO1
498 $ hg -R repo1 bookmarks -f -r 2 ADV_ON_REPO1
499 $ hg -R repo1 bookmarks -f -r 3 DIFF_ADV_ON_REPO1
499 $ hg -R repo1 bookmarks -f -r 3 DIFF_ADV_ON_REPO1
500 $ hg -R repo1 bookmarks -f -r 3 DIFF_DIVERGED
500 $ hg -R repo1 bookmarks -f -r 3 DIFF_DIVERGED
501 $ hg -R repo1 -q --config extensions.mq= strip 4
501 $ hg -R repo1 -q --config extensions.mq= strip 4
502 $ hg -R repo1 log -G --template '{node|short} ({bookmarks})'
502 $ hg -R repo1 log -G --template '{node|short} ({bookmarks})'
503 o 6100d3090acf (DIFF_ADV_ON_REPO1 DIFF_DIVERGED)
503 o 6100d3090acf (DIFF_ADV_ON_REPO1 DIFF_DIVERGED)
504 |
504 |
505 | o fa942426a6fd (ADV_ON_REPO1)
505 | o fa942426a6fd (ADV_ON_REPO1)
506 |/
506 |/
507 | o 66f7d451a68b (ADD_ON_REPO1 DIVERGED)
507 | o 66f7d451a68b (ADD_ON_REPO1 DIVERGED)
508 |/
508 |/
509 o 1ea73414a91b (ADV_ON_REPO2 DIFF_ADV_ON_REPO2 SAME)
509 o 1ea73414a91b (ADV_ON_REPO2 DIFF_ADV_ON_REPO2 SAME)
510
510
511
511
512 $ hg clone -U source repo2
512 $ hg clone -U source repo2
513 $ hg -R repo2 bookmarks -f -r 1 ADD_ON_REPO2
513 $ hg -R repo2 bookmarks -f -r 1 ADD_ON_REPO2
514 $ hg -R repo2 bookmarks -f -r 1 ADV_ON_REPO2
514 $ hg -R repo2 bookmarks -f -r 1 ADV_ON_REPO2
515 $ hg -R repo2 bookmarks -f -r 2 DIVERGED
515 $ hg -R repo2 bookmarks -f -r 2 DIVERGED
516 $ hg -R repo2 bookmarks -f -r 4 DIFF_ADV_ON_REPO2
516 $ hg -R repo2 bookmarks -f -r 4 DIFF_ADV_ON_REPO2
517 $ hg -R repo2 bookmarks -f -r 4 DIFF_DIVERGED
517 $ hg -R repo2 bookmarks -f -r 4 DIFF_DIVERGED
518 $ hg -R repo2 -q --config extensions.mq= strip 3
518 $ hg -R repo2 -q --config extensions.mq= strip 3
519 $ hg -R repo2 log -G --template '{node|short} ({bookmarks})'
519 $ hg -R repo2 log -G --template '{node|short} ({bookmarks})'
520 o e7bd5218ca15 (DIFF_ADV_ON_REPO2 DIFF_DIVERGED)
520 o e7bd5218ca15 (DIFF_ADV_ON_REPO2 DIFF_DIVERGED)
521 |
521 |
522 | o fa942426a6fd (DIVERGED)
522 | o fa942426a6fd (DIVERGED)
523 |/
523 |/
524 | o 66f7d451a68b (ADD_ON_REPO2 ADV_ON_REPO2)
524 | o 66f7d451a68b (ADD_ON_REPO2 ADV_ON_REPO2)
525 |/
525 |/
526 o 1ea73414a91b (ADV_ON_REPO1 DIFF_ADV_ON_REPO1 SAME)
526 o 1ea73414a91b (ADV_ON_REPO1 DIFF_ADV_ON_REPO1 SAME)
527
527
528
528
529 (test that difference of bookmarks between repositories are fully shown)
529 (test that difference of bookmarks between repositories are fully shown)
530
530
531 $ hg -R repo1 incoming -B repo2 -v
531 $ hg -R repo1 incoming -B repo2 -v
532 comparing with repo2
532 comparing with repo2
533 searching for changed bookmarks
533 searching for changed bookmarks
534 ADD_ON_REPO2 66f7d451a68b added
534 ADD_ON_REPO2 66f7d451a68b added
535 ADV_ON_REPO2 66f7d451a68b advanced
535 ADV_ON_REPO2 66f7d451a68b advanced
536 DIFF_ADV_ON_REPO2 e7bd5218ca15 changed
536 DIFF_ADV_ON_REPO2 e7bd5218ca15 changed
537 DIFF_DIVERGED e7bd5218ca15 changed
537 DIFF_DIVERGED e7bd5218ca15 changed
538 DIVERGED fa942426a6fd diverged
538 DIVERGED fa942426a6fd diverged
539 $ hg -R repo1 outgoing -B repo2 -v
539 $ hg -R repo1 outgoing -B repo2 -v
540 comparing with repo2
540 comparing with repo2
541 searching for changed bookmarks
541 searching for changed bookmarks
542 ADD_ON_REPO1 66f7d451a68b added
542 ADD_ON_REPO1 66f7d451a68b added
543 ADD_ON_REPO2 deleted
543 ADD_ON_REPO2 deleted
544 ADV_ON_REPO1 fa942426a6fd advanced
544 ADV_ON_REPO1 fa942426a6fd advanced
545 DIFF_ADV_ON_REPO1 6100d3090acf advanced
545 DIFF_ADV_ON_REPO1 6100d3090acf advanced
546 DIFF_ADV_ON_REPO2 1ea73414a91b changed
546 DIFF_ADV_ON_REPO2 1ea73414a91b changed
547 DIFF_DIVERGED 6100d3090acf changed
547 DIFF_DIVERGED 6100d3090acf changed
548 DIVERGED 66f7d451a68b diverged
548 DIVERGED 66f7d451a68b diverged
549
549
550 $ hg -R repo2 incoming -B repo1 -v
550 $ hg -R repo2 incoming -B repo1 -v
551 comparing with repo1
551 comparing with repo1
552 searching for changed bookmarks
552 searching for changed bookmarks
553 ADD_ON_REPO1 66f7d451a68b added
553 ADD_ON_REPO1 66f7d451a68b added
554 ADV_ON_REPO1 fa942426a6fd advanced
554 ADV_ON_REPO1 fa942426a6fd advanced
555 DIFF_ADV_ON_REPO1 6100d3090acf changed
555 DIFF_ADV_ON_REPO1 6100d3090acf changed
556 DIFF_DIVERGED 6100d3090acf changed
556 DIFF_DIVERGED 6100d3090acf changed
557 DIVERGED 66f7d451a68b diverged
557 DIVERGED 66f7d451a68b diverged
558 $ hg -R repo2 outgoing -B repo1 -v
558 $ hg -R repo2 outgoing -B repo1 -v
559 comparing with repo1
559 comparing with repo1
560 searching for changed bookmarks
560 searching for changed bookmarks
561 ADD_ON_REPO1 deleted
561 ADD_ON_REPO1 deleted
562 ADD_ON_REPO2 66f7d451a68b added
562 ADD_ON_REPO2 66f7d451a68b added
563 ADV_ON_REPO2 66f7d451a68b advanced
563 ADV_ON_REPO2 66f7d451a68b advanced
564 DIFF_ADV_ON_REPO1 1ea73414a91b changed
564 DIFF_ADV_ON_REPO1 1ea73414a91b changed
565 DIFF_ADV_ON_REPO2 e7bd5218ca15 advanced
565 DIFF_ADV_ON_REPO2 e7bd5218ca15 advanced
566 DIFF_DIVERGED e7bd5218ca15 changed
566 DIFF_DIVERGED e7bd5218ca15 changed
567 DIVERGED fa942426a6fd diverged
567 DIVERGED fa942426a6fd diverged
568
568
569 $ cd ..
569 $ cd ..
570
570
571 Pushing a bookmark should only push the changes required by that
571 Pushing a bookmark should only push the changes required by that
572 bookmark, not all outgoing changes:
572 bookmark, not all outgoing changes:
573 $ hg clone http://localhost:$HGPORT/ addmarks
573 $ hg clone http://localhost:$HGPORT/ addmarks
574 requesting all changes
574 requesting all changes
575 adding changesets
575 adding changesets
576 adding manifests
576 adding manifests
577 adding file changes
577 adding file changes
578 added 5 changesets with 5 changes to 3 files (+2 heads)
578 added 5 changesets with 5 changes to 3 files (+2 heads)
579 2 new obsolescence markers
579 2 new obsolescence markers
580 updating to bookmark @
580 updating to bookmark @
581 2 files updated, 0 files merged, 0 files removed, 0 files unresolved
581 2 files updated, 0 files merged, 0 files removed, 0 files unresolved
582 $ cd addmarks
582 $ cd addmarks
583 $ echo foo > foo
583 $ echo foo > foo
584 $ hg add foo
584 $ hg add foo
585 $ hg commit -m 'add foo'
585 $ hg commit -m 'add foo'
586 $ echo bar > bar
586 $ echo bar > bar
587 $ hg add bar
587 $ hg add bar
588 $ hg commit -m 'add bar'
588 $ hg commit -m 'add bar'
589 $ hg co "tip^"
589 $ hg co "tip^"
590 0 files updated, 0 files merged, 1 files removed, 0 files unresolved
590 0 files updated, 0 files merged, 1 files removed, 0 files unresolved
591 (leaving bookmark @)
591 (leaving bookmark @)
592 $ hg book add-foo
592 $ hg book add-foo
593 $ hg book -r tip add-bar
593 $ hg book -r tip add-bar
594 Note: this push *must* push only a single changeset, as that's the point
594 Note: this push *must* push only a single changeset, as that's the point
595 of this test.
595 of this test.
596 $ hg push -B add-foo --traceback
596 $ hg push -B add-foo --traceback
597 pushing to http://localhost:$HGPORT/
597 pushing to http://localhost:$HGPORT/
598 searching for changes
598 searching for changes
599 remote: adding changesets
599 remote: adding changesets
600 remote: adding manifests
600 remote: adding manifests
601 remote: adding file changes
601 remote: adding file changes
602 remote: added 1 changesets with 1 changes to 1 files
602 remote: added 1 changesets with 1 changes to 1 files
603 exporting bookmark add-foo
603 exporting bookmark add-foo
604
604
605 pushing a new bookmark on a new head does not require -f if -B is specified
605 pushing a new bookmark on a new head does not require -f if -B is specified
606
606
607 $ hg up -q X
607 $ hg up -q X
608 $ hg book W
608 $ hg book W
609 $ echo c5 > f2
609 $ echo c5 > f2
610 $ hg ci -Am5
610 $ hg ci -Am5
611 created new head
611 created new head
612 $ hg push -B W
612 $ hg push -B W
613 pushing to http://localhost:$HGPORT/
613 pushing to http://localhost:$HGPORT/
614 searching for changes
614 searching for changes
615 remote: adding changesets
615 remote: adding changesets
616 remote: adding manifests
616 remote: adding manifests
617 remote: adding file changes
617 remote: adding file changes
618 remote: added 1 changesets with 1 changes to 1 files (+1 heads)
618 remote: added 1 changesets with 1 changes to 1 files (+1 heads)
619 exporting bookmark W
619 exporting bookmark W
620 $ hg -R ../b id -r W
620 $ hg -R ../b id -r W
621 cc978a373a53 tip W
621 cc978a373a53 tip W
622
622
623 Check summary output for incoming/outgoing bookmarks
623 Check summary output for incoming/outgoing bookmarks
624
624
625 $ hg bookmarks -d X
625 $ hg bookmarks -d X
626 $ hg bookmarks -d Y
626 $ hg bookmarks -d Y
627 $ hg summary --remote | grep '^remote:'
627 $ hg summary --remote | grep '^remote:'
628 remote: *, 2 incoming bookmarks, 1 outgoing bookmarks (glob)
628 remote: *, 2 incoming bookmarks, 1 outgoing bookmarks (glob)
629
629
630 $ cd ..
630 $ cd ..
631
631
632 pushing an unchanged bookmark should result in no changes
632 pushing an unchanged bookmark should result in no changes
633
633
634 $ hg init unchanged-a
634 $ hg init unchanged-a
635 $ hg init unchanged-b
635 $ hg init unchanged-b
636 $ cd unchanged-a
636 $ cd unchanged-a
637 $ echo initial > foo
637 $ echo initial > foo
638 $ hg commit -A -m initial
638 $ hg commit -A -m initial
639 adding foo
639 adding foo
640 $ hg bookmark @
640 $ hg bookmark @
641 $ hg push -B @ ../unchanged-b
641 $ hg push -B @ ../unchanged-b
642 pushing to ../unchanged-b
642 pushing to ../unchanged-b
643 searching for changes
643 searching for changes
644 adding changesets
644 adding changesets
645 adding manifests
645 adding manifests
646 adding file changes
646 adding file changes
647 added 1 changesets with 1 changes to 1 files
647 added 1 changesets with 1 changes to 1 files
648 exporting bookmark @
648 exporting bookmark @
649
649
650 $ hg push -B @ ../unchanged-b
650 $ hg push -B @ ../unchanged-b
651 pushing to ../unchanged-b
651 pushing to ../unchanged-b
652 searching for changes
652 searching for changes
653 no changes found
653 no changes found
654 [1]
654 [1]
655
655
656
656
657 Check hook preventing push (issue4455)
657 Check hook preventing push (issue4455)
658 ======================================
658 ======================================
659
659
660 $ hg bookmarks
660 $ hg bookmarks
661 * @ 0:55482a6fb4b1
661 * @ 0:55482a6fb4b1
662 $ hg log -G
662 $ hg log -G
663 @ 0:55482a6fb4b1 initial
663 @ 0:55482a6fb4b1 initial
664
664
665 $ hg init ../issue4455-dest
665 $ hg init ../issue4455-dest
666 $ hg push ../issue4455-dest # changesets only
666 $ hg push ../issue4455-dest # changesets only
667 pushing to ../issue4455-dest
667 pushing to ../issue4455-dest
668 searching for changes
668 searching for changes
669 adding changesets
669 adding changesets
670 adding manifests
670 adding manifests
671 adding file changes
671 adding file changes
672 added 1 changesets with 1 changes to 1 files
672 added 1 changesets with 1 changes to 1 files
673 $ cat >> .hg/hgrc << EOF
673 $ cat >> .hg/hgrc << EOF
674 > [paths]
674 > [paths]
675 > local=../issue4455-dest/
675 > local=../issue4455-dest/
676 > ssh=ssh://user@dummy/issue4455-dest
676 > ssh=ssh://user@dummy/issue4455-dest
677 > http=http://localhost:$HGPORT/
677 > http=http://localhost:$HGPORT/
678 > [ui]
678 > [ui]
679 > ssh=python "$TESTDIR/dummyssh"
679 > ssh=python "$TESTDIR/dummyssh"
680 > EOF
680 > EOF
681 $ cat >> ../issue4455-dest/.hg/hgrc << EOF
681 $ cat >> ../issue4455-dest/.hg/hgrc << EOF
682 > [hooks]
682 > [hooks]
683 > prepushkey=false
683 > prepushkey=false
684 > [web]
684 > [web]
685 > push_ssl = false
685 > push_ssl = false
686 > allow_push = *
686 > allow_push = *
687 > EOF
687 > EOF
688 $ "$TESTDIR/killdaemons.py" $DAEMON_PIDS
688 $ "$TESTDIR/killdaemons.py" $DAEMON_PIDS
689 $ hg -R ../issue4455-dest serve -p $HGPORT -d --pid-file=../issue4455.pid -E ../issue4455-error.log
689 $ hg -R ../issue4455-dest serve -p $HGPORT -d --pid-file=../issue4455.pid -E ../issue4455-error.log
690 $ cat ../issue4455.pid >> $DAEMON_PIDS
690 $ cat ../issue4455.pid >> $DAEMON_PIDS
691
691
692 Local push
692 Local push
693 ----------
693 ----------
694
694
695 $ hg push -B @ local
695 $ hg push -B @ local
696 pushing to $TESTTMP/issue4455-dest (glob)
696 pushing to $TESTTMP/issue4455-dest (glob)
697 searching for changes
697 searching for changes
698 no changes found
698 no changes found
699 pushkey-abort: prepushkey hook exited with status 1
699 pushkey-abort: prepushkey hook exited with status 1
700 exporting bookmark @ failed!
700 exporting bookmark @ failed!
701 [1]
701 [1]
702 $ hg -R ../issue4455-dest/ bookmarks
702 $ hg -R ../issue4455-dest/ bookmarks
703 no bookmarks set
703 no bookmarks set
704
704
705 Using ssh
705 Using ssh
706 ---------
706 ---------
707
707
708 $ hg push -B @ ssh
708 $ hg push -B @ ssh --config experimental.bundle2-exp=True
709 pushing to ssh://user@dummy/issue4455-dest
710 searching for changes
711 no changes found
712 remote: pushkey-abort: prepushkey hook exited with status 1
713 exporting bookmark @ failed!
714 [1]
715 $ hg -R ../issue4455-dest/ bookmarks
716 no bookmarks set
717
718 $ hg push -B @ ssh --config experimental.bundle2-exp=False
709 pushing to ssh://user@dummy/issue4455-dest
719 pushing to ssh://user@dummy/issue4455-dest
710 searching for changes
720 searching for changes
711 no changes found
721 no changes found
712 remote: pushkey-abort: prepushkey hook exited with status 1
722 remote: pushkey-abort: prepushkey hook exited with status 1
713 exporting bookmark @ failed!
723 exporting bookmark @ failed!
714 [1]
724 [1]
715 $ hg -R ../issue4455-dest/ bookmarks
725 $ hg -R ../issue4455-dest/ bookmarks
716 no bookmarks set
726 no bookmarks set
717
727
718 Using http
728 Using http
719 ----------
729 ----------
720
730
721 $ hg push -B @ http
731 $ hg push -B @ http --config experimental.bundle2-exp=True
722 pushing to http://localhost:$HGPORT/
732 pushing to http://localhost:$HGPORT/
723 searching for changes
733 searching for changes
724 no changes found
734 no changes found
725 remote: pushkey-abort: prepushkey hook exited with status 1
735 remote: pushkey-abort: prepushkey hook exited with status 1
726 exporting bookmark @ failed!
736 exporting bookmark @ failed!
727 [1]
737 [1]
728 $ hg -R ../issue4455-dest/ bookmarks
738 $ hg -R ../issue4455-dest/ bookmarks
729 no bookmarks set
739 no bookmarks set
740
741 $ hg push -B @ http --config experimental.bundle2-exp=False
742 pushing to http://localhost:$HGPORT/
743 searching for changes
744 no changes found
745 remote: pushkey-abort: prepushkey hook exited with status 1
746 exporting bookmark @ failed!
747 [1]
748 $ hg -R ../issue4455-dest/ bookmarks
749 no bookmarks set
General Comments 0
You need to be logged in to leave comments. Login now