File: altered-series.test

package info (click to toggle)
quilt 0.65-3
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 1,980 kB
  • sloc: sh: 5,898; perl: 1,256; lisp: 492; makefile: 430
file content (55 lines) | stat: -rw-r--r-- 1,247 bytes parent folder | download | duplicates (2)
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
# Check that manual changes to the series file are detected

$ mkdir patches
$ cat > patches/series
< 01.patch
< 02.patch
< 03.patch

$ quilt push -fq 2
> Applying patch patches/01.patch
> Patch patches/01.patch does not exist; applied empty patch
> Applying patch patches/02.patch
> Patch patches/02.patch does not exist; applied empty patch
> Now at patch patches/02.patch

$ quilt series -v
> + patches/01.patch
> = patches/02.patch
>   patches/03.patch

# Touch the series file but preserve the order -> OK
$ touch patches/series

$ quilt series -v
> + patches/01.patch
> = patches/02.patch
>   patches/03.patch

# Change the order of the patch series -> complain
$ cat > patches/series
< 03.patch
< 01.patch
< 02.patch

$ quilt series -v
> The series file no longer matches the applied patches. Please run 'quilt pop -a'.

$ quilt pop
> Patch patches/02.patch appears to be empty, removing
>
> Now at patch patches/01.patch

# That wasn't enough, keep complaining
$ quilt series -v
> The series file no longer matches the applied patches. Please run 'quilt pop -a'.

$ quilt pop -a
> Patch patches/01.patch appears to be empty, removing
>
> No patches applied

$ quilt series -v
>   patches/03.patch
>   patches/01.patch
>   patches/02.patch