tests/test-rollback.t
changeset 41362 57c462db87fd
parent 40541 c2aea007130b
child 44355 7a4e1d245f19
equal deleted inserted replaced
41361:092c5d05ba01 41362:57c462db87fd
   111 
   111 
   112   $ cat > editor.sh << '__EOF__'
   112   $ cat > editor.sh << '__EOF__'
   113   > echo "another precious commit message" > "$1"
   113   > echo "another precious commit message" > "$1"
   114   > __EOF__
   114   > __EOF__
   115   $ HGEDITOR="\"sh\" \"`pwd`/editor.sh\"" hg --config hooks.pretxncommit=false commit 2>&1
   115   $ HGEDITOR="\"sh\" \"`pwd`/editor.sh\"" hg --config hooks.pretxncommit=false commit 2>&1
   116   note: commit message saved in .hg/last-message.txt
       
   117   transaction abort!
   116   transaction abort!
   118   rollback completed
   117   rollback completed
       
   118   note: commit message saved in .hg/last-message.txt
   119   abort: pretxncommit hook exited with status * (glob)
   119   abort: pretxncommit hook exited with status * (glob)
   120   [255]
   120   [255]
   121   $ cat .hg/last-message.txt
   121   $ cat .hg/last-message.txt
   122   another precious commit message
   122   another precious commit message
   123 
   123