tests/test-ssh-proto-unbundle.t
changeset 48876 42d2b31cee0b
parent 48646 77f8f8caf859
equal deleted inserted replaced
48875:6000f5b25c9b 48876:42d2b31cee0b
    97 output so we can test I/O capture and behavior.
    97 output so we can test I/O capture and behavior.
    98 
    98 
    99 Test pushing to a server that has a pretxnchangegroup Python hook that fails
    99 Test pushing to a server that has a pretxnchangegroup Python hook that fails
   100 
   100 
   101   $ cat > $TESTTMP/failhook << EOF
   101   $ cat > $TESTTMP/failhook << EOF
   102   > from __future__ import print_function
       
   103   > import sys
   102   > import sys
   104   > def hook1line(ui, repo, **kwargs):
   103   > def hook1line(ui, repo, **kwargs):
   105   >     ui.write(b'ui.write 1 line\n')
   104   >     ui.write(b'ui.write 1 line\n')
   106   >     ui.flush()
   105   >     ui.flush()
   107   >     return 1
   106   >     return 1