617 $ ls -1 other/.hg/store/phaseroots* |
617 $ ls -1 other/.hg/store/phaseroots* |
618 other/.hg/store/phaseroots |
618 other/.hg/store/phaseroots |
619 $ ls -1 other/.hg/store/00changelog.i* |
619 $ ls -1 other/.hg/store/00changelog.i* |
620 other/.hg/store/00changelog.i |
620 other/.hg/store/00changelog.i |
621 |
621 |
|
622 Check error from hook during the unbundling process itself |
|
623 |
|
624 $ cat << EOF >> $HGRCPATH |
|
625 > pretxnchangegroup = echo "Fail early!"; false |
|
626 > EOF |
|
627 $ "$TESTDIR/killdaemons.py" $DAEMON_PIDS # reload http config |
|
628 $ hg -R other serve -p $HGPORT2 -d --pid-file=other.pid -E other-error.log |
|
629 $ cat other.pid >> $DAEMON_PIDS |
|
630 |
|
631 $ hg -R main push other -r e7ec4e813ba6 |
|
632 pushing to other |
|
633 searching for changes |
|
634 remote: adding changesets |
|
635 remote: adding manifests |
|
636 remote: adding file changes |
|
637 remote: added 1 changesets with 1 changes to 1 files |
|
638 remote: Fail early! |
|
639 remote: transaction abort! |
|
640 remote: Cleaning up the mess... |
|
641 remote: rollback completed |
|
642 abort: pretxnchangegroup hook exited with status 1 |
|
643 [255] |
|
644 $ hg -R main push ssh://user@dummy/other -r e7ec4e813ba6 |
|
645 pushing to ssh://user@dummy/other |
|
646 searching for changes |
|
647 remote: adding changesets |
|
648 remote: adding manifests |
|
649 remote: adding file changes |
|
650 remote: added 1 changesets with 1 changes to 1 files |
|
651 remote: Fail early! |
|
652 remote: transaction abort! |
|
653 remote: Cleaning up the mess... |
|
654 remote: rollback completed |
|
655 abort: pretxnchangegroup hook exited with status 1 |
|
656 [255] |
|
657 $ hg -R main push http://localhost:$HGPORT2/ -r e7ec4e813ba6 |
|
658 pushing to http://localhost:$HGPORT2/ |
|
659 searching for changes |
|
660 remote: adding changesets |
|
661 remote: adding manifests |
|
662 remote: adding file changes |
|
663 remote: added 1 changesets with 1 changes to 1 files |
|
664 remote: Fail early! |
|
665 remote: transaction abort! |
|
666 remote: Cleaning up the mess... |
|
667 remote: rollback completed |
|
668 abort: pretxnchangegroup hook exited with status 1 |
|
669 [255] |