cd wrote:
Hi,

I encountered problem with zero-length files, and solved it with the
following hack. Still, there are three incorrectly converted files
(not zero-length ones) in the head revision, but it is acceptable for
our project.

Index: D:/projects/vss2svn_src/script/Vss2Svn/Dumpfile.pm
===================================================================
--- D:/projects/vss2svn_src/script/Vss2Svn/Dumpfile.pm  (revision 334)
+++ D:/projects/vss2svn_src/script/Vss2Svn/Dumpfile.pm  (working copy)
@@ -859,13 +859,13 @@
     } else {
         $textlen = length($text);
     }
-    return if ($textlen + $proplen == 0);
+    return if ($textlen + $proplen == 0 && !defined $file);
if ($proplen > 0) {
         print $fh "Prop-content-length: $proplen\n";
     }
- if ($textlen > 0) {
+    if (defined $file || $textlen > 0) {
         print $fh "Text-content-length: $textlen\n";
         print $fh "Text-content-md5: $digest\n" if $self->{do_md5};
     }

Thanks, I've committed this in r336.

toby

_______________________________________________
vss2svn-users mailing list
Project homepage:
http://www.pumacode.org/projects/vss2svn/
Subscribe/Unsubscribe/Admin:
http://lists.pumacode.org/mailman/listinfo/vss2svn-users-lists.pumacode.org
Mailing list web interface (with searchable archives):
http://dir.gmane.org/gmane.comp.version-control.subversion.vss2svn.user

Reply via email to