equal
deleted
inserted
replaced
1 Environment setup for MQ |
1 Environment setup for MQ |
2 |
2 |
3 $ echo "[extensions]" >> $HGRCPATH |
3 $ echo "[extensions]" >> $HGRCPATH |
4 $ echo "mq=" >> $HGRCPATH |
4 $ echo "mq=" >> $HGRCPATH |
|
5 $ cat >> $HGRCPATH <<EOF |
|
6 > [defaults] |
|
7 > # explicit date to commit with fixed hashid |
|
8 > qnew = -d "0 0" |
|
9 > qrefresh = -d "0 0" |
|
10 > qfold = -d "0 0" |
|
11 > EOF |
5 $ hg init |
12 $ hg init |
6 $ hg qinit |
13 $ hg qinit |
7 |
14 |
8 Should fail if no patches applied |
15 Should fail if no patches applied |
9 (this tests also that editor is not invoked if '--edit' is not |
16 (this tests also that editor is not invoked if '--edit' is not |
189 This is the 5th log message |
196 This is the 5th log message |
190 |
197 |
191 |
198 |
192 |
199 |
193 test saving last-message.txt |
200 test saving last-message.txt |
|
201 |
|
202 Test visibility of in-memory distate changes outside transaction to |
|
203 external process |
|
204 |
|
205 $ cat > $TESTTMP/checkvisibility.sh <<EOF |
|
206 > echo "====" |
|
207 > hg parents --template "{rev}:{node|short}\n" |
|
208 > hg status -arm |
|
209 > echo "====" |
|
210 > EOF |
|
211 |
|
212 == test visibility to external editor |
|
213 |
|
214 $ hg update -C -q first-patch |
|
215 $ rm -f file2 |
|
216 $ hg qpush -q second-patch --config hooks.pretxncommit.unexpectedabort= |
|
217 now at: second-patch |
|
218 $ echo bbbb >> file2 |
|
219 |
|
220 $ sh "$TESTTMP/checkvisibility.sh" |
|
221 ==== |
|
222 1:e30108269082 |
|
223 M file2 |
|
224 ==== |
|
225 |
|
226 $ HGEDITOR='sh "$TESTTMP/checkvisibility.sh"' hg qrefresh -e |
|
227 ==== |
|
228 0:25e397dabed2 |
|
229 A file2 |
|
230 ==== |
|
231 transaction abort! |
|
232 rollback completed |
|
233 note: commit message saved in .hg/last-message.txt |
|
234 refresh interrupted while patch was popped! (revert --all, qpush to recover) |
|
235 abort: pretxncommit.unexpectedabort hook exited with status 1 |
|
236 [255] |
|
237 |
|
238 (rebuilding at failure of qrefresh bases on rev #0, and it causes |
|
239 dropping status of "file2") |
|
240 |
|
241 $ sh "$TESTTMP/checkvisibility.sh" |
|
242 ==== |
|
243 0:25e397dabed2 |
|
244 ==== |