Show More
@@ -33,7 +33,7 b' hg branch' | |||||
33 |
|
33 | |||
34 | echo '% rollback by pretxncommit saves commit message (issue 1635)' |
|
34 | echo '% rollback by pretxncommit saves commit message (issue 1635)' | |
35 | echo a >> a |
|
35 | echo a >> a | |
36 | hg --config hooks.pretxncommit=false commit -m"precious commit message" |
|
36 | hg --config hooks.pretxncommit=false commit -m"precious commit message" 2>&1 | sed 's,exited with status .*,exited ...,g' | |
37 | echo '.hg/last-message.txt:' |
|
37 | echo '.hg/last-message.txt:' | |
38 | cat .hg/last-message.txt ; echo |
|
38 | cat .hg/last-message.txt ; echo | |
39 |
|
39 | |||
@@ -43,6 +43,6 b" cat > $HGTMP/editor <<'__EOF__'" | |||||
43 | echo "another precious commit message" > "$1" |
|
43 | echo "another precious commit message" > "$1" | |
44 | __EOF__ |
|
44 | __EOF__ | |
45 | chmod +x $HGTMP/editor |
|
45 | chmod +x $HGTMP/editor | |
46 | HGEDITOR=$HGTMP/editor hg --config hooks.pretxncommit=false commit |
|
46 | HGEDITOR=$HGTMP/editor hg --config hooks.pretxncommit=false commit 2>&1 | sed 's,exited with status .*,exited ...,g' | |
47 | echo '.hg/last-message.txt:' |
|
47 | echo '.hg/last-message.txt:' | |
48 | cat .hg/last-message.txt |
|
48 | cat .hg/last-message.txt |
@@ -31,13 +31,13 b' test' | |||||
31 | % rollback by pretxncommit saves commit message (issue 1635) |
|
31 | % rollback by pretxncommit saves commit message (issue 1635) | |
32 | transaction abort! |
|
32 | transaction abort! | |
33 | rollback completed |
|
33 | rollback completed | |
34 |
abort: pretxncommit hook exited |
|
34 | abort: pretxncommit hook exited ... | |
35 | .hg/last-message.txt: |
|
35 | .hg/last-message.txt: | |
36 | precious commit message |
|
36 | precious commit message | |
37 | % same thing, but run $EDITOR |
|
37 | % same thing, but run $EDITOR | |
38 | transaction abort! |
|
38 | transaction abort! | |
39 | rollback completed |
|
39 | rollback completed | |
40 | note: commit message saved in .hg/last-message.txt |
|
40 | note: commit message saved in .hg/last-message.txt | |
41 |
abort: pretxncommit hook exited |
|
41 | abort: pretxncommit hook exited ... | |
42 | .hg/last-message.txt: |
|
42 | .hg/last-message.txt: | |
43 | another precious commit message |
|
43 | another precious commit message |
General Comments 0
You need to be logged in to leave comments.
Login now