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

« back to all changes in this revision

Viewing changes to test/create-delete.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:
 
1
Check whether quilt generates patches properly so that GNU patch recognizes
 
2
file creates and deletions.
 
3
 
 
4
        $ rm -rf d
 
5
        $ mkdir -p d/patches
 
6
        $ cd d
 
7
 
 
8
        $ echo delete > delete
 
9
        $ quilt new test.diff
 
10
        > Patch %{P}test.diff is now on top
 
11
 
 
12
        $ quilt add create
 
13
        > File create added to patch %{P}test.diff
 
14
 
 
15
        $ echo create > create
 
16
        $ quilt refresh
 
17
        > Refreshed patch %{P}test.diff
 
18
 
 
19
        $ quilt add delete
 
20
        > File delete added to patch %{P}test.diff
 
21
 
 
22
        $ rm -f delete
 
23
        $ quilt refresh
 
24
        > Refreshed patch %{P}test.diff
 
25
 
 
26
        $ quilt pop -q
 
27
        > Removing patch %{P}test.diff
 
28
        > No patches applied
 
29
 
 
30
        $ echo create > create
 
31
        $ rm -f delete
 
32
        $ patch -p1 --dry-run < patches/test.diff
 
33
        >~ The next patch would create the file `?create'?,
 
34
        > which already exists!  Assume -R? [n] 
 
35
        > Apply anyway? [n] 
 
36
        > Skipping patch.
 
37
        >~ 1 out of 1 hunk ignored -- saving rejects to (file )?create.rej
 
38
        >~ The next patch would delete the file `?delete'?,
 
39
        > which does not exist!  Assume -R? [n] 
 
40
        > Apply anyway? [n] 
 
41
        > Skipping patch.
 
42
        > 1 out of 1 hunk ignored
 
43
 
 
44
        $ cd ..
 
45
        $ rm -rf d