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