~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to contrib/pwk

  • Committer: Martin Pool
  • Date: 2005-10-04 11:13:33 UTC
  • mto: (1185.13.3)
  • mto: This revision was merged to the branch mainline in revision 1403.
  • Revision ID: mbp@sourcefrog.net-20051004111332-f7b8a6bd41b9fe22
- tweak capture_tree formatting

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
 
13
16
usage() {
14
17
    cat <<EOF
15
18
usage: 
39
42
    catpatch $2 | ${PAGER:-less}
40
43
    ;;
41
44
try)
42
 
    catpatch $2 | patch -p1 --dry-run
 
45
    catpatch $2 | patch -p0 --dry-run
43
46
    ;;
44
47
apply)
45
 
    catpatch $2 | patch -p1
 
48
    catpatch $2 | patch -p0
46
49
    ;;
47
50
*)
48
51
    usage
49
52
    exit 1
50
 
esac
 
53
esac
 
 
b'\\ No newline at end of file'