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/t9110-git-svn-use-svm-props.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 / t9110-git-svn-use-svm-props.sh` 61 lines ยท 1977 bytes Raw Blame History 1 #!/bin/sh 2 # 3 # Copyright (c) 2007 Eric Wong 4 # 5 6 test_description='git svn useSvmProps test' 7 8 . ./lib-git-svn.sh 9 10 test_expect_success 'load svm repo' ' 11 svnadmin load -q "$rawsvnrepo" < "$TEST_DIRECTORY"/t9110/svm.dump && 12 git svn init --minimize-url -R arr -i bar "$svnrepo"/mirror/arr && 13 git svn init --minimize-url -R argh -i dir "$svnrepo"/mirror/argh && 14 git svn init --minimize-url -R argh -i e \ 15 "$svnrepo"/mirror/argh/a/b/c/d/e && 16 git config svn.useSvmProps true && 17 git svn fetch --all 18 ' 19 20 uuid=`161ce429`-a9dd-4828-af4a-`52023f968c89` 21 22 bar_url=http://mayonaise/svnrepo/bar 23 test_expect_success 'verify metadata for /bar' " 24 git cat-file commit refs/remotes/bar >actual && 25 test_grep '^git-svn-id: $bar_url@12 $uuid$' actual && 26 git cat-file commit refs/remotes/bar~1 >actual && 27 test_grep '^git-svn-id: $bar_url@11 $uuid$' actual && 28 git cat-file commit refs/remotes/bar~2 >actual && 29 test_grep '^git-svn-id: $bar_url@10 $uuid$' actual && 30 git cat-file commit refs/remotes/bar~3 >actual && 31 test_grep '^git-svn-id: $bar_url@9 $uuid$' actual && 32 git cat-file commit refs/remotes/bar~4 >actual && 33 test_grep '^git-svn-id: $bar_url@6 $uuid$' actual && 34 git cat-file commit refs/remotes/bar~5 >actual && 35 test_grep '^git-svn-id: $bar_url@1 $uuid$' actual 36 " 37 38 e_url=http://mayonaise/svnrepo/dir/a/b/c/d/e 39 test_expect_success 'verify metadata for /dir/a/b/c/d/e' " 40 git cat-file commit refs/remotes/e >actual && 41 test_grep '^git-svn-id: $e_url@1 $uuid$' actual 42 " 43 44 dir_url=http://mayonaise/svnrepo/dir 45 test_expect_success 'verify metadata for /dir' " 46 git cat-file commit refs/remotes/dir >actual && 47 test_grep '^git-svn-id: $dir_url@2 $uuid$' actual && 48 git cat-file commit refs/remotes/dir~1 >actual && 49 test_grep '^git-svn-id: $dir_url@1 $uuid$' actual 50 " 51 52 test_expect_success 'find commit based on SVN revision number' " 53 git svn find-rev r12 >actual && 54 test_grep $(git rev-parse HEAD) actual 55 " 56 57 test_expect_success 'empty rebase' " 58 git svn rebase 59 " 60 61 test_done