equal
deleted
inserted
replaced
72 |
72 |
73 $ cat .hg/last-message.txt ; echo |
73 $ cat .hg/last-message.txt ; echo |
74 precious commit message |
74 precious commit message |
75 $ echo '% same thing, but run $EDITOR' |
75 $ echo '% same thing, but run $EDITOR' |
76 % same thing, but run $EDITOR |
76 % same thing, but run $EDITOR |
77 $ cat > $HGTMP/editor <<'__EOF__' |
77 $ cat > editor << '__EOF__' |
78 > #!/bin/sh |
78 > #!/bin/sh |
79 > echo "another precious commit message" > "$1" |
79 > echo "another precious commit message" > "$1" |
80 > __EOF__ |
80 > __EOF__ |
81 > chmod +x "$HGTMP"/editor |
81 $ chmod +x editor |
82 > HGEDITOR="'$HGTMP'"/editor hg --config hooks.pretxncommit=false commit 2>&1 |
82 $ HGEDITOR="'`pwd`'"/editor hg --config hooks.pretxncommit=false commit 2>&1 |
83 > cat .hg/last-message.txt |
|
84 transaction abort! |
83 transaction abort! |
85 rollback completed |
84 rollback completed |
86 note: commit message saved in .hg/last-message.txt |
85 note: commit message saved in .hg/last-message.txt |
87 abort: pretxncommit hook exited with status * (glob) |
86 abort: pretxncommit hook exited with status * (glob) |
|
87 [255] |
|
88 $ cat .hg/last-message.txt |
88 another precious commit message |
89 another precious commit message |
89 |
90 |
90 .hg/last-message.txt: |
91 .hg/last-message.txt: |
91 |
92 |