From: Sasha Khapyorsky Date: Thu, 28 Sep 2006 19:44:57 GMT Subject: partial svnimport [was: Re: [PATCH] git-svnimport: Parse log message for Signed-off-by: lines] Message-ID: <20060928194457.GE10617@sashak.voltaire.com> In-Reply-To: <20060906153314.GE6999@kiste.smurf.noris.de> Hi, On 17:33 Wed 06 Sep , Matthias Urlichs wrote: > Hi, > > Sasha Khapyorsky: > > At least I didn't succeed with reversed layout. With option > > -T /$project import works but only for trunk branch, attempts > > to specify branch as -b or -b /$project don't help, > > the same is with tags. > > > That's true. The problem is that it wants the tag or branch name as the > last component of the path. > > A more generic solution would be to use wildcards in the branch/tag > specification, to allow more than one wildcard, and to be able to > specify the exact form of the branch or tag name on the git side. Or perhaps just to specify path of the project (or sub-project) after trunk/branches*/ . Like in this patch: diff --git a/git-svnimport.perl b/git-svnimport.perl index 988514e..86a6e8a 100755 --- a/git-svnimport.perl +++ b/git-svnimport.perl @@ -31,7 +31,8 @@ die "Need SVN:Core 1.2.1 or better" if $ $ENV{'TZ'}="UTC"; our($opt_h,$opt_o,$opt_v,$opt_u,$opt_C,$opt_i,$opt_m,$opt_M,$opt_t,$opt_T, - $opt_b,$opt_r,$opt_I,$opt_A,$opt_s,$opt_l,$opt_d,$opt_D,$opt_S,$opt_F); + $opt_b,$opt_r,$opt_I,$opt_A,$opt_s,$opt_l,$opt_d,$opt_D,$opt_S,$opt_F, + $opt_P); sub usage() { print STDERR < All of this should be specified in the repository's git config file, > not on the command line. It is for incremental imports? So we will not need to reproduce exact command line for each git-svnimport run? Good idea. Sasha