tests/test-patch.t
changeset 38126 0b39edeff033
parent 37459 90c5ca718781
child 38156 f44306940c94
equal deleted inserted replaced
38125:f3776f70985e 38126:0b39edeff033
    90   
    90   
    91   
    91   
    92 
    92 
    93 Error exit (issue4746)
    93 Error exit (issue4746)
    94 
    94 
    95   $ hg import ../c/p --config ui.patch='sh -c "exit 1"'
    95   $ cat >> exit1.py <<EOF
       
    96   > import sys
       
    97   > sys.exit(1)
       
    98   > EOF
       
    99 
       
   100   $ hg import ../c/p --config ui.patch="$PYTHON '`pwd`/exit1.py'"
    96   applying ../c/p
   101   applying ../c/p
    97   abort: patch command failed: exited with status 1
   102   abort: patch command failed: exited with status 1
    98   [255]
   103   [255]
    99 
   104 
   100   $ cd ..
   105   $ cd ..