3 # Copyright (c) 2007 Eric Wong
6 test_description
='git-svn useSvmProps test'
10 test_expect_success
'load svm repo' "
11 svnadmin load -q $rawsvnrepo < ../t9110/svm.dump &&
12 git-svn init -R arr -i bar $svnrepo/mirror/arr &&
13 git-svn init -R argh -i dir $svnrepo/mirror/argh &&
14 git-svn init -R argh -i e $svnrepo/mirror/argh/a/b/c/d/e &&
15 git-config svn.useSvmProps true &&
19 uuid
=161ce429-a9dd-4828-af4a-52023f968c89
21 bar_url
=http
://mayonaise
/svnrepo
/bar
22 test_expect_success
'verify metadata for /bar' "
23 git-cat-file commit refs/remotes/bar | \
24 grep '^git-svn-id: $bar_url@12 $uuid$' &&
25 git-cat-file commit refs/remotes/bar~1 | \
26 grep '^git-svn-id: $bar_url@11 $uuid$' &&
27 git-cat-file commit refs/remotes/bar~2 | \
28 grep '^git-svn-id: $bar_url@10 $uuid$' &&
29 git-cat-file commit refs/remotes/bar~3 | \
30 grep '^git-svn-id: $bar_url@9 $uuid$' &&
31 git-cat-file commit refs/remotes/bar~4 | \
32 grep '^git-svn-id: $bar_url@6 $uuid$' &&
33 git-cat-file commit refs/remotes/bar~5 | \
34 grep '^git-svn-id: $bar_url@1 $uuid$'
37 e_url
=http
://mayonaise
/svnrepo
/dir
/a
/b
/c
/d
/e
38 test_expect_success
'verify metadata for /dir/a/b/c/d/e' "
39 git-cat-file commit refs/remotes/e | \
40 grep '^git-svn-id: $e_url@1 $uuid$'
43 dir_url
=http
://mayonaise
/svnrepo
/dir
44 test_expect_success
'verify metadata for /dir' "
45 git-cat-file commit refs/remotes/dir | \
46 grep '^git-svn-id: $dir_url@2 $uuid$' &&
47 git-cat-file commit refs/remotes/dir~1 | \
48 grep '^git-svn-id: $dir_url@1 $uuid$'