X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=dgit.git;a=blobdiff_plain;f=tests%2Ftests%2Fquilt;h=f26f74458a27dc9ce5c592b9aac94897df6d4284;hp=c9a50e9d1bd90cb8af8287359ab4a4941a87c1dd;hb=f7e37ea9f83b46c5efa4152b36c6cc0f4b91fadd;hpb=8c84500206dbe1b1cf4aea1f4b497ab279685066 diff --git a/tests/tests/quilt b/tests/tests/quilt index c9a50e9d..f26f7445 100755 --- a/tests/tests/quilt +++ b/tests/tests/quilt @@ -32,7 +32,65 @@ iteration () { git cherry-pick -x incoming~1; iteration git cherry-pick -x incoming~0; iteration +git fetch $tmp/incoming/$p incoming-branch:branch +git checkout branch +git rebase --onto dgit/sid incoming +git checkout dgit/sid +git merge branch +iteration + +diff <../this.cmp + # normalise + perl -i~$compare~ -0777 -pe ' + s/\n+$//; $_ .= "\n"; + s/^(?:committer|parent|tree) .*\n//gm; + s/\n+(\(cherry picked from .*\)\n)\n*/\n\n/m + and s/$/$1/; + s/\n+$//; $_ .= "\n"; + ' ../this.cmp + if test -f ../last.cmp; then + diff -u ../last.cmp ../this.cmp + fi + mv ../this.cmp ../last.cmp +done + +t-ok