summaryrefslogtreecommitdiff
path: root/tests/lib
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lib')
-rw-r--r--tests/lib22
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/lib b/tests/lib
index 48bc237..0b88362 100644
--- a/tests/lib
+++ b/tests/lib
@@ -512,6 +512,28 @@ t-apply-diff () {
| patch -p1 -u
}
+t-gbp-unapplied-pq2qc () {
+ # 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
+}
+
t-commit () {
local msg=$1
v=${2-1.$revision}