Changeset 298
- Timestamp:
- 02/10/2007 01:55:22 PM
- Files:
-
- trunk/script/Vss2Svn/ActionHandler.pm (modified) (3 diffs)
- trunk/script/Vss2Svn/Dumpfile.pm (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/script/Vss2Svn/ActionHandler.pm
r296 r298 127 127 # sharedphys => [], 128 128 parents => {}, 129 first_version => $version, 129 130 last_version => $version, 130 131 orphaned => $orphaned, … … 374 375 375 376 # Now treat the new entry as a new addition 376 return $self->_add_handler(); 377 my $result = $self->_add_handler(); 378 379 # remember the ancestor of this item, we need it, when we later whant to refer to versions prior 380 # to the branch, e.g in PIN situations. 381 if ($result) { 382 $gPhysInfo{ $row->{physname} }->{ancestor} = $oldphysname; 383 } 384 $self->{info} = $oldphysname; 385 386 return $result; 387 377 388 378 389 # # Now create a new entry for this branched item … … 1121 1132 my($self, $physname, $parentphys, $version) = @_; 1122 1133 1134 # 0.) If the version we are looking for is prior to the first version of this 1135 # item (e.g in a branch / Pin situation), we need to check the ancestor 1136 my $physinfo = $gPhysInfo{$physname}; 1137 if (defined $physinfo && 1138 $version < $physinfo->{first_version}) { 1139 return $self->_get_valid_path ($physinfo->{ancestor}, $parentphys, $version); 1140 } 1141 1123 1142 # 1.) We first check for non-deleted contexts, even though these item pathes 1124 1143 # are valid. A deleted context means, that an item existed in this context trunk/script/Vss2Svn/Dumpfile.pm
r297 r298 364 364 365 365 # branching is a no-op in SVN 366 367 # since it is possible, that we refer to version prior to the branch later, we 368 # need to copy all internal information about the ancestor to the child. 369 if (defined $data->{info}) { 370 $gVersion{$data->{physname}} = $gVersion{$data->{info}}; 371 } 366 372 367 373 # # if the file is copied later, we need to track, the revision of this branch
