[svk-commit] r2672 - branches/mirror-boostrap/lib/SVK

nobody at bestpractical.com nobody at bestpractical.com
Sun Jan 13 21:46:43 EST 2008


Author: clkao
Date: Sun Jan 13 21:46:42 2008
New Revision: 2672

Modified:
   branches/mirror-boostrap/lib/SVK/Mirror.pm

Log:
Be quiet loading dump by default.

Modified: branches/mirror-boostrap/lib/SVK/Mirror.pm
==============================================================================
--- branches/mirror-boostrap/lib/SVK/Mirror.pm	(original)
+++ branches/mirror-boostrap/lib/SVK/Mirror.pm	Sun Jan 13 21:46:42 2008
@@ -300,8 +300,12 @@
     my ($header, $buf) = @_;
     $buf = $header.$buf;
     open my $fh, '<', \$buf;
-    my $ret = SVN::Repos::load_fs2( $self->repos, $fh, \*STDERR, $SVN::Repos::load_uuid_default, undef, 0, 0, undef, undef );
+    my $feedback = '';
+    open my $fstream, '>', \$feedback;
+    my $ret = SVN::Repos::load_fs2( $self->repos, $fh, $fstream, $SVN::Repos::load_uuid_default, undef, 0, 0, undef, undef );
     # (repos,dumpstream,feedback_stream,uuid_action,parent_dir,use_pre_commit_hook,use_post_commit_hook,cancel_func,cancel_baton,pool);
+    # XXX: display $feedback if we are in verbose / debug mode.
+    # and provide progress feedback in caller
     return $ret;
 }
 


More information about the svk-commit mailing list