X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=tests%2Ftests%2Fquilt;h=f26f74458a27dc9ce5c592b9aac94897df6d4284;hb=50b6d1fa7bd440dcc7ef9d1803aa8e71e388361f;hp=a6f78cd70812fc1d2f9599bf0411344aa6f2e921;hpb=a6ba75765d8161841a511cc5eddb79d0209cf0d9;p=dgit.git diff --git a/tests/tests/quilt b/tests/tests/quilt index a6f78cd7..f26f7445 100755 --- a/tests/tests/quilt +++ b/tests/tests/quilt @@ -41,8 +41,8 @@ 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