~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to contrib/pwk

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2007-07-09 05:57:35 UTC
  • mfrom: (2593.2.1 ianc-integration)
  • Revision ID: pqm@pqm.ubuntu.com-20070709055735-nechlzumkvkl2woi
(Adeodato Simó) Merge annotate changes to make it behave in a non-ASCII world

Show diffs side-by-side

added added

removed removed

Lines of Context:
10
10
PWK_ROOT='http://patchwork.ozlabs.org/bazaar-ng'
11
11
PWK_AUTH_ROOT='https://patchwork.ozlabs.org/bazaar-ng'
12
12
 
13
 
# bzr uses -p0 style; others use -p1
14
 
PATCH_OPTS='-p0'
15
 
 
16
13
usage() {
17
14
    cat <<EOF
18
15
usage: 
19
 
   pwk show PATCH-ID       show the patch text
 
16
   pwk cat PATCH-ID       show the patch text
20
17
   pwk try PATCH-ID        see if the patch applies cleanly
21
18
   pwk apply PATCH-ID      apply patch into current directory
22
19
EOF
42
39
    catpatch $2 | ${PAGER:-less}
43
40
    ;;
44
41
try)
45
 
    catpatch $2 | patch -p0 --dry-run
 
42
    catpatch $2 | patch -p1 --dry-run
46
43
    ;;
47
44
apply)
48
 
    catpatch $2 | patch -p0
 
45
    catpatch $2 | patch -p1
49
46
    ;;
50
47
*)
51
48
    usage
52
49
    exit 1
53
 
esac
 
 
b'\\ No newline at end of file'
 
50
esac