#!/bin/bash set -e . tests/lib t-archive ruby-rails-3.2 3.2.6-1 t-git-none mkdir -p incoming cd incoming t-worktree test cd .. t-dgit clone $p cd $p t-cloned-fetched-good git fetch $tmp/incoming/$p dgit/sid:incoming dummy=0 iteration () { dummy=$(( $dummy + 1)) v=3.2.6-2~dummy${dummy} t-refs-same-start 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.