Re: git-svnimport breakage as of git-1.4.4

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Daniel Drake <ddrake@...>
Cc: <git@...>
Date: Friday, December 8, 2006 - 4:32 pm

Hi,

On 10:26 Thu 07 Dec     , Daniel Drake wrote:

Is this 'server' public? Can I rerun this git-svnimport?

If not, please try the patch:


diff --git a/git-svnimport.perl b/git-svnimport.perl
index cbaa8ab..b9de446 100755
--- a/git-svnimport.perl
+++ b/git-svnimport.perl
@@ -210,6 +210,12 @@ $svn .= "/$svn_dir" if defined $svn_dir;
 my $svn2 = SVNconn->new($svn);
 $svn = SVNconn->new($svn);
 
+if($svn_dir) {
+	$svn_dir =~ s#/*$#/#;
+} else {
+	$svn_dir = "";
+}
+
 my $lwp_ua;
 if($opt_d or $opt_D) {
 	$svn_url = URI->new($svn_url)->canonical;
@@ -906,7 +912,7 @@ sub commit_all {
 	my ($changed_paths, $revision, $author, $date, $message, $pool) = @_;
 	my %p;
 	while(my($path,$action) = each %$changed_paths) {
-		$p{$path} = [ $action->action,$action->copyfrom_path, $action->copyfrom_rev, $path ];
+		$p{$path} = [ $action->action,$svn_dir$action->copyfrom_path, $action->copyfrom_rev, $svn_dir$path ];
 	}
 	$changed_paths = \%p;
 

Thanks,
Sasha
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
git-svnimport breakage as of git-1.4.4, Daniel Drake, (Thu Dec 7, 11:26 am)
Re: git-svnimport breakage as of git-1.4.4, Sasha Khapyorsky, (Fri Dec 8, 4:32 pm)
Re: git-svnimport breakage as of git-1.4.4, Daniel Drake, (Mon Dec 11, 10:27 am)
Re: git-svnimport breakage as of git-1.4.4, Sasha Khapyorsky, (Mon Dec 11, 4:49 pm)
Re: git-svnimport breakage as of git-1.4.4, Daniel Drake, (Wed Dec 13, 12:28 pm)
Re: git-svnimport breakage as of git-1.4.4, Sasha Khapyorsky, (Wed Dec 13, 10:21 pm)
Re: git-svnimport breakage as of git-1.4.4, Daniel Drake, (Thu Dec 14, 5:05 pm)
Re: git-svnimport breakage as of git-1.4.4, Sasha Khapyorsky, (Thu Dec 14, 5:20 pm)
Re: git-svnimport breakage as of git-1.4.4, Junio C Hamano, (Thu Dec 14, 5:32 pm)
Re: git-svnimport breakage as of git-1.4.4, Sasha Khapyorsky, (Thu Dec 14, 5:43 pm)
Re: git-svnimport breakage as of git-1.4.4, Daniel Drake, (Mon Dec 11, 5:03 pm)
Re: git-svnimport breakage as of git-1.4.4, Sasha Khapyorsky, (Mon Dec 11, 6:03 pm)
Re: git-svnimport breakage as of git-1.4.4, Dongsheng Song, (Sat Dec 9, 11:49 pm)
Re: git-svnimport breakage as of git-1.4.4, Sasha Khapyorsky, (Sun Dec 10, 7:47 am)
Re: git-svnimport breakage as of git-1.4.4, Dongsheng Song, (Mon Dec 11, 4:00 pm)
Re: git-svnimport breakage as of git-1.4.4, Sasha Khapyorsky, (Mon Dec 11, 4:50 pm)
Re: git-svnimport breakage as of git-1.4.4, Dongsheng Song, (Mon Dec 11, 5:01 pm)
Re: git-svnimport breakage as of git-1.4.4, Sasha Khapyorsky, (Wed Dec 13, 10:25 pm)