comparison tests/test-mq-qimport-fail-cleanup.t @ 12465:8b12768b15e2

tests: unify test-mq-qimport-fail-cleanup
author Matt Mackall <mpm@selenic.com>
date Sun, 26 Sep 2010 13:43:21 -0500
parents tests/test-mq-qimport-fail-cleanup@1b82a26635d7
children 1e9451476bf8
comparison
equal deleted inserted replaced
12464:3177e3a7b14f 12465:8b12768b15e2
1 Failed qimport of patches from files should cleanup by recording successfully
2 imported patches in series file.
3
4 $ echo "[extensions]" >> $HGRCPATH
5 $ echo "mq=" >> $HGRCPATH
6 $ hg init repo
7 $ cd repo
8 $ echo a > a
9 $ hg ci -Am'add a'
10 adding a
11 $ cat >b.patch<<EOF
12 > diff --git a/a b/a
13 > --- a/a
14 > +++ b/a
15 > @@ -1,1 +1,2 @@
16 > a
17 > +b
18 > EOF
19 $ echo
20
21
22 empty series
23
24 $ hg qseries
25 $ echo
26
27
28 qimport valid patch followed by invalid patch
29
30 $ hg qimport b.patch fakepatch
31 adding b.patch to series file
32 abort: unable to read file fakepatch
33 [255]
34 $ echo
35
36
37 valid patches before fail added to series
38
39 $ hg qseries
40 b.patch