Changeset 235

Show
Ignore:
Timestamp:
05/31/2006 05:36:55 PM
Author:
luedi
Message:

In case a commit can not be performed, since the item is orphaned, we still need to track the latests version number. This is necessary if the item is later shared into another project. The share is translated into an add, but the add must be with the correct, last known version number.

Files:

Legend:

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

    r234 r235  
    154154    } 
    155155 
     156    # We need to track at least the version number, even if there is no 
     157    # active parent. This is necessary, if we later share this item, we need 
     158    # to share from the latest seen version. 
     159     
     160    # remember the last version, in which the file was modified 
     161    $physinfo->{last_version} = $row->{version}; 
     162     
     163    # and track all itempaths for the new version 
     164    $self->_track_item_paths ($row->{version}); 
     165     
    156166    my $itempaths = $self->_get_active_item_paths(); 
    157167    if (!defined $itempaths && defined $physinfo->{orphaned}) { 
     
    162172    } 
    163173         
    164     # remember the last version, in which the file was modified 
    165     $physinfo->{last_version} = $row->{version}; 
    166      
    167     # and track all itempaths for the new version 
    168     $self->_track_item_paths ($row->{version}); 
    169  
    170174    $self->{itempaths} = $itempaths; 
    171175     

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.