3 # Copyright (c) 2007 Eric Wong
6 test_description
='git-svn log tests'
9 test_expect_success
'setup repository and import' "
12 for i in trunk branches/a branches/b \
13 tags/0.1 tags/0.2 tags/0.3; do
15 echo hello >> \$i/README || exit 1
17 svn import -m test . $svnrepo
19 git-svn init $svnrepo -T trunk -b branches -t tags &&
21 git reset --hard trunk &&
23 git commit -a -m bye &&
27 git update-index --add FEEDME &&
28 git commit -m feedme &&
30 git reset --hard trunk &&
32 git commit -a -m aye &&
36 test_expect_success
'run log' "
38 git svn log -r2 trunk | grep ^r2 &&
39 git svn log -r4 trunk | grep ^r4 &&
40 git svn log -r3 | grep ^r3
43 test_expect_success
'run log against a from trunk' "
44 git reset --hard trunk &&
45 git svn log -r3 a | grep ^r3