tests/test-phases.t
changeset 49995 27fd12eca557
parent 49825 2f2682f40ea0
child 51110 042d32355a4a
equal deleted inserted replaced
49994:3128018e878b 49995:27fd12eca557
   816   > EOF
   816   > EOF
   817   $ cd push-dest
   817   $ cd push-dest
   818   $ hg phase 6
   818   $ hg phase 6
   819   6: draft
   819   6: draft
   820   $ hg --config hooks.pretxnclose="sh $TESTTMP/savepending.sh" phase -f -s 6
   820   $ hg --config hooks.pretxnclose="sh $TESTTMP/savepending.sh" phase -f -s 6
   821   transaction abort!
       
   822   rollback completed
       
   823   abort: pretxnclose hook exited with status 1
   821   abort: pretxnclose hook exited with status 1
   824   [40]
   822   [40]
   825   $ cp .hg/store/phaseroots.pending.saved .hg/store/phaseroots.pending
   823   $ cp .hg/store/phaseroots.pending.saved .hg/store/phaseroots.pending
   826 
   824 
   827 (check (in)visibility of phaseroot while transaction running in repo)
   825 (check (in)visibility of phaseroot while transaction running in repo)
   839   $ hg --config hooks.pretxnclose="sh $TESTTMP/checkpending.sh" phase -f -s 7
   837   $ hg --config hooks.pretxnclose="sh $TESTTMP/checkpending.sh" phase -f -s 7
   840   @initialrepo
   838   @initialrepo
   841   7: secret
   839   7: secret
   842   @push-dest
   840   @push-dest
   843   6: draft
   841   6: draft
   844   transaction abort!
       
   845   rollback completed
       
   846   abort: pretxnclose hook exited with status 1
   842   abort: pretxnclose hook exited with status 1
   847   [40]
   843   [40]
   848 
   844 
   849 Check that pretxnclose-phase hook can control phase movement
   845 Check that pretxnclose-phase hook can control phase movement
   850 
   846 
   913   > EOF
   909   > EOF
   914 
   910 
   915 Try various actions. only the draft move should succeed
   911 Try various actions. only the draft move should succeed
   916 
   912 
   917   $ hg phase --public b3325c91a4d9
   913   $ hg phase --public b3325c91a4d9
   918   transaction abort!
       
   919   rollback completed
       
   920   abort: pretxnclose-phase.nopublish_D hook exited with status 1
   914   abort: pretxnclose-phase.nopublish_D hook exited with status 1
   921   [40]
   915   [40]
   922   $ hg phase --public a603bfb5a83e
   916   $ hg phase --public a603bfb5a83e
   923   transaction abort!
       
   924   rollback completed
       
   925   abort: pretxnclose-phase.nopublish_D hook exited with status 1
   917   abort: pretxnclose-phase.nopublish_D hook exited with status 1
   926   [40]
   918   [40]
   927   $ hg phase --draft 17a481b3bccb
   919   $ hg phase --draft 17a481b3bccb
   928   test-debug-phase: move rev 3: 2 -> 1
   920   test-debug-phase: move rev 3: 2 -> 1
   929   test-debug-phase: move rev 4: 2 -> 1
   921   test-debug-phase: move rev 4: 2 -> 1
   930   test-debug-phase: move rev 7: 2 -> 1
   922   test-debug-phase: move rev 7: 2 -> 1
   931   test-hook-close-phase: b3325c91a4d916bcc4cdc83ea3fe4ece46a42f6e:  secret -> draft
   923   test-hook-close-phase: b3325c91a4d916bcc4cdc83ea3fe4ece46a42f6e:  secret -> draft
   932   test-hook-close-phase: a603bfb5a83e312131cebcd05353c217d4d21dde:  secret -> draft
   924   test-hook-close-phase: a603bfb5a83e312131cebcd05353c217d4d21dde:  secret -> draft
   933   test-hook-close-phase: 17a481b3bccb796c0521ae97903d81c52bfee4af:  secret -> draft
   925   test-hook-close-phase: 17a481b3bccb796c0521ae97903d81c52bfee4af:  secret -> draft
   934   $ hg phase --public 17a481b3bccb
   926   $ hg phase --public 17a481b3bccb
   935   transaction abort!
       
   936   rollback completed
       
   937   abort: pretxnclose-phase.nopublish_D hook exited with status 1
   927   abort: pretxnclose-phase.nopublish_D hook exited with status 1
   938   [40]
   928   [40]
   939 
   929 
   940   $ cd ..
   930   $ cd ..
   941 
   931