Show More
@@ -298,7 +298,7 b' test saving last-message.txt' | |||||
298 | $ echo 'sub = sub' > .hgsub |
|
298 | $ echo 'sub = sub' > .hgsub | |
299 | $ hg add .hgsub |
|
299 | $ hg add .hgsub | |
300 |
|
300 | |||
301 |
$ cat > $TEST |
|
301 | $ cat > $TESTTMP/editor.sh <<EOF | |
302 | > echo "==== before editing:" |
|
302 | > echo "==== before editing:" | |
303 | > cat \$1 |
|
303 | > cat \$1 | |
304 | > echo "====" |
|
304 | > echo "====" | |
@@ -306,7 +306,7 b' test saving last-message.txt' | |||||
306 | > EOF |
|
306 | > EOF | |
307 |
|
307 | |||
308 | $ rm -f .hg/last-message.txt |
|
308 | $ rm -f .hg/last-message.txt | |
309 |
$ HGEDITOR="sh $TEST |
|
309 | $ HGEDITOR="sh $TESTTMP/editor.sh" hg commit -S -q | |
310 | ==== before editing: |
|
310 | ==== before editing: | |
311 |
|
311 | |||
312 |
|
312 |
@@ -107,7 +107,7 b' check histedit_source' | |||||
107 |
|
107 | |||
108 | check saving last-message.txt |
|
108 | check saving last-message.txt | |
109 |
|
109 | |||
110 |
$ cat > $TEST |
|
110 | $ cat > $TESTTMP/abortfolding.py <<EOF | |
111 | > from mercurial import util |
|
111 | > from mercurial import util | |
112 | > def abortfolding(ui, repo, hooktype, **kwargs): |
|
112 | > def abortfolding(ui, repo, hooktype, **kwargs): | |
113 | > ctx = repo[kwargs.get('node')] |
|
113 | > ctx = repo[kwargs.get('node')] | |
@@ -117,10 +117,10 b' check saving last-message.txt' | |||||
117 | > EOF |
|
117 | > EOF | |
118 | $ cat > .hg/hgrc <<EOF |
|
118 | $ cat > .hg/hgrc <<EOF | |
119 | > [hooks] |
|
119 | > [hooks] | |
120 |
> pretxncommit.abortfolding = python:$TEST |
|
120 | > pretxncommit.abortfolding = python:$TESTTMP/abortfolding.py:abortfolding | |
121 | > EOF |
|
121 | > EOF | |
122 |
|
122 | |||
123 |
$ cat > $TEST |
|
123 | $ cat > $TESTTMP/editor.sh << EOF | |
124 | > echo "==== before editing" |
|
124 | > echo "==== before editing" | |
125 | > cat \$1 |
|
125 | > cat \$1 | |
126 | > echo "====" |
|
126 | > echo "====" | |
@@ -128,7 +128,7 b' check saving last-message.txt' | |||||
128 | > EOF |
|
128 | > EOF | |
129 |
|
129 | |||
130 | $ rm -f .hg/last-message.txt |
|
130 | $ rm -f .hg/last-message.txt | |
131 |
$ HGEDITOR="sh $TEST |
|
131 | $ HGEDITOR="sh $TESTTMP/editor.sh" hg histedit 6de59d13424a --commands - 2>&1 <<EOF | fixbundle | |
132 | > pick 6de59d13424a f |
|
132 | > pick 6de59d13424a f | |
133 | > fold 9c277da72c9b d |
|
133 | > fold 9c277da72c9b d | |
134 | > EOF |
|
134 | > EOF |
@@ -144,7 +144,7 b' Test saving last-message.txt:' | |||||
144 |
|
144 | |||
145 | $ hg qrefresh -m "original message" |
|
145 | $ hg qrefresh -m "original message" | |
146 |
|
146 | |||
147 |
$ cat > $TEST |
|
147 | $ cat > $TESTTMP/commitfailure.py <<EOF | |
148 | > from mercurial import util |
|
148 | > from mercurial import util | |
149 | > def reposetup(ui, repo): |
|
149 | > def reposetup(ui, repo): | |
150 | > class commitfailure(repo.__class__): |
|
150 | > class commitfailure(repo.__class__): | |
@@ -155,10 +155,10 b' Test saving last-message.txt:' | |||||
155 |
|
155 | |||
156 | $ cat > .hg/hgrc <<EOF |
|
156 | $ cat > .hg/hgrc <<EOF | |
157 | > [extensions] |
|
157 | > [extensions] | |
158 |
> commitfailure = $TEST |
|
158 | > commitfailure = $TESTTMP/commitfailure.py | |
159 | > EOF |
|
159 | > EOF | |
160 |
|
160 | |||
161 |
$ cat > $TEST |
|
161 | $ cat > $TESTTMP/editor.sh << EOF | |
162 | > echo "==== before editing" |
|
162 | > echo "==== before editing" | |
163 | > cat \$1 |
|
163 | > cat \$1 | |
164 | > echo "====" |
|
164 | > echo "====" | |
@@ -166,7 +166,7 b' Test saving last-message.txt:' | |||||
166 | > EOF |
|
166 | > EOF | |
167 |
|
167 | |||
168 | $ rm -f .hg/last-message.txt |
|
168 | $ rm -f .hg/last-message.txt | |
169 |
$ HGEDITOR="sh $TEST |
|
169 | $ HGEDITOR="sh $TESTTMP/editor.sh" hg qfold -e p3 | |
170 | ==== before editing |
|
170 | ==== before editing | |
171 | original message==== |
|
171 | original message==== | |
172 | refresh interrupted while patch was popped! (revert --all, qpush to recover) |
|
172 | refresh interrupted while patch was popped! (revert --all, qpush to recover) |
@@ -239,7 +239,7 b' Test saving last-message.txt' | |||||
239 | $ hg init repo |
|
239 | $ hg init repo | |
240 | $ cd repo |
|
240 | $ cd repo | |
241 |
|
241 | |||
242 |
$ cat > $TEST |
|
242 | $ cat > $TESTTMP/commitfailure.py <<EOF | |
243 | > from mercurial import util |
|
243 | > from mercurial import util | |
244 | > def reposetup(ui, repo): |
|
244 | > def reposetup(ui, repo): | |
245 | > class commitfailure(repo.__class__): |
|
245 | > class commitfailure(repo.__class__): | |
@@ -249,10 +249,10 b' Test saving last-message.txt' | |||||
249 | > EOF |
|
249 | > EOF | |
250 | $ cat > .hg/hgrc <<EOF |
|
250 | $ cat > .hg/hgrc <<EOF | |
251 | > [extensions] |
|
251 | > [extensions] | |
252 |
> commitfailure = $TEST |
|
252 | > commitfailure = $TESTTMP/commitfailure.py | |
253 | > EOF |
|
253 | > EOF | |
254 |
|
254 | |||
255 |
$ cat > $TEST |
|
255 | $ cat > $TESTTMP/editor.sh << EOF | |
256 | > echo "==== before editing" |
|
256 | > echo "==== before editing" | |
257 | > cat \$1 |
|
257 | > cat \$1 | |
258 | > echo "====" |
|
258 | > echo "====" | |
@@ -260,7 +260,7 b' Test saving last-message.txt' | |||||
260 | > EOF |
|
260 | > EOF | |
261 |
|
261 | |||
262 | $ rm -f .hg/last-message.txt |
|
262 | $ rm -f .hg/last-message.txt | |
263 |
$ HGEDITOR="sh $TEST |
|
263 | $ HGEDITOR="sh $TESTTMP/editor.sh" hg qnew -e patch | |
264 | ==== before editing |
|
264 | ==== before editing | |
265 | ==== |
|
265 | ==== | |
266 | abort: emulating unexpected abort |
|
266 | abort: emulating unexpected abort |
General Comments 0
You need to be logged in to leave comments.
Login now