##// END OF EJS Templates
test: pull through http when testing for race conditions...
Pierre-Yves David -
r25442:9ee395df default
parent child Browse files
Show More
@@ -263,7 +263,14 b' update a bookmark in the middle of a cli'
263 263
264 264 $ cd ..
265 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 274 $ cd pull-race
268 275 $ hg up -q Y
269 276 $ echo c4 > f2
@@ -273,17 +280,22 b' update a bookmark in the middle of a cli'
273 280 > [hooks]
274 281 > outgoing.makecommit = hg ci -Am5; echo committed in pull-race
275 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 291 $ hg -R $TESTTMP/pull-race book
278 292 @ 1:0d2164f0ce0d
279 293 X 1:0d2164f0ce0d
280 294 * Y 4:b0a5eff05604
281 295 Z 1:0d2164f0ce0d
282 296 $ hg pull
283 pulling from $TESTTMP/pull-race (glob)
297 pulling from http://localhost:$HGPORT/
284 298 searching for changes
285 adding f3
286 committed in pull-race
287 299 adding changesets
288 300 adding manifests
289 301 adding file changes
@@ -295,6 +307,10 b' update a bookmark in the middle of a cli'
295 307 X 1:0d2164f0ce0d
296 308 Y 4:b0a5eff05604
297 309 Z 1:0d2164f0ce0d
310
311 (done with this section of the test)
312
313 $ "$TESTDIR/killdaemons.py" $DAEMON_PIDS
298 314 $ cd ../b
299 315
300 316 diverging a remote bookmark fails
General Comments 0
You need to be logged in to leave comments. Login now