Changeset 333

Show
Ignore:
Timestamp:
10/30/2007 11:19:56 PM
Author:
ldavis
Message:

Effectively undid revision 332, because I'm unsure of the implications of how it would affect a labeled root directory. I would still like that behavior if it's possible.

Files:

Legend:

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

    r332 r333  
    617617         
    618618        if (defined $self->{label_mapper}) { 
    619             my $mapping = $self->{label_mapper}->remap ($main::gCfg{labeldir}, $label); 
    620             $labeldir = $mapping->{replacement} if $mapping->{is_labeldir}; 
    621             $label = $mapping->{replacement} unless $mapping->{is_labeldir}; 
     619            $labeldir = $self->{label_mapper}->remap ($main::gCfg{labeldir}, $label); 
    622620        } 
    623621        $labeldir =~ s:\\:/:g; 
  • trunk/script/Vss2Svn/Dumpfile/LabelMapper.pm

    r332 r333  
    2828 
    2929 
    30     my $retval = (); 
    31     $retval->{is_labeldir} = 1; 
    32     $retval->{replacement} = $labeldir; 
     30    my $retval = $labeldir; 
    3331 
    3432    # we need to reset the following each enumeration if we aborted the 
     
    3937    while (($label_path, $remap) = each %{ $self->{labels} }) { 
    4038        if ( $label =~ /$label_path/) { 
    41             $retval->{replacement} = $remap->[0]; 
    42             $retval->{is_labeldir} = ($remap->[0] =~ m:^/:); 
     39            # N.B. This might be the root project, so $labeldir might need to be be present? 
     40            $retval = ($remap->[0] =~ m:^/:) ? $remap->[0] : ($labeldir . "/" . $remap->[0]); 
    4341            last; 
    4442        } 

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.