Code

git-svn: Print revision while searching for earliest use of path
authorDeskin Miller <deskinm@umich.edu>
Mon, 9 Feb 2009 00:33:18 +0000 (19:33 -0500)
committerEric Wong <normalperson@yhbt.net>
Wed, 11 Feb 2009 10:00:42 +0000 (02:00 -0800)
When initializing a git-svn repository from a Subversion repoository,
it is common to be interested in a path which did not exist in the
initial commit to Subversion.  In a large repository, the initial fetch
may take some looking for the earliest existence of the path time while
the user receives no additional feedback.  Print the highest revision
number scanned thus far to let the user know something is still
happening.

Signed-off-by: Deskin Miller <deskinm@umich.edu>
git-svn.perl

index b0ae05bc408bb33c04ad9d177fe9247b3388b392..9baf8221c36be4e6ce16619bd29c4104b00ca8e7 100755 (executable)
@@ -4376,6 +4376,9 @@ sub gs_fetch_loop_common {
                }
                $self->get_log([$longest_path], $min, $max, 0, 1, 1,
                               sub { $revs{$_[1]} = _cb(@_) });
+               if ($err) {
+                       print "Checked through r$max\r";
+               }
                if ($err && $max >= $head) {
                        print STDERR "Path '$longest_path' ",
                                     "was probably deleted:\n",