File: snapshot.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 (48 lines) | stat: -rw-r--r-- 1,010 bytes parent folder | download | duplicates (7)
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
	$ mkdir patches

	$ quilt new snapshot
	> Patch %{P}snapshot is now on top
	$ quilt add f.txt
	> File f.txt added to patch %{P}snapshot
	$ cat > f.txt
	< f.txt

	$ quilt add g.txt
	> File g.txt added to patch %{P}snapshot
	$ cat > g.txt
	< g.txt

	$ quilt refresh
	> Refreshed patch %{P}snapshot
	$ quilt snapshot

	$ quilt fork
	> Fork of patch %{P}snapshot created as %{P}snapshot-2

	$ rm g.txt
	$ quilt add h.txt
	> File h.txt added to patch %{P}snapshot-2

	$ cat > h.txt
	< h.txt

	$ cat >> f.txt
	< more changes

	$ quilt refresh
	> Refreshed patch %{P}snapshot-2

	$ quilt diff --snapshot | grep -v "^\\(---\\|+++\\)"
	>~ Index: [^/]+/f\.txt
	> ===================================================================
	> @@ -1 +1,2 @@
	>  f.txt
	> +more changes
	>~ Index: [^/]+/g\.txt
	> ===================================================================
	> @@ -1 +0,0 @@
	> -g.txt
	>~ Index: [^/]+/h\.txt
	> ===================================================================
	> @@ -0,0 +1 @@
	> +h.txt