Ticket #25: Dumpfile.pm.diff

  • Dumpfile.pm

    old new  
    745745        print $fh "Text-content-length: $textlen\n"; 
    746746    } 
    747747 
    748     print $fh "Content-length: " . ($proplen + $textlen) 
    749         . "\n\n$propout$text\n"; 
     748    # If you have large files in your source safe repository, writing the  
     749    # files out in one go will fail. 
     750    # Split the text into smaller blocks that can be saved in one go.   
     751    print $fh "Content-length: " . ($proplen + $textlen); 
     752    print $fh  "\n\n$propout"; 
    750753 
     754    my $BLOCKSIZE = 100000; 
     755     
     756    for (my $i=0; $i< $textlen; $i += $BLOCKSIZE) 
     757    { 
     758        my $subText = substr $text, $i, $BLOCKSIZE; 
     759        print $fh $subText; 
     760    } 
     761    print $fh "\n"; 
     762 
    751763}  #  End output_content 
    752764 
    753765############################################################################### 

PumaCode.org recommends CVSDude for fast, professional Subversion and Trac hosting:

CVSDude.com

These ads are automatically generated by Google. Revenue from these ads helps to pay for hosting this site; however, these ads do not constitute an endorsement by PumaCode.org.