]> git.ipfire.org Git - thirdparty/git.git/blame - t/t9111-git-svn-use-svnsync-props.sh
wildmatch: rename constants and update prototype
[thirdparty/git.git] / t / t9111-git-svn-use-svnsync-props.sh
CommitLineData
e2b36f60
EW
1#!/bin/sh
2#
3# Copyright (c) 2007 Eric Wong
4#
5
1364ff27 6test_description='git svn useSvnsyncProps test'
e2b36f60
EW
7
8. ./lib-git-svn.sh
9
f69e836f 10test_expect_success 'load svnsync repo' '
bfdbee98 11 svnadmin load -q "$rawsvnrepo" < "$TEST_DIRECTORY"/t9111/svnsync.dump &&
1364ff27
NS
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 &&
1364ff27 16 git svn fetch --all
f69e836f 17 '
e2b36f60
EW
18
19uuid=161ce429-a9dd-4828-af4a-52023f968c89
20
21bar_url=http://mayonaise/svnrepo/bar
22test_expect_success 'verify metadata for /bar' "
5be60078 23 git cat-file commit refs/remotes/bar | \
16805d3e 24 grep '^${git_svn_id}: $bar_url@12 $uuid$' &&
5be60078 25 git cat-file commit refs/remotes/bar~1 | \
16805d3e 26 grep '^${git_svn_id}: $bar_url@11 $uuid$' &&
5be60078 27 git cat-file commit refs/remotes/bar~2 | \
16805d3e 28 grep '^${git_svn_id}: $bar_url@10 $uuid$' &&
5be60078 29 git cat-file commit refs/remotes/bar~3 | \
16805d3e 30 grep '^${git_svn_id}: $bar_url@9 $uuid$' &&
5be60078 31 git cat-file commit refs/remotes/bar~4 | \
16805d3e 32 grep '^${git_svn_id}: $bar_url@6 $uuid$' &&
5be60078 33 git cat-file commit refs/remotes/bar~5 | \
16805d3e 34 grep '^${git_svn_id}: $bar_url@1 $uuid$'
e2b36f60
EW
35 "
36
37e_url=http://mayonaise/svnrepo/dir/a/b/c/d/e
38test_expect_success 'verify metadata for /dir/a/b/c/d/e' "
5be60078 39 git cat-file commit refs/remotes/e | \
16805d3e 40 grep '^${git_svn_id}: $e_url@1 $uuid$'
e2b36f60
EW
41 "
42
43dir_url=http://mayonaise/svnrepo/dir
44test_expect_success 'verify metadata for /dir' "
5be60078 45 git cat-file commit refs/remotes/dir | \
16805d3e 46 grep '^${git_svn_id}: $dir_url@2 $uuid$' &&
5be60078 47 git cat-file commit refs/remotes/dir~1 | \
16805d3e 48 grep '^${git_svn_id}: $dir_url@1 $uuid$'
e2b36f60
EW
49 "
50
51test_done