From ceae78b438d2e5ca035aec9b067643ca79ed4ccd Mon Sep 17 00:00:00 2001 From: Matthias Urlichs Date: Sat, 12 Nov 2005 23:15:50 +0100 Subject: debian packaging: git-cvs needs cvsps diff --git a/debian/control b/debian/control index 8cc527e..d2a9234 100644 --- a/debian/control +++ b/debian/control @@ -48,7 +48,7 @@ Description: The git content addressable filesystem, GNUArch interoperability Package: git-cvs Architecture: all -Depends: ${shlibs:Depends}, ${misc:Depends}, ${perl:Depends}, git-core +Depends: ${shlibs:Depends}, ${misc:Depends}, ${perl:Depends}, git-core, cvsps (>= 2.1) Suggests: cvs Description: The git content addressable filesystem, CVS interoperability This package contains 'git-cvsimport', to import development history from -- cgit v0.10.2-6-g49f6 From 4b1ca25e429a67de4828c029b053dea637732722 Mon Sep 17 00:00:00 2001 From: Matthias Urlichs Date: Mon, 14 Nov 2005 08:31:00 +0100 Subject: Remove trailing slashes SVN dies a messy death when passed a path with trailing slashes. diff --git a/git-svnimport.perl b/git-svnimport.perl index cb9afb9..af13fdd 100755 --- a/git-svnimport.perl +++ b/git-svnimport.perl @@ -280,7 +280,8 @@ sub revert_split_path($$) { $svnpath = "$branch_name/$branch/$path"; } - return $svnpath + $svnpath =~ s#/+$##; + return $svnpath; } sub get_file($$$) { @@ -372,6 +373,10 @@ sub copy_path($$$$$$$$) { my($newrev,$newbranch,$path,$oldpath,$rev,$node_kind,$new,$parents) = @_; my($srcbranch,$srcpath) = split_path($rev,$oldpath); + unless(defined $srcbranch) { + print "Path not found when copying from $oldpath @ $rev\n"; + return; + } my $therev = branch_rev($srcbranch, $rev); my $gitrev = $branches{$srcbranch}{$therev}; unless($gitrev) { -- cgit v0.10.2-6-g49f6