X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=dgit.git;a=blobdiff_plain;f=tests%2Ftests%2Fquilt;h=0462f1a8bf867cd976c10b19e0ca4c9f8e181516;hp=9a4b105741ffaf3f5d76c1e9d323acddcc0f83b8;hb=00be23b629b1a1dd04cfa1c9d10a778d30d904b6;hpb=13c4d9e658b5217c364446cabf6a7e13b3e949b4 diff --git a/tests/tests/quilt b/tests/tests/quilt index 9a4b1057..0462f1a8 100755 --- a/tests/tests/quilt +++ b/tests/tests/quilt @@ -19,9 +19,7 @@ git fetch $tmp/incoming/$p dgit/sid:incoming dummy=0 -for cherry in incoming~1 incoming~0; do - git cherry-pick -x $cherry - +iteration () { dummy=$(( $dummy + 1)) v=3.2.6-2~dummy${dummy} @@ -29,9 +27,70 @@ for cherry in incoming~1 incoming~0; do t-dgit --dpkg-buildpackage:-d build t-dgit push t-pushed-good dgit/sid +} + +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 + echo ok.