summaryrefslogtreecommitdiffstats
path: root/test/auto-refresh.test
blob: 1367a82ace00bb160d51eed3e9cbc2b56bf4611b (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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
$ mkdir patches

$ echo a > a
$ echo b > b

$ quilt new a.patch
> Patch patches/a.patch is now on top
$ quilt add a
> File a added to patch patches/a.patch
$ echo A > a

$ quilt new b.patch
> Patch patches/b.patch is now on top
$ quilt add b
> File b added to patch patches/b.patch
$ echo B > b

$ quilt pop -fa --refresh
> Options -f and --refresh are mutually exclusive

$ quilt pop -a --refresh
> Refreshed patch patches/b.patch
> Removing patch patches/b.patch
> Restoring b
>
> Refreshed patch patches/a.patch
> Removing patch patches/a.patch
> Restoring a
>
> No patches applied

$ quilt push -a --refresh
> Applying patch patches/a.patch
> patching file a
> Patch patches/a.patch is unchanged
>
> Applying patch patches/b.patch
> patching file b
> Patch patches/b.patch is unchanged
>
> Now at patch patches/b.patch

$ quilt push -fa --refresh
> Options -f and --refresh are mutually exclusive

$ quilt pop -a --refresh
> Patch patches/b.patch is unchanged
> Removing patch patches/b.patch
> Restoring b
>
> Patch patches/a.patch is unchanged
> Removing patch patches/a.patch
> Restoring a
>
> No patches applied