X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=tests%2Flib;h=dd7a67ddc9dd772d341afade23fc202569782e69;hb=b294deda313d2cbf29e2401aac585736cb2582f3;hp=0b8836266fbfc1746a16a09a2d71c10205a19a06;hpb=d3606ff36cbf24f80152c5848fefee0c62686486;p=dgit.git diff --git a/tests/lib b/tests/lib index 0b883626..dd7a67dd 100644 --- a/tests/lib +++ b/tests/lib @@ -513,9 +513,9 @@ t-apply-diff () { } t-gbp-unapplied-pq2qc () { - # does `gbp pq export' (leaving us on BRANCH (eg "quilt-tip")) + # does `gbp pq export' # commits the resulting debian/patches on qc/BRANCH - # goes back to patch-queue/BRANCH + # leaves us on qc/BRANCH (eg "qc/quilt-tip")) # qc/BRANCH is not fast-forwarding gbp pq export @@ -531,7 +531,27 @@ t-gbp-unapplied-pq2qc () { git checkout qc/$branch git add debian/patches git commit -m 'Commit patch queue' - git checkout patch-queue/$branch +} + +t-gbp-example-prep () { + t-archive example 1.0-1 + t-git-none + t-worktree 1.0 + + cd example + + t-dgit fetch + + git-checkout -b patch-queue/quilt-tip-2 patch-queue/quilt-tip + gbp pq rebase + + echo '/* some comment */' >>src.c + git add src.c + git commit -m 'Add a comment to an upstream file' + + t-gbp-unapplied-pq2qc + + t-commit 'some updates' 1.0-2 } t-commit () {