Show More
@@ -263,7 +263,14 b' update a bookmark in the middle of a cli' | |||||
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 | ||
|
267 | We want to use http because it is stateless and therefore more susceptible to | |||
|
268 | race conditions | |||
|
269 | ||||
|
270 | $ hg -R pull-race serve -p $HGPORT -d --pid-file=pull-race.pid -E main-error.log | |||
|
271 | $ cat pull-race.pid >> $DAEMON_PIDS | |||
|
272 | ||||
|
273 | $ hg clone -q http://localhost:$HGPORT/ pull-race2 | |||
267 | $ cd pull-race |
|
274 | $ cd pull-race | |
268 | $ hg up -q Y |
|
275 | $ hg up -q Y | |
269 | $ echo c4 > f2 |
|
276 | $ echo c4 > f2 | |
@@ -273,17 +280,22 b' update a bookmark in the middle of a cli' | |||||
273 | > [hooks] |
|
280 | > [hooks] | |
274 | > outgoing.makecommit = hg ci -Am5; echo committed in pull-race |
|
281 | > outgoing.makecommit = hg ci -Am5; echo committed in pull-race | |
275 | > EOF |
|
282 | > EOF | |
276 | $ cd ../pull-race2 |
|
283 | ||
|
284 | (new config needs a server restart) | |||
|
285 | ||||
|
286 | $ cd .. | |||
|
287 | $ "$TESTDIR/killdaemons.py" $DAEMON_PIDS | |||
|
288 | $ hg -R pull-race serve -p $HGPORT -d --pid-file=pull-race.pid -E main-error.log | |||
|
289 | $ cat pull-race.pid >> $DAEMON_PIDS | |||
|
290 | $ cd pull-race2 | |||
277 | $ hg -R $TESTTMP/pull-race book |
|
291 | $ hg -R $TESTTMP/pull-race book | |
278 | @ 1:0d2164f0ce0d |
|
292 | @ 1:0d2164f0ce0d | |
279 | X 1:0d2164f0ce0d |
|
293 | X 1:0d2164f0ce0d | |
280 | * Y 4:b0a5eff05604 |
|
294 | * Y 4:b0a5eff05604 | |
281 | Z 1:0d2164f0ce0d |
|
295 | Z 1:0d2164f0ce0d | |
282 | $ hg pull |
|
296 | $ hg pull | |
283 | pulling from $TESTTMP/pull-race (glob) |
|
297 | pulling from http://localhost:$HGPORT/ | |
284 | searching for changes |
|
298 | searching for changes | |
285 | adding f3 |
|
|||
286 | committed in pull-race |
|
|||
287 | adding changesets |
|
299 | adding changesets | |
288 | adding manifests |
|
300 | adding manifests | |
289 | adding file changes |
|
301 | adding file changes | |
@@ -295,6 +307,10 b' update a bookmark in the middle of a cli' | |||||
295 | X 1:0d2164f0ce0d |
|
307 | X 1:0d2164f0ce0d | |
296 | Y 4:b0a5eff05604 |
|
308 | Y 4:b0a5eff05604 | |
297 | Z 1:0d2164f0ce0d |
|
309 | Z 1:0d2164f0ce0d | |
|
310 | ||||
|
311 | (done with this section of the test) | |||
|
312 | ||||
|
313 | $ "$TESTDIR/killdaemons.py" $DAEMON_PIDS | |||
298 | $ cd ../b |
|
314 | $ cd ../b | |
299 |
|
315 | |||
300 | diverging a remote bookmark fails |
|
316 | diverging a remote bookmark fails |
General Comments 0
You need to be logged in to leave comments.
Login now