packv4: nth_packed_object_sha1() packv4 support
[git/packv4.git] / t / t9116-git-svn-log.sh
blob0d4e6b3f040a2cbbcfa16209c3e486427af75f55
1 #!/bin/sh
3 # Copyright (c) 2007 Eric Wong
6 test_description='git-svn log tests'
7 . ./lib-git-svn.sh
9 test_expect_success 'setup repository and import' "
10 mkdir import &&
11 cd import &&
12 for i in trunk branches/a branches/b \
13 tags/0.1 tags/0.2 tags/0.3; do
14 mkdir -p \$i && \
15 echo hello >> \$i/README || exit 1
16 done && \
17 svn import -m test . $svnrepo
18 cd .. &&
19 git-svn init $svnrepo -T trunk -b branches -t tags &&
20 git-svn fetch &&
21 git reset --hard trunk &&
22 echo bye >> README &&
23 git commit -a -m bye &&
24 git svn dcommit &&
25 git reset --hard a &&
26 echo why >> FEEDME &&
27 git update-index --add FEEDME &&
28 git commit -m feedme &&
29 git svn dcommit &&
30 git reset --hard trunk &&
31 echo aye >> README &&
32 git commit -a -m aye &&
33 git svn dcommit
36 test_expect_success 'run log' "
37 git reset --hard a &&
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
48 test_done