Code

git-svn: write the highest maxRex out for branches and tags
authorEric Wong <normalperson@yhbt.net>
Tue, 13 Feb 2007 00:03:32 +0000 (16:03 -0800)
committerEric Wong <normalperson@yhbt.net>
Fri, 23 Feb 2007 08:57:12 +0000 (00:57 -0800)
Even if nothing touched paths we care about in a fetch;
increment the maxRev like we do with rev_db since
we don't like having to run get_log on revisions we've
seen before.

Signed-off-by: Eric Wong <normalperson@yhbt.net>
git-svn.perl

index beebe3d9545fe0de03c968ada149cd906c43808e..b7e46e5b0bdb99a36872283391a007f913976f6d 100755 (executable)
@@ -2765,6 +2765,10 @@ sub gs_fetch_loop_common {
                        next if defined $gs->rev_db_get($max);
                        $gs->rev_db_set($max, 0 x40);
                }
+               foreach my $g (@$globs) {
+                       my $k = "svn-remote.$g->{remote}.$g->{t}-maxRev";
+                       Git::SVN::tmp_config($k, $max);
+               }
                last if $max >= $head;
                $min = $max + 1;
                $max += $inc;