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