equal
deleted
inserted
replaced
108 $ cat .hg/last-message.txt ; echo |
108 $ cat .hg/last-message.txt ; echo |
109 precious commit message |
109 precious commit message |
110 |
110 |
111 same thing, but run $EDITOR |
111 same thing, but run $EDITOR |
112 |
112 |
113 $ cat > editor << '__EOF__' |
113 $ cat > editor.sh << '__EOF__' |
114 > #!/bin/sh |
|
115 > echo "another precious commit message" > "$1" |
114 > echo "another precious commit message" > "$1" |
116 > __EOF__ |
115 > __EOF__ |
117 $ chmod +x editor |
116 $ HGEDITOR="\"sh\" \"`pwd`/editor.sh\"" hg --config hooks.pretxncommit=false commit 2>&1 |
118 $ HGEDITOR="'`pwd`'"/editor hg --config hooks.pretxncommit=false commit 2>&1 |
|
119 transaction abort! |
117 transaction abort! |
120 rollback completed |
118 rollback completed |
121 note: commit message saved in .hg/last-message.txt |
119 note: commit message saved in .hg/last-message.txt |
122 abort: pretxncommit hook exited with status * (glob) |
120 abort: pretxncommit hook exited with status * (glob) |
123 [255] |
121 [255] |