summaryrefslogtreecommitdiff
path: root/git-svn.perl
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2007-02-13 00:03:32 (GMT)
committerEric Wong <normalperson@yhbt.net>2007-02-23 08:57:12 (GMT)
commitc3560e535c67b4084852da00507ff4b7fdf98ffc (patch)
treeea844367645ce0785625ad6be76937a6837ccab2 /git-svn.perl
parent26a62d57a27407132d48e91b3c8f455a5fb22e4b (diff)
downloadgit-c3560e535c67b4084852da00507ff4b7fdf98ffc.zip
git-c3560e535c67b4084852da00507ff4b7fdf98ffc.tar.gz
git-c3560e535c67b4084852da00507ff4b7fdf98ffc.tar.bz2
git-svn: write the highest maxRex out for branches and tags
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>
Diffstat (limited to 'git-svn.perl')
-rwxr-xr-xgit-svn.perl4
1 files changed, 4 insertions, 0 deletions
diff --git a/git-svn.perl b/git-svn.perl
index beebe3d..b7e46e5 100755
--- a/git-svn.perl
+++ b/git-svn.perl
@@ -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;