1#!/bin/sh23# Structure of the test cvs repository4#5# Message File:Content Commit Time6# Rev 1 a: 1.1 2009-02-21 19:11:43 +01007# Rev 2 a: 1.2 b: 1.1 2009-02-21 19:11:14 +01008# Rev 3 b: 1.2 2009-02-21 19:11:43 +01009#10# As you can see the commit of Rev 3 has the same time as11# Rev 1 this leads to a broken import because of a cvsps12# bug.1314test_description='git cvsimport testing for correct patchset estimation'15. ./lib-cvs.sh1617setup_cvs_test_repository t96031819test_expect_failure 'import with criss cross times on revisions' '2021git cvsimport -p"-x" -C module-git module &&22(cd module-git &&23git log --pretty=format:%s > ../actual-master &&24git log A~2..A --pretty="format:%s %ad" -- > ../actual-A &&25echo "" >> ../actual-master &&26echo "" >> ../actual-A27) &&28echo "Rev 429Rev 330Rev 231Rev 1" > expect-master &&32test_cmp actual-master expect-master &&3334echo "Rev 5 Branch A Wed Mar 11 19:09:10 2009 +000035Rev 4 Branch A Wed Mar 11 19:03:52 2009 +0000" > expect-A &&36test_cmp actual-A expect-A37'3839test_done