Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/git/blob/master/t/t9603-cvsimport-patchsets.sh # git [Ported from github.com/git/git] Sync with Git 2.56.1 Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `master` Branches Tags History `git / t / t9603-cvsimport-patchsets.sh` 40 lines ยท 1077 bytes Raw Blame History 1 #!/bin/sh 2 3 # Structure of the test cvs repository 4 # 5 # Message File:Content Commit Time 6 # Rev 1 a: 1.1 2009-02-21 19:11:43 +0100 7 # Rev 2 a: 1.2 b: 1.1 2009-02-21 19:11:14 +0100 8 # Rev 3 b: 1.2 2009-02-21 19:11:43 +0100 9 # 10 # As you can see the commit of Rev 3 has the same time as 11 # Rev 1 this leads to a broken import because of a cvsps 12 # bug. 13 14 test_description='git cvsimport testing for correct patchset estimation' 15 16 . ./lib-cvs.sh 17 18 setup_cvs_test_repository t9603 19 20 test_expect_failure PERL 'import with criss cross times on revisions' ' 21 git cvsimport -p"-x" -C module-git module && 22 ( 23 cd module-git && 24 git log --pretty=format:%s > ../actual-main && 25 git log A~2..A --pretty="format:%s %ad" -- > ../actual-A && 26 echo "" >> ../actual-main && 27 echo "" >> ../actual-A 28 ) && 29 echo "Rev 4 30 Rev 3 31 Rev 2 32 Rev 1" > expect-main && 33 test_cmp expect-main actual-main && 34 35 echo "Rev 5 Branch A Wed Mar 11 19:09:10 2009 +0000 36 Rev 4 Branch A Wed Mar 11 19:03:52 2009 +0000" > expect-A && 37 test_cmp expect-A actual-A 38 ' 39 40 test_done