diff options
author | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2016-06-04 22:22:41 +0100 |
---|---|---|
committer | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2016-07-16 16:47:47 +0100 |
commit | 041c3de0db5da816fcbe5b8ac560946a058570bd (patch) | |
tree | b43b63dba2133304ed117e18543c53e9335272f8 /tests | |
parent | 3ec13aec9357e80584d9bcb409c520a7a538495d (diff) |
Test suite: Provide tests/unapplied-pq2qc
Utility script for invoking gbp pq. I think I will want to swallow
this into a t-* function in tests/lib.
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/unapplied-pq2qc | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/tests/unapplied-pq2qc b/tests/unapplied-pq2qc new file mode 100755 index 0000000..03b2cdf --- /dev/null +++ b/tests/unapplied-pq2qc @@ -0,0 +1,23 @@ +#!/bin/bash +set -e +fail () { echo >&2 "$0: $*"; exit 1; } + +# does `gbp pq export' (leaving us on BRANCH (eg "quilt-tip")) +# commits the resulting debian/patches on qc/BRANCH +# goes back to patch-queue/BRANCH +# qc/BRANCH is not fast-forwarding + +gbp pq export + +branch=`git symbolic-ref HEAD` +branch=${branch#refs/heads/} + +case "$branch" in +*/*) fail "unexpected branch $branch" ;; +esac + +git branch -f qc/$branch +git checkout qc/$branch +git add debian/patches +git commit -m 'Commit patch queue' +git checkout patch-queue/$branch |