2007-02-18 17:30:35 +08:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
|
|
|
# Copyright (c) 2007 Eric Wong
|
|
|
|
#
|
|
|
|
|
|
|
|
test_description='git-svn useSvnsyncProps test'
|
|
|
|
|
|
|
|
. ./lib-git-svn.sh
|
|
|
|
|
2008-05-04 13:37:59 +08:00
|
|
|
test_expect_success 'load svnsync repo' '
|
2008-08-08 17:26:28 +08:00
|
|
|
svnadmin load -q "$rawsvnrepo" < "$TEST_DIRECTORY"/t9111/svnsync.dump &&
|
2008-05-04 13:37:59 +08:00
|
|
|
git-svn init --minimize-url -R arr -i bar "$svnrepo"/bar &&
|
|
|
|
git-svn init --minimize-url -R argh -i dir "$svnrepo"/dir &&
|
|
|
|
git-svn init --minimize-url -R argh -i e "$svnrepo"/dir/a/b/c/d/e &&
|
2007-07-03 13:52:14 +08:00
|
|
|
git config svn.useSvnsyncProps true &&
|
2007-02-18 17:30:35 +08:00
|
|
|
git-svn fetch --all
|
2008-05-04 13:37:59 +08:00
|
|
|
'
|
2007-02-18 17:30:35 +08:00
|
|
|
|
|
|
|
uuid=161ce429-a9dd-4828-af4a-52023f968c89
|
|
|
|
|
|
|
|
bar_url=http://mayonaise/svnrepo/bar
|
|
|
|
test_expect_success 'verify metadata for /bar' "
|
2007-07-03 13:52:14 +08:00
|
|
|
git cat-file commit refs/remotes/bar | \
|
2007-02-18 17:30:35 +08:00
|
|
|
grep '^git-svn-id: $bar_url@12 $uuid$' &&
|
2007-07-03 13:52:14 +08:00
|
|
|
git cat-file commit refs/remotes/bar~1 | \
|
2007-02-18 17:30:35 +08:00
|
|
|
grep '^git-svn-id: $bar_url@11 $uuid$' &&
|
2007-07-03 13:52:14 +08:00
|
|
|
git cat-file commit refs/remotes/bar~2 | \
|
2007-02-18 17:30:35 +08:00
|
|
|
grep '^git-svn-id: $bar_url@10 $uuid$' &&
|
2007-07-03 13:52:14 +08:00
|
|
|
git cat-file commit refs/remotes/bar~3 | \
|
2007-02-18 17:30:35 +08:00
|
|
|
grep '^git-svn-id: $bar_url@9 $uuid$' &&
|
2007-07-03 13:52:14 +08:00
|
|
|
git cat-file commit refs/remotes/bar~4 | \
|
2007-02-18 17:30:35 +08:00
|
|
|
grep '^git-svn-id: $bar_url@6 $uuid$' &&
|
2007-07-03 13:52:14 +08:00
|
|
|
git cat-file commit refs/remotes/bar~5 | \
|
2007-02-18 17:30:35 +08:00
|
|
|
grep '^git-svn-id: $bar_url@1 $uuid$'
|
|
|
|
"
|
|
|
|
|
|
|
|
e_url=http://mayonaise/svnrepo/dir/a/b/c/d/e
|
|
|
|
test_expect_success 'verify metadata for /dir/a/b/c/d/e' "
|
2007-07-03 13:52:14 +08:00
|
|
|
git cat-file commit refs/remotes/e | \
|
2007-02-18 17:30:35 +08:00
|
|
|
grep '^git-svn-id: $e_url@1 $uuid$'
|
|
|
|
"
|
|
|
|
|
|
|
|
dir_url=http://mayonaise/svnrepo/dir
|
|
|
|
test_expect_success 'verify metadata for /dir' "
|
2007-07-03 13:52:14 +08:00
|
|
|
git cat-file commit refs/remotes/dir | \
|
2007-02-18 17:30:35 +08:00
|
|
|
grep '^git-svn-id: $dir_url@2 $uuid$' &&
|
2007-07-03 13:52:14 +08:00
|
|
|
git cat-file commit refs/remotes/dir~1 | \
|
2007-02-18 17:30:35 +08:00
|
|
|
grep '^git-svn-id: $dir_url@1 $uuid$'
|
|
|
|
"
|
|
|
|
|
|
|
|
test_done
|