File: restrict-patch-names.test

package info (click to toggle)
quilt 0.63-8
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 1,868 kB
  • ctags: 153
  • sloc: sh: 5,792; perl: 1,236; lisp: 492; makefile: 431
file content (56 lines) | stat: -rw-r--r-- 1,125 bytes parent folder | download | duplicates (5)
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
56
$ mkdir patches

$ quilt new "name with spaces"
> Patch name 'name with spaces' invalid: cannot contain spaces.
$ echo %{?}
> 1

$ quilt new series
> No patch can be named 'series' as this would conflict with the
> series file used internally by quilt.
$ echo %{?}
> 1



$ echo "+toto" > patchfile

$ quilt import -P 'name2 with spaces' patchfile
> Patch name 'name2 with spaces' invalid: cannot contain spaces.
$ echo %{?}
> 1

$ quilt import -P series patchfile
> No patch can be named 'series' as this would conflict with the
> series file used internally by quilt.
$ echo %{?}
> 1



$ quilt new patch1
> Patch patches/patch1 is now on top

$ quilt fork "patch 1"
> Patch name 'patch 1' invalid: cannot contain spaces.
$ echo %{?}
> 1

$ quilt fork series
> No patch can be named 'series' as this would conflict with the
> series file used internally by quilt.
$ echo %{?}
> 1



$ quilt rename "patch 1"
> Patch name 'patch 1' invalid: cannot contain spaces.
$ echo %{?}
> 1

$ quilt rename series
> No patch can be named 'series' as this would conflict with the
> series file used internally by quilt.
$ echo %{?}
> 1