Changeset 242

Show
Ignore:
Timestamp:
06/05/2006 03:14:04 PM
Author:
luedi
Message:

add a hot fix for orphaned branches.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/Dirk/pin_handler/Vss2Svn/ActionHandler.pm

    r240 r242  
    335335 
    336336    # treat the old path as deleted 
    337     # we can branch from a later destroyed parent, so only delete if the parent 
    338     # stille exists. 
     337    # we can't branch an item, that doesn't have a parent. This happens when the 
     338    # parent was destroyed.  
    339339    if (defined $row->{parentphys}) { 
    340340        $oldphysinfo->{parents}->{$row->{parentphys}}->{deleted} = 1; 
     341    } 
     342    else { 
     343        # since we have the "orphaned" handling, we can map this action to an 
     344        # addition, so that this item will show up in the orphaned cache. 
     345        # TODO: To keep the history of the item we can try to ShareBranch 
     346        # from original item if it is also somewhere accessible. 
     347        # something like: 
     348#        my $copypath = $self->_get_valid_path ($oldphysinfo, $row->{parentphys}, $row->{version}); 
     349         
     350        $self->{action} = 'ADD'; 
    341351    } 
    342352 

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.