Eric Wong | e2b36f6 | 2007-02-18 01:30:35 -0800 | [diff] [blame] | 1 | #!/bin/sh |
| 2 | # |
| 3 | # Copyright (c) 2007 Eric Wong |
| 4 | # |
| 5 | |
Nanako Shiraishi | 1364ff2 | 2008-09-08 19:02:08 +0900 | [diff] [blame] | 6 | test_description='git svn useSvnsyncProps test' |
Eric Wong | e2b36f6 | 2007-02-18 01:30:35 -0800 | [diff] [blame] | 7 | |
| 8 | . ./lib-git-svn.sh |
| 9 | |
Bryan Donlan | f69e836 | 2008-05-04 01:37:59 -0400 | [diff] [blame] | 10 | test_expect_success 'load svnsync repo' ' |
Junio C Hamano | bfdbee9 | 2008-08-08 02:26:28 -0700 | [diff] [blame] | 11 | svnadmin load -q "$rawsvnrepo" < "$TEST_DIRECTORY"/t9111/svnsync.dump && |
Nanako Shiraishi | 1364ff2 | 2008-09-08 19:02:08 +0900 | [diff] [blame] | 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 && |
Junio C Hamano | 5be6007 | 2007-07-02 22:52:14 -0700 | [diff] [blame] | 15 | git config svn.useSvnsyncProps true && |
Nanako Shiraishi | 1364ff2 | 2008-09-08 19:02:08 +0900 | [diff] [blame] | 16 | git svn fetch --all |
Bryan Donlan | f69e836 | 2008-05-04 01:37:59 -0400 | [diff] [blame] | 17 | ' |
Eric Wong | e2b36f6 | 2007-02-18 01:30:35 -0800 | [diff] [blame] | 18 | |
| 19 | uuid=161ce429-a9dd-4828-af4a-52023f968c89 |
| 20 | |
| 21 | bar_url=http://mayonaise/svnrepo/bar |
| 22 | test_expect_success 'verify metadata for /bar' " |
Pratik Karki | a4d4e32 | 2018-03-27 23:16:37 +0545 | [diff] [blame] | 23 | git cat-file commit refs/remotes/bar >actual && |
| 24 | grep '^git-svn-id: $bar_url@12 $uuid$' actual && |
| 25 | git cat-file commit refs/remotes/bar~1 >actual && |
| 26 | grep '^git-svn-id: $bar_url@11 $uuid$' actual && |
| 27 | git cat-file commit refs/remotes/bar~2 >actual && |
| 28 | grep '^git-svn-id: $bar_url@10 $uuid$' actual && |
| 29 | git cat-file commit refs/remotes/bar~3 >actual && |
| 30 | grep '^git-svn-id: $bar_url@9 $uuid$' actual && |
| 31 | git cat-file commit refs/remotes/bar~4 >actual && |
| 32 | grep '^git-svn-id: $bar_url@6 $uuid$' actual && |
| 33 | git cat-file commit refs/remotes/bar~5 >actual && |
| 34 | grep '^git-svn-id: $bar_url@1 $uuid$' actual |
Eric Wong | e2b36f6 | 2007-02-18 01:30:35 -0800 | [diff] [blame] | 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' " |
Pratik Karki | a4d4e32 | 2018-03-27 23:16:37 +0545 | [diff] [blame] | 39 | git cat-file commit refs/remotes/e >actual && |
| 40 | grep '^git-svn-id: $e_url@1 $uuid$' actual |
Eric Wong | e2b36f6 | 2007-02-18 01:30:35 -0800 | [diff] [blame] | 41 | " |
| 42 | |
| 43 | dir_url=http://mayonaise/svnrepo/dir |
| 44 | test_expect_success 'verify metadata for /dir' " |
Pratik Karki | a4d4e32 | 2018-03-27 23:16:37 +0545 | [diff] [blame] | 45 | git cat-file commit refs/remotes/dir >actual && |
| 46 | grep '^git-svn-id: $dir_url@2 $uuid$' actual && |
| 47 | git cat-file commit refs/remotes/dir~1 >actual && |
| 48 | grep '^git-svn-id: $dir_url@1 $uuid$' actual |
Eric Wong | e2b36f6 | 2007-02-18 01:30:35 -0800 | [diff] [blame] | 49 | " |
| 50 | |
| 51 | test_done |