@matheusbsbs / matheus-bagliano / commits / ffab62681c
Fork 0

git-svn: handle changed svn command-line syntax

Previously, if you passed a revision and a path to svn cp, it meant to look back at that revision and select that path. New behaviour is to get the path then go back to the revision (like other commands that accept @REV or -rREV do). The more consistent syntax is not supported by the old tools, so we have to try both in turn. Signed-off-by: Sam Vilain <sam.vilain@catalyst.net.nz> Acked-by: Eric Wong <normalperson@yhbt.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Sam Vilain committed Sep 21, 2007 at 15:27 UTC ffab62681cf420abb87aabf3fd2fc96e000877e4
1 file changed +4 -2
t/t9104-git-svn-follow-parent.sh
+4 -2
@@ -51,8 +51,10 @@ test_expect_success 'init and fetch from one svn-remote' "
51 "
52
53 test_expect_success 'follow deleted parent' "
54 - svn cp -m 'resurrecting trunk as junk' \
55 - -r2 $svnrepo/trunk $svnrepo/junk &&
54 + (svn cp -m 'resurrecting trunk as junk' \
55 + $svnrepo/trunk@2 $svnrepo/junk ||
56 + svn cp -m 'resurrecting trunk as junk' \
57 + -r2 $svnrepo/trunk $svnrepo/junk) &&
58 git config --add svn-remote.svn.fetch \
59 junk:refs/remotes/svn/junk &&
60 git-svn fetch -i svn/thunk &&