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

Michael Pyne mpyne at kde.org
Fri Dec 24 05:02:27 CET 2010


On Thursday, December 23, 2010 16:02:15 Michael Pyne wrote:
> 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/

As a followup, I've tried adding a "prefix /" to the applicable rules to force 
there to be some path component in the resultant filename.

Also, the exact revision that failed was 414012, where kdesvn-build was the 
only affected file. The revision right before gave messages about partial 
matching but seemed to work, possibly because there were two affected files in 
that revision.

I've attached a very partial log, I'll reply back if there's still issues when 
I check in the morning. ;)

Regards,
 - Michael Pyne
-------------- next part --------------
# from kdesrc-build-rules
# Only parts of kdesdk/scripts belonged to kdesrc-build.
# Ending with a slash shouldn't work but I get crashes otherwise so let's try it.
match /trunk/KDE/kdesdk/scripts/kdesvn-build.*  # line 46
  repository kdesrc-build
  branch master
  min revision 414006
  max revision 1143245
end match

#================
# test-rules.sh
#!/bin/sh

EXPORT='svn-all-fast-export'
EXPORT_OPTIONS='--add-metadata --identity-map /home/gitmaster/kde-ruleset/account-map'
RULES='--rules /home/git/mpyne/kdesrc-build-rules'
SVN='/home/gitmaster/svn'

${EXPORT} ${EXPORT_OPTIONS} ${RULES} ${SVN} --debug-rules --max-rev 420000 --resume-from 411384
#==============
# console output

Exporting revision 414003  nothing to do
Exporting revision 414004  nothing to do
Exporting revision 414005  nothing to do
Exporting revision 414006 rev 414006 /trunk/KDE/kdesdk/scripts/kdesvn-build matched rule: "/home/git/mpyne/kdesrc-build-rules:46 /trunk/KDE/kdesdk/scripts/kdesvn-build.*"    exporting. 
./trunk/KDE/kdesdk/scripts/kdesvn-build is a partial branch of repository kdesrc-build branch master subdir kdesvn-build 
add/change file ( /trunk/KDE/kdesdk/scripts/kdesvn-build -> "master" "" ) 
rev 414006 /trunk/KDE/kdesdk/scripts/kdesvn-buildrc-sample matched rule: "/home/git/mpyne/kdesrc-build-rules:46 /trunk/KDE/kdesdk/scripts/kdesvn-build.*"    exporting. 
./trunk/KDE/kdesdk/scripts/kdesvn-buildrc-sample is a partial branch of repository kdesrc-build branch master subdir kdesvn-buildrc-sample 
add/change file ( /trunk/KDE/kdesdk/scripts/kdesvn-buildrc-sample -> "master" "" ) 
 2 modifications from SVN /trunk/KDE/kdesdk/scripts/kdesvn-build to kdesrc-build/master done
Exporting revision 414007  nothing to do
Exporting revision 414008  nothing to do
Exporting revision 414009  nothing to do
Exporting revision 414010  nothing to do
Exporting revision 414011  nothing to do
Exporting revision 414012 rev 414012 /trunk/KDE/kdesdk/scripts/kdesvn-build matched rule: "/home/git/mpyne/kdesrc-build-rules:46 /trunk/KDE/kdesdk/scripts/kdesvn-build.*"    exporting. 
.add/change file ( /trunk/KDE/kdesdk/scripts/kdesvn-build -> "master" "" ) 
Failed to write to process: Error writing to process for repository kdesrc-build
 1 modifications from SVN /trunk/KDE/kdesdk/scripts/kdesvn-build to kdesrc-build/masterAborted

#================
# log-kdesrc-build
progress SVN r411384 branch master = :1
progress SVN r411415 branch master = :2
progress SVN r412567 branch master = :3
progress SVN r412995 branch master = :4
progress SVN r412999 branch master = :5
progress SVN r413666 branch master = :6
fatal: Empty path component found in input
fast-import: dumping crash report to fast_import_crash_19404

#==================
# fast_import_crash_19404

  progress SVN r412999 branch master = :5
  blob
  mark :1048575
  data 92684
  blob
  mark :1048574
  data 29824
  blob
  mark :1048573
  data 4639
  blob
  mark :1048572
  data 17117
  commit refs/heads/master
  mark :6
  committer Michael Pyne <mpyne at kde.org> 1116065506 -0000
  data 285
  M 100755 :1048575 kdesvn-build
  M 100644 :1048574 doc.html
  M 100644 :1048573 kdesvn-buildrc-sample
  M 100644 :1048572 HISTORY

  progress SVN r413666 branch master = :6
  blob
  mark :1048575
  data 92684
  blob
  mark :1048574
  data 4639
  commit refs/heads/master
  mark :7
  committer Michael Pyne <mpyne at kde.org> 1116132558 -0000
  data 274
* M 100755 :1048575

Active Branch LRU
-----------------
    active_branches = 1 cur, 5 max

-------------- 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/87170936/attachment.sig 


More information about the Kde-scm-interest mailing list