Code

git-svn: fix several fetch bugs related to repeated invocations
authorEric Wong <normalperson@yhbt.net>
Wed, 31 Jan 2007 10:45:50 +0000 (02:45 -0800)
committerEric Wong <normalperson@yhbt.net>
Fri, 23 Feb 2007 08:57:10 +0000 (00:57 -0800)
commit8a603774def11e5a90ae2dbbc0c8d4abacdb2d99
tree374d6aa511e1c2818fea9f24428aacaf47b6ef35
parentf0ecca1041aff2e1398edcdaf5f0ce08a96f5f0f
git-svn: fix several fetch bugs related to repeated invocations

We no longer delete the top-level directory even if it got
deleted from the upstream repository.  In gs_do_update; we
double-check that the path we're tracking exists at both
endpoints before proceeding.  We have also added additional
protection against fetching revisions out-of-order.

To simplify our internal interfaces, I've disabled passing the
'recursive' flag to the gs_do_{switch,update} wrapper functions
since we always want it in git-svn.  We also pass the
entire Git::SVN object rather than just the path because it
helped me debug.

When printing progress, the refname is printed out to make
it less confusing when multi-fetch is running.

Signed-off-by: Eric Wong <normalperson@yhbt.net>
git-svn.perl
t/t9104-git-svn-follow-parent.sh