Changeset 301

Show
Ignore:
Timestamp:
02/13/2007 03:16:45 PM
Author:
luedi
Message:

in the branch handler only copy versions that are common between the branch source and the branch.
Thanks to Stephen and Jonathan for looking this up.

Files:

Legend:

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

    r300 r301  
    368368    # need to copy all internal information about the ancestor to the child. 
    369369    if (defined $data->{info}) { 
    370         $gVersion{$data->{physname}} = $gVersion{$data->{info}}; 
    371     } 
     370        # only copy versions, that are common between the branch source and the branch. 
     371        my $copy_version=$data->{version}; 
     372        while(--$copy_version > 0) { 
     373            if (defined $gVersion{$data->{info}}->[$copy_version]) { 
     374                $gVersion{$data->{physname}}->[$copy_version] = 
     375                   $gVersion{$data->{info}}->[$copy_version]; 
     376           } 
     377       } 
     378   } 
    372379 
    373380#    # if the file is copied later, we need to track, the revision of this branch 

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.