Thread (2 messages) flat view 2 messages, 2 authors, 2016-06-15

Re: empty symlink detection breakage

From: Eric Wong <hidden>
Date: 2016-06-15 22:46:16
Subsystem: the rest · Maintainer: Linus Torvalds

Björn Steinbrink [off-list ref] wrote:
Hi Eric, 

seems that the empty symlink stuff gets confused about which revision to
use when looking for the parent's file.
<snip>
Note how it tries to look at revision 3 instead of revision 5 (which it
correctly detected as the parent). The import succeeds when
svn.brokenSymlinkWorkaround is set to false. Testcase below.
Thanks Björn,

I've pushed out a one line bugfix to git://git.bogomips.org/git-svn
diff --git a/git-svn.perl b/git-svn.perl
index ef01fb9..bce24a8 100755
--- a/git-svn.perl
+++ b/git-svn.perl
@@ -2421,6 +2421,7 @@ sub find_parent_branch {
 			# do_switch works with svn/trunk >= r22312, but that
 			# is not included with SVN 1.4.3 (the latest version
 			# at the moment), so we can't rely on it
+			$self->{last_rev} = $r0;
 			$self->{last_commit} = $parent;
 			$ed = SVN::Git::Fetcher->new($self, $gs->{path});
 			$gs->ra->gs_do_switch($r0, $rev, $gs,
-- 
Eric Wong
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help