File: auto-refresh.test

package info (click to toggle)
quilt 0.68-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,052 kB
  • sloc: sh: 6,102; perl: 1,273; lisp: 522; makefile: 436
file content (55 lines) | stat: -rw-r--r-- 1,052 bytes parent folder | download | duplicates (3)
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 %{P}a.patch is now on top
$ quilt add a
> File a added to patch %{P}a.patch
$ echo A > a

$ quilt new b.patch
> Patch %{P}b.patch is now on top
$ quilt add b
> File b added to patch %{P}b.patch
$ echo B > b

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

$ quilt pop -a --refresh
> Refreshed patch %{P}b.patch
> Removing patch %{P}b.patch
> Restoring b
>
> Refreshed patch %{P}a.patch
> Removing patch %{P}a.patch
> Restoring a
>
> No patches applied

$ quilt push -a --refresh
> Applying patch %{P}a.patch
> patching file a
> Patch %{P}a.patch is unchanged
>
> Applying patch %{P}b.patch
> patching file b
> Patch %{P}b.patch is unchanged
>
> Now at patch %{P}b.patch

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

$ quilt pop -a --refresh
> Patch %{P}b.patch is unchanged
> Removing patch %{P}b.patch
> Restoring b
>
> Patch %{P}a.patch is unchanged
> Removing patch %{P}a.patch
> Restoring a
>
> No patches applied