comparison tests/test-push.t @ 33138:78fc540c53e1

pushrace: avoid crash on bare push when using concurrent push mode If the remote is empty, we do now bother computing head changes and the 'pushbranchmap' attribute stays at None. We now handle and tests this case.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Wed, 28 Jun 2017 17:41:25 +0200
parents e58acb4fc510
children 48d520fdf880
comparison
equal deleted inserted replaced
33137:99ce2f586cd4 33138:78fc540c53e1
295 adding file changes 295 adding file changes
296 added 1 changesets with 1 changes to 1 files 296 added 1 changesets with 1 changes to 1 files
297 lock: user *, process * (*s) (glob) 297 lock: user *, process * (*s) (glob)
298 wlock: user *, process * (*s) (glob) 298 wlock: user *, process * (*s) (glob)
299 299
300 Test bare push with multiple race checking options
301 --------------------------------------------------
302
303 $ hg init test-bare-push-no-concurrency
304 $ hg init test-bare-push-unrelated-concurrency
305 $ hg -R test-revflag push -r 0 test-bare-push-no-concurrency --config server.concurrent-push-mode=strict
306 pushing to test-bare-push-no-concurrency
307 searching for changes
308 adding changesets
309 adding manifests
310 adding file changes
311 added 1 changesets with 1 changes to 1 files
312 $ hg -R test-revflag push -r 0 test-bare-push-unrelated-concurrency --config server.concurrent-push-mode=check-related
313 pushing to test-bare-push-unrelated-concurrency
314 searching for changes
315 adding changesets
316 adding manifests
317 adding file changes
318 added 1 changesets with 1 changes to 1 files