]>
Commit | Line | Data |
---|---|---|
e2b36f60 EW |
1 | #!/bin/sh |
2 | # | |
3 | # Copyright (c) 2007 Eric Wong | |
4 | # | |
5 | ||
6 | test_description='git-svn useSvnsyncProps test' | |
7 | ||
8 | . ./lib-git-svn.sh | |
9 | ||
10 | test_expect_success 'load svnsync repo' " | |
11 | svnadmin load -q $rawsvnrepo < ../t9111/svnsync.dump && | |
4a1bb4c3 EW |
12 | git-svn init --minimize-url -R arr -i bar $svnrepo/bar && |
13 | git-svn init --minimize-url -R argh -i dir $svnrepo/dir && | |
14 | git-svn init --minimize-url -R argh -i e $svnrepo/dir/a/b/c/d/e && | |
5be60078 | 15 | git config svn.useSvnsyncProps true && |
e2b36f60 EW |
16 | git-svn fetch --all |
17 | " | |
18 | ||
19 | uuid=161ce429-a9dd-4828-af4a-52023f968c89 | |
20 | ||
21 | bar_url=http://mayonaise/svnrepo/bar | |
22 | test_expect_success 'verify metadata for /bar' " | |
5be60078 | 23 | git cat-file commit refs/remotes/bar | \ |
e2b36f60 | 24 | grep '^git-svn-id: $bar_url@12 $uuid$' && |
5be60078 | 25 | git cat-file commit refs/remotes/bar~1 | \ |
e2b36f60 | 26 | grep '^git-svn-id: $bar_url@11 $uuid$' && |
5be60078 | 27 | git cat-file commit refs/remotes/bar~2 | \ |
e2b36f60 | 28 | grep '^git-svn-id: $bar_url@10 $uuid$' && |
5be60078 | 29 | git cat-file commit refs/remotes/bar~3 | \ |
e2b36f60 | 30 | grep '^git-svn-id: $bar_url@9 $uuid$' && |
5be60078 | 31 | git cat-file commit refs/remotes/bar~4 | \ |
e2b36f60 | 32 | grep '^git-svn-id: $bar_url@6 $uuid$' && |
5be60078 | 33 | git cat-file commit refs/remotes/bar~5 | \ |
e2b36f60 EW |
34 | grep '^git-svn-id: $bar_url@1 $uuid$' |
35 | " | |
36 | ||
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' " | |
5be60078 | 39 | git cat-file commit refs/remotes/e | \ |
e2b36f60 EW |
40 | grep '^git-svn-id: $e_url@1 $uuid$' |
41 | " | |
42 | ||
43 | dir_url=http://mayonaise/svnrepo/dir | |
44 | test_expect_success 'verify metadata for /dir' " | |
5be60078 | 45 | git cat-file commit refs/remotes/dir | \ |
e2b36f60 | 46 | grep '^git-svn-id: $dir_url@2 $uuid$' && |
5be60078 | 47 | git cat-file commit refs/remotes/dir~1 | \ |
e2b36f60 EW |
48 | grep '^git-svn-id: $dir_url@1 $uuid$' |
49 | " | |
50 | ||
51 | test_done |