]> Sergey Matveev's repositories - public-inbox.git/commitdiff
v2writable: drop "EPOCH.git indexing $RANGE" progress
authorEric Wong <e@yhbt.net>
Fri, 24 Jul 2020 05:55:53 +0000 (05:55 +0000)
committerEric Wong <e@yhbt.net>
Sat, 25 Jul 2020 20:48:18 +0000 (20:48 +0000)
It'll be one continuous range with IdxStack.

lib/PublicInbox/V2Writable.pm

index 50582266bef10de1125283977ea0a1eb6b2770fb..2ff2fc2597f525af9f3a8f8937820abb8594c95d 100644 (file)
@@ -1095,8 +1095,6 @@ sub sync_prepare ($$$) {
 
                next if $?; # new repo
                my $range = log_range($self, $sync, $git, $i, $tip) or next;
-               $sync->{ranges}->[$i] = $range;
-
                # can't use 'rev-list --count' if we use --diff-filter
                $pr->("$i.git counting $range ... ") if $pr;
                my $stk = prepare_range_stack($git, $sync, $range);
@@ -1218,10 +1216,6 @@ sub index_epoch ($$$) {
        }
        defined(my $stk = $sync->{stacks}->[$i]) or return;
        $sync->{stacks}->[$i] = undef;
-       my $range = $sync->{ranges}->[$i];
-       if (my $pr = $sync->{-opt}->{-progress}) {
-               $pr->("$i.git indexing $range\n");
-       }
        while (my ($f, $at, $ct, $oid) = $stk->pop_rec) {
                $self->{current_info} = "$i.git $oid";
                if ($f eq 'm') {