equal
deleted
inserted
replaced
32 hg branch |
32 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=/bin/false commit -m"precious commit message" |
36 hg --config hooks.pretxncommit=/bin/false commit -m"precious commit message" |
37 |
|
38 echo '.hg/last-message.txt:' |
37 echo '.hg/last-message.txt:' |
39 cat .hg/last-message.txt |
38 cat .hg/last-message.txt |
|
39 |
|
40 echo '% same thing, but run $EDITOR' |
|
41 cat > $HGTMP/editor <<'__EOF__' |
|
42 #!/bin/sh |
|
43 echo "another precious commit message" > "$1" |
|
44 __EOF__ |
|
45 chmod +x $HGTMP/editor |
|
46 HGEDITOR=$HGTMP/editor hg --config hooks.pretxncommit=/bin/false commit |
|
47 echo '.hg/last-message.txt:' |
|
48 cat .hg/last-message.txt |