Changeset 310

Show
Ignore:
Timestamp:
05/11/2007 01:44:41 PM
Author:
toby
Message:

* Dumpfile.pm: Create the parent path of the target path of a move operation if it does not exist. Thanks to Stephen Lee and Patrick Kelsey for the patch.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/script/Vss2Svn/Dumpfile.pm

    r309 r310  
    408408        return 0; 
    409409    } 
    410      
     410 
     411    my $success = $self->{repository}->exists_parent ($newpath); 
     412    if(!defined($success)) { 
     413        $self->add_error("Attempt to move item '$itempath' to '$newpath' at " 
     414            . "revision $data->{revision_id}, but path consistency failure at dest"); 
     415        return 0; 
     416    } 
     417    elsif ($success == 0) { 
     418        $self->add_error("Parent path missing while trying to move " 
     419            . "item '$itempath' to '$newpath' at " 
     420            . "revision $data->{revision_id}: adding missing parents"); 
     421        $self->_create_svn_path ($nodes, $newpath); 
     422    } 
     423 
    411424    my $node = Vss2Svn::Dumpfile::Node->new(); 
    412425    $node->set_initial_props($itempath, $data); 

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