Invalid change ordering?

Dirk vss2svn at nogga.de
Sat Feb 10 12:06:49 EST 2007


>>  
>>      # recover this item within the current parent
>>      my $parentinfo = $physinfo->{parents}->{$row->{parentphys}};
>> -    if (undef $parentinfo->{deleted}) {
>> +    if (!defined $parentinfo->{deleted}) {
>>          $self->{errmsg} .= "Attempt to recover an active item 
>> '$physname':\n"
>>              . "$self->{physname_seen}\n";
>>   
>
> I just noticed this line... regardless of the rest of the patch, you 
> definitely don't want to be doing an undef there; undef will un-define 
> a variable, not test for whether it's defined.
;-) This "wrong" check was in the code since ages. I was wondering 
myself, how this could have ever worked. I just came across this line 
and fixed it on the way. I have no idea, what will change for people 
running the conversion. I expect that this is of minor impact, since the 
undef is done anyway one line later. So it could be a problem in a 
szenario, where we had missed a prior delete.

Dirk



More information about the vss2svn-users mailing list