Mercurial > hg
comparison tests/test-bookmarks-pushpull.t @ 23426:19ebd2f88fc7
merge with stable
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Mon, 01 Dec 2014 19:34:11 -0600 |
parents | 53a65929ef1f |
children | 4dd8a6a1240d |
comparison
equal
deleted
inserted
replaced
23411:2d86f4e38c08 | 23426:19ebd2f88fc7 |
---|---|
484 pushing to ../unchanged-b | 484 pushing to ../unchanged-b |
485 searching for changes | 485 searching for changes |
486 no changes found | 486 no changes found |
487 [1] | 487 [1] |
488 | 488 |
489 $ cd .. | 489 |
490 Check hook preventing push (issue4455) | |
491 ====================================== | |
492 | |
493 $ hg bookmarks | |
494 * @ 0:55482a6fb4b1 | |
495 $ hg log -G | |
496 @ 0:55482a6fb4b1 initial | |
497 | |
498 $ hg init ../issue4455-dest | |
499 $ hg push ../issue4455-dest # changesets only | |
500 pushing to ../issue4455-dest | |
501 searching for changes | |
502 adding changesets | |
503 adding manifests | |
504 adding file changes | |
505 added 1 changesets with 1 changes to 1 files | |
506 $ cat >> .hg/hgrc << EOF | |
507 > [paths] | |
508 > local=../issue4455-dest/ | |
509 > ssh=ssh://user@dummy/issue4455-dest | |
510 > http=http://localhost:$HGPORT/ | |
511 > [ui] | |
512 > ssh=python "$TESTDIR/dummyssh" | |
513 > EOF | |
514 $ cat >> ../issue4455-dest/.hg/hgrc << EOF | |
515 > [hooks] | |
516 > prepushkey=false | |
517 > [web] | |
518 > push_ssl = false | |
519 > allow_push = * | |
520 > EOF | |
521 $ "$TESTDIR/killdaemons.py" $DAEMON_PIDS | |
522 $ hg -R ../issue4455-dest serve -p $HGPORT -d --pid-file=../issue4455.pid -E ../issue4455-error.log | |
523 $ cat ../issue4455.pid >> $DAEMON_PIDS | |
524 | |
525 Local push | |
526 ---------- | |
527 | |
528 $ hg push -B @ local | |
529 pushing to $TESTTMP/issue4455-dest (glob) | |
530 searching for changes | |
531 no changes found | |
532 pushkey-abort: prepushkey hook exited with status 1 | |
533 exporting bookmark @ failed! | |
534 [1] | |
535 $ hg -R ../issue4455-dest/ bookmarks | |
536 no bookmarks set | |
537 | |
538 Using ssh | |
539 --------- | |
540 | |
541 $ hg push -B @ ssh | |
542 pushing to ssh://user@dummy/issue4455-dest | |
543 searching for changes | |
544 no changes found | |
545 remote: pushkey-abort: prepushkey hook exited with status 1 | |
546 exporting bookmark @ failed! | |
547 [1] | |
548 $ hg -R ../issue4455-dest/ bookmarks | |
549 no bookmarks set | |
550 | |
551 Using http | |
552 ---------- | |
553 | |
554 $ hg push -B @ http | |
555 pushing to http://localhost:$HGPORT/ | |
556 searching for changes | |
557 no changes found | |
558 remote: pushkey-abort: prepushkey hook exited with status 1 | |
559 exporting bookmark @ failed! | |
560 [1] | |
561 $ hg -R ../issue4455-dest/ bookmarks | |
562 no bookmarks set |