Adam Brewster | 6f5748e | 2009-08-11 23:14:27 -0400 | [diff] [blame] | 1 | #!/bin/sh |
| 2 | # |
| 3 | # Copyright (c) 2009 Eric Wong |
| 4 | |
| 5 | test_description='git svn old rev_map preservd' |
| 6 | . ./lib-git-svn.sh |
| 7 | |
| 8 | test_expect_success 'setup test repository with old layout' ' |
| 9 | mkdir i && |
| 10 | (cd i && > a) && |
| 11 | svn_cmd import -m- i "$svnrepo" && |
| 12 | git svn init "$svnrepo" && |
| 13 | git svn fetch && |
| 14 | test -d .git/svn/refs/remotes/git-svn/ && |
| 15 | ! test -e .git/svn/git-svn/ && |
| 16 | mv .git/svn/refs/remotes/git-svn .git/svn/ && |
| 17 | rm -r .git/svn/refs |
| 18 | ' |
| 19 | |
| 20 | test_expect_success 'old layout continues to work' ' |
| 21 | svn_cmd import -m- i "$svnrepo/b" && |
| 22 | git svn rebase && |
| 23 | echo a >> b/a && |
| 24 | git add b/a && |
| 25 | git commit -m- -a && |
| 26 | git svn dcommit && |
| 27 | ! test -d .git/svn/refs/ && |
| 28 | test -e .git/svn/git-svn/ |
| 29 | ' |
| 30 | |
| 31 | test_done |