]>
Commit | Line | Data |
---|---|---|
befc9adc EW |
1 | #!/bin/sh |
2 | # | |
3 | # Copyright (c) 2007 Eric Wong | |
4 | # | |
5 | ||
1364ff27 | 6 | test_description='git svn useSvmProps test' |
befc9adc EW |
7 | |
8 | . ./lib-git-svn.sh | |
9 | ||
f69e836f | 10 | test_expect_success 'load svm repo' ' |
bfdbee98 | 11 | svnadmin load -q "$rawsvnrepo" < "$TEST_DIRECTORY"/t9110/svm.dump && |
1364ff27 NS |
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 \ | |
f69e836f | 15 | "$svnrepo"/mirror/argh/a/b/c/d/e && |
5be60078 | 16 | git config svn.useSvmProps true && |
1364ff27 | 17 | git svn fetch --all |
f69e836f | 18 | ' |
befc9adc EW |
19 | |
20 | uuid=161ce429-a9dd-4828-af4a-52023f968c89 | |
21 | ||
22 | bar_url=http://mayonaise/svnrepo/bar | |
23 | test_expect_success 'verify metadata for /bar' " | |
5be60078 | 24 | git cat-file commit refs/remotes/bar | \ |
16805d3e | 25 | grep '^${git_svn_id}: $bar_url@12 $uuid$' && |
5be60078 | 26 | git cat-file commit refs/remotes/bar~1 | \ |
16805d3e | 27 | grep '^${git_svn_id}: $bar_url@11 $uuid$' && |
5be60078 | 28 | git cat-file commit refs/remotes/bar~2 | \ |
16805d3e | 29 | grep '^${git_svn_id}: $bar_url@10 $uuid$' && |
5be60078 | 30 | git cat-file commit refs/remotes/bar~3 | \ |
16805d3e | 31 | grep '^${git_svn_id}: $bar_url@9 $uuid$' && |
5be60078 | 32 | git cat-file commit refs/remotes/bar~4 | \ |
16805d3e | 33 | grep '^${git_svn_id}: $bar_url@6 $uuid$' && |
5be60078 | 34 | git cat-file commit refs/remotes/bar~5 | \ |
16805d3e | 35 | grep '^${git_svn_id}: $bar_url@1 $uuid$' |
befc9adc EW |
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' " | |
5be60078 | 40 | git cat-file commit refs/remotes/e | \ |
16805d3e | 41 | grep '^${git_svn_id}: $e_url@1 $uuid$' |
befc9adc EW |
42 | " |
43 | ||
44 | dir_url=http://mayonaise/svnrepo/dir | |
45 | test_expect_success 'verify metadata for /dir' " | |
5be60078 | 46 | git cat-file commit refs/remotes/dir | \ |
16805d3e | 47 | grep '^${git_svn_id}: $dir_url@2 $uuid$' && |
5be60078 | 48 | git cat-file commit refs/remotes/dir~1 | \ |
16805d3e | 49 | grep '^${git_svn_id}: $dir_url@1 $uuid$' |
befc9adc EW |
50 | " |
51 | ||
63c56022 | 52 | test_expect_success 'find commit based on SVN revision number' " |
1364ff27 | 53 | git svn find-rev r12 | |
63c56022 JA |
54 | grep `git rev-parse HEAD` |
55 | " | |
56 | ||
57 | test_expect_success 'empty rebase' " | |
1364ff27 | 58 | git svn rebase |
63c56022 JA |
59 | " |
60 | ||
befc9adc | 61 | test_done |