Browse Source

cook: some topics are tangled with each other

todo
Junio C Hamano 14 years ago
parent
commit
097a2385d4
  1. 8
      cook

8
cook

@ -50,7 +50,7 @@ sub describe_relation { @@ -50,7 +50,7 @@ sub describe_relation {
}

if (exists $topic_info->{'shares'}) {
push @desc, ("shares commits with " .
push @desc, ("is tangled with " .
phrase_these(@{$topic_info->{'shares'}}));
}

@ -96,16 +96,10 @@ sub topic_relation { @@ -96,16 +96,10 @@ sub topic_relation {
}
} elsif (!@right) {
forks_from($topic, $one, $two);
} else {
if (@left < @right) {
forks_from($topic, $two, $one, @left);
} elsif (@right < @left) {
forks_from($topic, $one, $two, @right);
} else {
push @{$topic->{$one}{'shares'}}, $two;
push @{$topic->{$two}{'shares'}}, $one;
}
}
}

=head1

Loading…
Cancel
Save