~ubuntu-branches/ubuntu/natty/quilt/natty

« back to all changes in this revision

Viewing changes to test/one.test

  • Committer: Bazaar Package Importer
  • Author(s): Martin Quinson
  • Date: 2006-11-23 16:17:11 UTC
  • mfrom: (2.1.6 feisty)
  • Revision ID: james.westby@ubuntu.com-20061123161711-b17ess0ls8t959ca
Tags: 0.45-6
* [debian/patches/override_mail_sender_in_testsuite]
  Fix the patch to catch all occurences of 'quilt mail' since each of them
  will cause a FTBFS on misconfigured hosts (thanks to Goswin Brederlow).
  (Closes: #397285, #395482, #393985) I hope, at least.
  
* [debian/patches/doc_improvement]
  Fix some more typos in the manpages
  (Closes: #386548, #395447)

* [debian/control]
   Add procmail to suggest list to help users locating the 'formail' tool.
   (Closes: #396093)

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
 
6
6
(To run, type `./run one.test' in this directory.)
7
7
 
8
 
        $ mkdir d
 
8
        $ rm -rf d
 
9
        $ mkdir -p d/patches
9
10
        $ cd d
10
11
        $ mkdir dir
11
12
        $ echo "This is file one." > dir/file1
24
25
        > Nothing in patch %{P}patch1.diff
25
26
 
26
27
        $ echo "This is file two." > file2
27
 
        $ quilt diff | sed -e "s/\\t.*//"
 
28
        $ quilt diff
28
29
        > Index: d/file2
29
30
        > ===================================================================
30
31
        > --- /dev/null
32
33
        > @@ -0,0 +1 @@
33
34
        > +This is file two.
34
35
 
35
 
        $ quilt diff -z | sed -e "s/\\t.*//"
 
36
        $ quilt diff -z
36
37
        > Index: d/file2
37
38
        > ===================================================================
38
39
        > --- /dev/null
45
46
 
46
47
        $ quilt diff -z
47
48
        $ echo "Another line has been added." >> dir/file1
48
 
        $ quilt diff -z | sed -e "s/\\t.*//"
 
49
        $ quilt diff -z
49
50
        > Index: d/dir/file1
50
51
        > ===================================================================
51
52
        > --- d.orig/dir/file1
54
55
        >  This is file one.
55
56
        > +Another line has been added.
56
57
 
57
 
        $ quilt diff -z dir/file1 | sed -e "s/\\t.*//"
 
58
        $ quilt diff -z dir/file1
58
59
        > Index: d/dir/file1
59
60
        > ===================================================================
60
61
        > --- d.orig/dir/file1
76
77
        $ quilt refresh
77
78
        > Refreshed patch %{P}patch2.diff
78
79
 
79
 
        $ quilt add -p patch1 dir/file3
 
80
        $ quilt add -P patch1 dir/file3
80
81
        > File dir/file3 modified by patch %{P}patch2.diff
81
82
 
82
83
        $ quilt pop -R
94
95
 
95
96
        $ quilt push
96
97
        > Applying patch %{P}patch2.diff
97
 
        > patching file dir/file3
 
98
        >~ patching file `?dir/file3'?
98
99
        >
99
100
        > Now at patch %{P}patch2.diff
100
101
 
105
106
        > File file4 added to patch %{P}subdir/patch3.diff
106
107
 
107
108
        $ rm file4
108
 
        $ quilt diff | sed -e "s/\\t.*//"
 
109
        $ quilt diff
109
110
        > Index: d/file4
110
111
        > ===================================================================
111
112
        > --- d.orig/file4
113
114
        > @@ -1 +0,0 @@
114
115
        > -This is file 4.
115
116
 
116
 
        $ quilt add -p patch2 file4
 
117
        $ quilt add -P patch2 file4
117
118
        > File file4 modified by patch %{P}subdir/patch3.diff
118
119
 
119
120
        $ quilt refresh
124
125
        > Refreshed patch %{P}patch2.diff
125
126
 
126
127
        $ echo "Another line added." >> file2
127
 
        $ quilt diff -z -P patch1 | sed -e "s/\\t.*//"
128
 
        > More recent patches modify files in patch %{P}patch1.diff
 
128
        $ quilt diff -z -P patch1
129
129
        > Index: d/file2
130
130
        > ===================================================================
131
131
        > --- d.orig/file2
133
133
        > @@ -1 +1,2 @@
134
134
        >  This is file two.
135
135
        > +Another line added.
 
136
        > Warning: more recent patches modify files in patch %{P}patch1.diff
136
137
        
137
138
        $ quilt refresh patch1
138
139
        > More recent patches modify files in patch %{P}patch1.diff. Enforce refresh with -f.