[Kde-scm-interest] Using svn2git to capture only a couple of files in a directory

Michael Pyne mpyne at kde.org
Thu Dec 23 22:02:15 CET 2010


Hi all,

I'm trying to use the svn2git tool to make git rules for converting kdesrc-
build.

One unique issue I'm having that doesn't seem to be already covered is that 
although kdesrc-build is in kdesdk/scripts, I don't need the entire contents 
of that directory, only kdesdk/scripts/kde{svn,src}-build*.

My initial rules contained :

match /trunk/KDE/kdesdk/scripts/kdesvn-build.*
  repository kdesrc-build
  branch master
  min revision 414006
  max revision 1143245
end match

match /trunk/KDE/kdesdk/scripts/kdesrc-build.*
  repository kdesrc-build
  min revision 1143246
  branch master
end match

but that eventually crashed around revision 413666 with "empty path component 
found in input", which is probably due to have a rule that doesn't end in a 
slash.

So, how does one capture only a file within an entire directory? Do I need to 
post-process out everything else somehow? If it helps my rules are currently 
on dewey.kde.org, in mpyne/

Regards,
 - Michael Pyne
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
Url : http://mail.kde.org/pipermail/kde-scm-interest/attachments/20101223/512fb787/attachment.sig 


More information about the Kde-scm-interest mailing list