summaryrefslogtreecommitdiffstats
path: root/test/half-applies.test
blob: 1702a03b96fb6e86408cfcee4ced413be01ed9f5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
$ mkdir patches

$ echo foo > foo.orig
$ echo foo2 > foo
$ echo bar > bar.orig
$ echo bar2 > bar
$ diff -u foo.orig foo >> patches/foorab.diff
$ diff -u bar bar.orig >> patches/foorab.diff
$ mv foo.orig foo
$ mv bar.orig bar
$ echo foorab.diff -p0 > patches/series
$ quilt push
> Applying patch patches/foorab.diff
>~ patching file `?foo'?
>~ patching file `?bar'?
> Hunk #1 FAILED at 1.
>~ 1 out of 1 hunk FAILED -- rejects in file `?bar'?
> Patch patches/foorab.diff does not apply (enforce with -f)

$ quilt push
> Applying patch patches/foorab.diff
>~ patching file `?foo'?
>~ patching file `?bar'?
> Hunk #1 FAILED at 1.
>~ 1 out of 1 hunk FAILED -- rejects in file `?bar'?
> Patch patches/foorab.diff does not apply (enforce with -f)

$ quilt push -qf
> Applying patch patches/foorab.diff
>~ 1 out of 1 hunk FAILED( -- saving rejects to( file)? bar.rej)?
> Applied patch patches/foorab.diff (forced; needs refresh)

$ quilt diff
> Index: foo
> ===================================================================
> --- foo.orig
> +++ foo
> @@ -1 +1 @@
> -foo
> +foo2