3
# take patches from patchwork into bzr
5
# authentication must be in ~/.netrc
7
# TODO: Scan all pending patches and say which ones apply cleanly.
9
# these should be moved into some kind of per-project configuration
10
PWK_ROOT='http://patchwork.ozlabs.org/bazaar-ng'
11
PWK_AUTH_ROOT='https://patchwork.ozlabs.org/bazaar-ng'
13
# bzr uses -p0 style; others use -p1
19
pwk cat PATCH-ID show the patch text
20
pwk try PATCH-ID see if the patch applies cleanly
21
pwk apply PATCH-ID apply patch into current directory
26
curl --silent --show-error --get -d id=$1 $PWK_ROOT/patchcontent
42
catpatch $2 | ${PAGER:-less}
45
catpatch $2 | patch -p0 --dry-run
48
catpatch $2 | patch -p0
b'\\ No newline at end of file'